thibaud-dauce / postgresql-schema
This package is abandoned and no longer maintained.
No replacement package was suggested.
Add inheritance in postgresql tables
v1.0
2014-07-31 18:27 UTC
Requires
- php: >=5.4.0
- illuminate/database: 4.2.*
- illuminate/support: 4.2.*
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2022-02-01 12:37:42 UTC
README
Add inheritance in postgresql tables
Installation
PHP 5.4+ and Laravel 4.2+ are required.
To get the latest version of PostgreSQL Schema, simply require "thibaud-dauce/postgresql-schema": "1.*"
in your composer.json
file. You'll then need to run composer install
or composer update
to download it and have the autoloader updated.
Once PostgreSQL Schema is installed, you need to register the service provider. Open up app/config/app.php
and add the following to the providers
key.
'ThibaudDauce\PostgresqlSchema\PostgresqlSchemaServiceProvider'
Usage
In migration file when using a postgresql database, you can use the new method addInheritedTable
:
<?php Schema::create('test', function(Blueprint $table) { $table->increments('id'); $table->addInheritedTable('users'); });