framework/stubs/migrations/create.stub

17 lines
353 B
Plaintext
Raw Normal View History

2015-09-17 10:46:38 +08:00
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\Builder;
2015-09-17 10:46:38 +08:00
return [
'up' => function (Builder $schema) {
$schema->create('{{table}}', function (Blueprint $table) {
2015-09-17 10:46:38 +08:00
$table->increments('id');
});
},
2015-09-17 10:46:38 +08:00
'down' => function (Builder $schema) {
$schema->drop('{{table}}');
2015-09-17 10:46:38 +08:00
}
];