jumper423/laravel-postgresql-inherit
Composer 安装命令:
composer require jumper423/laravel-postgresql-inherit
包简介
Add inheritance in postgresql tables
README 文档
README
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'); });
统计信息
- 总下载量: 52
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-06-16