/
home
/
repixa5
/
writomate.com
/
database
/
migrations
/
New Directory
Upload File
HOME
<?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('cookie_settings', function (Blueprint $table) { $table->id(); $table->boolean('enable_cookies')->default(false); $table->boolean('enable_dark_mode')->default(false); $table->boolean('disable_page_interaction')->default(false); $table->boolean('hide_from_bots')->default(true); $table->string('consent_modal_layouts')->nullable(); $table->string('consent_modal_position')->nullable(); $table->string('preferences_modal_layout')->nullable(); $table->string('preferences_modal_position')->nullable(); $table->integer('days')->default(7); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('cookie_settings'); } };