2017 © Pedro Peláez
 

library laravel-pg-schemas

Laravel package for managing postgres schemas.

image

eltonlk/laravel-pg-schemas

Laravel package for managing postgres schemas.

  • Friday, July 25, 2014
  • by eltonlk
  • Repository
  • 4 Watchers
  • 1 Stars
  • 83 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel PGSchema

Code Climate, (*1)

With this package you can create, switch and drop postgres schemas., (*2)

Installation

Add the following to your composer.json:, (*3)

"eltonlk/laravel-pg-schemas": "dev-master"

Add to your app.php file in the services providers section., (*4)

'providers' => array(
    ...

    'Eltonlk\LaravelPgSchemas\LaravelPgSchemasServiceProvider'
)

Usage

Assuming that you have your db configuration ready, meaning that your default connection is 'pgsql' and your pgsql credentials are setted in the usual way, you can use the next functions:, (*5)

Create new Schema

PGSchema::create($schemaName);

Switch to Schema

if switchTo is call without arguments, it switches to the public schema (default), (*6)

PGSchema::switchTo($schemaName);

Drop Schema

PGSchema::drop($schemaName);

Migrate Schema

PGSchema::migrate($schemaName);

You can also tell which database connection., (*7)

PGSchema::migrate($schemaName, ['--database' => 'pgsql2']);

The Versions

25/07 2014

dev-master

9999999-dev

Laravel package for managing postgres schemas.

  Sources   Download

MIT

The Requires

 

by Elton Luis Kolling

laravel postgres schemas