mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Add unique index to likes migration
This commit is contained in:
parent
d641f2b453
commit
594576185b
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ class CreateLikesTable extends Migration
|
||||||
$table->bigInteger('status_id')->unsigned();
|
$table->bigInteger('status_id')->unsigned();
|
||||||
// Flag to remove spammy profile_ids
|
// Flag to remove spammy profile_ids
|
||||||
$table->boolean('flagged')->default(false);
|
$table->boolean('flagged')->default(false);
|
||||||
|
$table->unique(['profile_id', 'status_id']);
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue