jumper423/laravel-postgresql-inherit

Add inheritance in postgresql tables
52 3
Install
composer require jumper423/laravel-postgresql-inherit
Latest Version:2.1
PHP:>=5.4.0
Laravel:5
Older releases:4
License:MIT
Last Updated:Jun 16, 2016
Links: GitHub  ·  Packagist
Maintainer: jumper423

PostgresqlSchema

Software License

Add inheritance in postgresql tables

Installation

PHP 5.4+ and Laravel 5.2+ are required.

To get the latest version of PostgreSQL Schema, simply require "jumper423/laravel-postgresql-inherit": "2.*" 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');
});

Related Packages

orptech/laravel-migration-partition

Laravel extensions that extends Illuminate to enable partitioned table creation...

32,931 36
nunomaduro/laravel-optimize-database

Publishes migrations that make your database production ready.

66,196 269
proai/laravel-super-migrations

This Laravel package is useful for big databases for a better migrations structu...

2,819 11

Version History

Version Released PHP Laravel License
2.1 >=5.4.0 5.2.* MIT
2.0 >=5.4.0 5.2.* MIT
v1.0 >=5.4.0 4.2.* MIT