Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
6 | class CreateRegenciesTable extends Migration { |
||
7 | |||
8 | public function up() |
||
9 | { |
||
10 | Schema::create('regencies', function(Blueprint $table) { |
||
11 | $table->increments('id'); |
||
12 | $table->integer('province_id')->unsigned()->nullable()->index(); |
||
13 | $table->string('name', 191)->index(); |
||
14 | $table->timestamps(); |
||
15 | $table->softDeletes(); |
||
16 | }); |
||
17 | } |
||
18 | |||
19 | public function down() |
||
22 | } |
||
23 | } |