2017 © Pedro Peláez
 

library laravel-schema-extend

supplement for eloquent migration

image

zedisdog/laravel-schema-extend

supplement for eloquent migration

  • Monday, May 28, 2018
  • by zedisdog
  • Repository
  • 1 Watchers
  • 30 Stars
  • 3,319 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 11 Versions
  • 14 % Grown

The README.md

laravel-schema-extend

License, (*1)

  • support MySQL 'table comment'.
  • 'column comment' is built-in in greater than 5.1 version.
  • support variable length for integer/tinyint/mediumint/smallint/bigint

just extend the original class, (*2)

Install

Require this package with composer using the following command:, (*3)

composer require zedisdog/laravel-schema-extend

less than 5.5

modify the alias Schema in config/app.php:, (*4)

'aliases' => [
    ...
    // 'Schema' => Illuminate\Support\Facades\Schema::class,
    'Schema'    => Jialeo\LaravelSchemaExtend\Schema::class,
],

great than 5.5

just modify use statement from, (*5)

use Illuminate\Support\Facades\Schema;

to, (*6)

use Jialeo\LaravelSchemaExtend\Schema;

in migrate files., (*7)

Usage

Schema::create('tests', function ($table) {
    //this is alredy built-in.
    $table->increments('id')->comment('column 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);

    $table->comment = 'table comment';
    $table->autoIncrement = 100;
});

Thanks

PS.

sorry for my bad english, (*8)

The Versions

28/05 2018

dev-develop

dev-develop

supplement for eloquent migration

  Sources   Download

WTFPL

The Requires

 

The Development Requires

by Avatar zed

28/05 2018

dev-master

9999999-dev

supplement for eloquent migration

  Sources   Download

WTFPL

The Requires

 

The Development Requires

by Avatar zed

28/05 2018

v1.1.0

1.1.0.0

supplement for eloquent migration

  Sources   Download

WTFPL

The Requires

 

The Development Requires

by Avatar zed

23/05 2018

v1.0.4

1.0.4.0

supplement for eloquent migration

  Sources   Download

WTFPL

The Requires

 

The Development Requires

by Avatar zed

30/09 2017

v1.0.3

1.0.3.0

supplement for eloquent migration

  Sources   Download

WTFPL

The Requires

 

The Development Requires

by Avatar zed

11/06 2017

v1.0.2

1.0.2.0

supplement for eloquent migration

  Sources   Download

WTFPL

The Requires

 

The Development Requires

by Avatar zed

11/06 2017

v1.0.1

1.0.1.0

supplement for eloquent migration

  Sources   Download

The Requires

 

The Development Requires

by Avatar zed

11/06 2017

v1.0.0

1.0.0.0

supplement for eloquent migration

  Sources   Download

The Requires

 

The Development Requires

by Avatar zed

16/11 2015

v0.1.0

0.1.0.0

support MySQL 'table comment'.

  Sources   Download

The Requires

 

by Avatar zed

16/11 2015

v0.5

0.5.0.0

support MySQL 'table comment'.

  Sources   Download

The Requires

 

by Avatar zed

16/11 2015

v0.6

0.6.0.0

support MySQL 'table comment'.

  Sources   Download

The Requires

 

by Avatar zed