ldc-gen-game-web/database/migrations/2020_10_20_165858_create_codes.php
2023-12-12 12:25:45 +01:00

32 lines
739 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('codes', function (Blueprint $table) {
$table->unsignedBigInteger('id')->primary();
$table->boolean('code_exported')->default(0)->comment('Has the code been exported ?');
$table->date('date_creation')->comment('Code creation date');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('codes');
}
};