diff --git a/database/migrations/2026_02_20_161444_add_unsubscribe_token_to_users_table.php b/database/migrations/2026_02_20_161444_add_unsubscribe_token_to_users_table.php new file mode 100644 index 00000000..b4fa6d28 --- /dev/null +++ b/database/migrations/2026_02_20_161444_add_unsubscribe_token_to_users_table.php @@ -0,0 +1,23 @@ +string('unsubscribe_token')->nullable()->unique()->after('email'); + $table->boolean('subscribed')->default(true)->after('unsubscribe_token'); + }); +} + +public function down(): void +{ + Schema::table('users', function (Blueprint $table) { + $table->dropColumn(['unsubscribe_token','subscribed']); + }); +} +};