ldc-gen-game-web/database/migrations/2020_10_12_123129_create_settings.php
Romain Bonhomme de663e2fad Init
2020-10-21 15:26:21 +02:00

56 lines
1.9 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSettings extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('settings', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->dateTime('start_date');
$table->dateTime('end_date');
$table->integer('nb_participation_player');
$table->integer('nb_participation_ip');
$table->integer('nb_unique_code_use');
$table->boolean('use_ean_codes');
$table->boolean('activated_teaser');
$table->dateTime('teaser_end_activity')->nullable();
$table->boolean('activated_close_page');
$table->dateTime('close_page_active_date')->nullable();
$table->string('redirect_close');
$table->boolean('reductions_activated');
$table->integer('reductions_distribution')->nullable();
$table->string('reductions_site')->nullable();
$table->string('reductions_campaign')->nullable();
$table->string('reductions_id_coupon')->nullable();
$table->boolean('facebook_activated');
$table->string('facebook_app_id')->nullable();
$table->string('facebook_secret')->nullable();
$table->string('mail_from');
$table->string('mail_sender');
$table->string('mail_sender_name')->nullable();
$table->text('notification_emails')->nullable();
$table->timestamps();
$table->collation = 'utf8mb4_unicode_ci';
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('settings');
}
}