20 行
579 B
PHP
20 行
579 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Schema\Builder;
|
|
|
|
return [
|
|
'up' => function (Builder $schema) {
|
|
$schema->create('catchthefish_rounds', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->string('name');
|
|
$table->timestamp('starts_at')->nullable()->index();
|
|
$table->timestamp('ends_at')->nullable()->index();
|
|
$table->timestamps();
|
|
});
|
|
},
|
|
'down' => function (Builder $schema) {
|
|
$schema->dropIfExists('catchthefish_rounds');
|
|
},
|
|
];
|