Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bearcodi/laravel-postgresql-schemas


https://github.com/bearcodi/laravel-postgresql-schemas

Last synced: about 11 hours ago
JSON representation

Awesome Lists containing this project

README

        

```
__ __
/ / ___ ________ __ _____ / /
/ /__/ _ `/ __/ _ `/ |/ / -_) /
/____/\_,_/_/ \_,_/|___/\__/_/
___ __ ________ __
/ _ \___ ___ / /____ ________ / __/ __ \ / /
/ ___/ _ \(_- __/ _ `/ __/ -_)\ \/ /_/ / / __
/_/ \___/___/\__/\_, /_/ \__/___/\___\_\/____/
/___/
____ __
/ __/___/ / ___ __ _ ___ ____
_\ \/ __/ _ \/ -_) ' \/ _ `(_-<
/___/\__/_//_/\__/_/_/_/\_,_/___/

```

![Tests](https://github.com/bearcodi/laravel-postgresql-schemas/actions/workflows/tests.yml/badge.svg)
![Packagist Version](https://img.shields.io/packagist/v/bearcodi/laravel-postgresql-schemas)
![Packagist Downloads](https://img.shields.io/packagist/dt/bearcodi/laravel-postgresql-schemas)
![GitHub License](https://img.shields.io/github/license/bearcodi/laravel-postgresql-schemas)

> **WARNING** This is work in progress!!!

## About

Laravel package to add support for PostgreSQL `SCHEMA`.

## Installation

```bash
$ composer require bearcodi/laravel-postgresql-schemas
```

### Publish configuration

```bash
$ php artisan config:publish --vendor=bearcodi
```

## Environment Variables

| Variable | Default | Description |
| :-------------------- | :------ | :--------------------------------------------------------------- |
| `DB_SCHEMA_PREFIX` | '' | Prefix for your environments schemas. |
| `DB_SCHEMA_FORCEDROP` | `true` | Implements PostgreSQL `CASCADE` or `RESTRICT` on drop of schema. |