From cc6e23407bcf65694ba351dc6f6e97397602f308 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 20 Feb 2026 16:15:48 -0600 Subject: [PATCH] se crea tabla para mantener tokens --- ...4_add_unsubscribe_token_to_users_table.php | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 database/migrations/2026_02_20_161444_add_unsubscribe_token_to_users_table.php 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']); + }); +} +};