2017 © Pedro Peláez
 

library laravel-postgresql-inherit

Add inheritance in postgresql tables

image

rishi-ramawat/laravel-postgresql-inherit

Add inheritance in postgresql tables

  • Friday, March 24, 2017
  • by rishi-ramawat
  • Repository
  • 1 Watchers
  • 4 Stars
  • 10,802 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 7 Versions
  • 18 % Grown

The README.md

PostgresqlSchema

Software License, (*1)

Add inheritance in postgresql tables, (*2)

Installation

PHP 5.4+ and Laravel 5.2+ are required., (*3)

For Laravel Versions **5.2.*** & **5.3.***, run the following command to install this package via composer, (*4)

composer require "rishi-ramawat/laravel-postgresql-inherit ~2.1.0"

For Laravel Versions 5.4+, run the following command to install this package via composer, (*5)

composer require "rishi-ramawat/laravel-postgresql-inherit ~2.2"

Once PostgreSQL Schema is installed, you need to register the service provider. Open up config/app.php and add the following to the providers array., (*6)

RishiRamawat\PostgresSchema\PostgresqlSchemaServiceProvider::class,

Usage

In migration file when using a postgresql database, you can use the new method inherits():, (*7)


Schema::create('cities', function(Blueprint $table) { $table->increments('id'); $table->string('name'); $table->double('population'); $table->integer('altitude')->comment('In Feet'); }); Schema::create('capitals', function(Blueprint $table) { $table->string('state'); // Make capitals table inherits all the columns of its parent table, cities $table->inherits('cities'); });

The Versions

24/03 2017

dev-laravel_5.4_support

dev-laravel_5.4_support

Add inheritance in postgresql tables

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pasechnik Vlad
by Rishi Ramawat

database laravel migrations postgres inheritance postresql

24/03 2017

dev-master

9999999-dev

Add inheritance in postgresql tables

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pasechnik Vlad
by Rishi Ramawat

database laravel migrations postgres inheritance postresql

15/03 2017

v2.2

2.2.0.0

Add inheritance in postgresql tables

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pasechnik Vlad
by Rishi Ramawat

database laravel migrations postgres inheritance postresql

03/03 2017

v2.1.1

2.1.1.0

Add inheritance in postgresql tables

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pasechnik Vlad

database laravel migrations postgres inheritance postresql

16/06 2016

2.1

2.1.0.0

Add inheritance in postgresql tables

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pasechnik Vlad

database laravel migrations postgres inheritance postresql

16/06 2016

2.0

2.0.0.0

Add inheritance in postgresql tables

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pasechnik Vlad

database laravel migrations postgres inheritance postresql

31/07 2014

v1.0

1.0.0.0

Add inheritance in postgresql tables

  Sources   Download

MIT

The Requires

 

The Development Requires

database laravel migrations postgres inheritance postresql