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->smallInteger('code_length') ->default(config('codes.codeLength')); $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->string('reductions_site')->nullable(); $table->string('reductions_campaign')->nullable(); $table->text('web_coupons')->nullable(); $table->boolean('facebook_activated'); $table->string('facebook_app_id')->nullable(); $table->string('facebook_secret')->nullable(); $table->text('notification_emails')->nullable(); $table->boolean('winning_proof'); $table->string('company'); $table->string('analytics', 20)->nullable(); $table->timestamps(); $table->collation = 'utf8mb4_unicode_ci'; }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('settings'); } }