From 0f56e4ada124578a05693e7a171a627a9e8334dd Mon Sep 17 00:00:00 2001 From: Wessie Date: Mon, 16 Dec 2024 20:35:09 +0100 Subject: [PATCH] migrations: make `users.user` have a unique constraint --- migrations/mysql/0019_users_user_unique.up.sql | 1 + 1 file changed, 1 insertion(+) create mode 100644 migrations/mysql/0019_users_user_unique.up.sql diff --git a/migrations/mysql/0019_users_user_unique.up.sql b/migrations/mysql/0019_users_user_unique.up.sql new file mode 100644 index 0000000..bfc970f --- /dev/null +++ b/migrations/mysql/0019_users_user_unique.up.sql @@ -0,0 +1 @@ +ALTER TABLE users ADD CONSTRAINT user_unique UNIQUE (user); \ No newline at end of file