Skip to content

Commit a0fdf06

Browse files
Fix migration issue
1 parent bb7db8c commit a0fdf06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

database/migrations/2024_12_19_000003_create_push_notification_recipients_table.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ public function up(): void
1414
Schema::create('push_notification_recipients', function (Blueprint $table): void {
1515
$table->id();
1616
$table->unsignedBigInteger('push_notification_id');
17-
$table->string('user_type'); // customer, admin, etc.
17+
$table->string('user_type', 50); // customer, admin, etc. - reduced length
1818
$table->unsignedBigInteger('user_id');
1919
$table->string('device_token')->nullable(); // The specific device token used
20-
$table->string('platform')->nullable(); // android, ios
21-
$table->string('status')->default('sent'); // sent, delivered, failed, read
20+
$table->string('platform', 20)->nullable(); // android, ios - reduced length
21+
$table->string('status', 20)->default('sent'); // sent, delivered, failed, read - reduced length
2222
$table->timestamp('sent_at')->nullable();
2323
$table->timestamp('delivered_at')->nullable();
2424
$table->timestamp('read_at')->nullable();

0 commit comments

Comments
 (0)