ldc-gen-game-web/database/migrations/2020_10_20_165858_create_codes.php
Vincent BRIDIER 73ffe13a1a - Add RE7 Routes
- Add unique on codes_unique table
- Add some fields to SettingsGlobal
2021-05-27 20:34:09 +02:00

34 lines
743 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCodes extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('codes', function (Blueprint $table) {
$table->id();
$table->string('code_unique')->unique();
$table->boolean('code_used')->default(0);
$table->boolean('code_exported')->default(0);
$table->date('date_creation');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('codes');
}
}