🆕 feat(database): add 'no_email' field to 'einundzwanzig_plebs' table for user email preferences

This commit is contained in:
fsociety
2024-10-25 19:17:42 +02:00
parent 70a274ac0b
commit 603eed4c46
2 changed files with 57 additions and 7 deletions

View File

@@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('einundzwanzig_plebs', function (Blueprint $table) {
$table->boolean('no_email')->default(false);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('einundzwanzig_plebs', function (Blueprint $table) {
//
});
}
};