2017 © Pedro Peláez
 

library laravel-schema-extend

support MySQL 'table comment','int' data type length setting

image

jialeo/laravel-schema-extend

support MySQL 'table comment','int' data type length setting

  • Sunday, May 7, 2017
  • by liang
  • Repository
  • 1 Watchers
  • 0 Stars
  • 516 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 4 Versions
  • 21 % Grown

The README.md

laravel-schema-extend

forked from zedisdog/laravel-schema-extend, (*1)

  • support MySQL 'table comment'.
  • 'int' data type length setting

使用前的准备

在 composer.json 文件中申明依赖:, (*2)

  • support laravel 5.*
"Jialeo/laravel-schema-extend": "~0.5"

在配置文件 config/app.php 中替换“别名”, (*3)

'aliases' => array(
    ...
    // 'Schema' => Illuminate\Support\Facades\Schema::class,
    'Schema'    => Jialeo\LaravelSchemaExtend\Schema::class,
),

使用方法

Schema::create('tests', function ($table) {
    $table->increments('id')->comment('列注释');
    $table->comment = '表注释';

    $table->integer('int')->default(1)->length(1);
    $table->bigInteger('big')->default(1)->length(1);
    $table->smallInteger('small')->default(1)->length(1);
    $table->tinyInteger('tiny')->default(1)->length(1);
    $table->mediumInteger('medium')->default(1)->length(1);
});

The Versions

07/05 2017

dev-master

9999999-dev

support MySQL 'table comment','int' data type length setting

  Sources   Download

The Requires

 

by chenjialiang

07/05 2017

v1.0

1.0.0.0

support MySQL 'table comment','int' data type length setting

  Sources   Download

The Requires

 

by chenjialiang

07/05 2017

dev-develop

dev-develop

support MySQL 'table comment','int' data type length setting

  Sources   Download

The Requires

 

by chenjialiang

16/11 2015

dev-zedisdog

dev-zedisdog

support MySQL 'table comment'.

  Sources   Download

The Requires

 

by Avatar zed