Fix migration

This commit is contained in:
Daniel Supernault 2024-12-22 16:01:46 -07:00
parent fb89814670
commit 9289792ad8
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -19,7 +19,7 @@ class CreateDirectMessagesTable extends Migration
$table->bigInteger('from_id')->unsigned()->index();
$table->string('from_profile_ids')->nullable();
$table->boolean('group_message')->default(false);
$table->bigInteger('status_id')->unsigned()->integer();
$table->bigInteger('status_id')->unsigned();
$table->unique(['to_id', 'from_id', 'status_id']);
$table->timestamp('read_at')->nullable();
$table->timestamps();