文件
catch-the-fish/migrations/2019_04_01_01_create_catchthefish_rounds_table.php
2026-07-31 00:13:44 +08:00

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');
},
];