Skip to content

Commit 4d8e6a5

Browse files
matiasperrone-exosmarcet
authored andcommitted
chore: unify migrations
1 parent 856f031 commit 4d8e6a5

2 files changed

Lines changed: 1 addition & 61 deletions

File tree

‎database/migrations/Version20260416194357.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function up(Schema $schema): void
5454
$table->dateTime('expires_at');
5555
$table->dateTime('last_seen_at');
5656
$table->boolean('is_revoked')->setNotnull(true)->setDefault(false);
57-
$table->index(["user_id", "device_identifier"], "utd_user_device_idx");
57+
$table->unique(["user_id", "device_identifier"], "utd_user_device_uniq");
5858
$table->index(["user_id", "is_revoked"], "utd_user_revoked_idx");
5959
$table->index(["expires_at"], "utd_expires_idx");
6060
$table->foreign("users", "user_id", "id", ["onDelete" => "CASCADE"]);

‎database/migrations/Version20260424120000.php‎

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)