init push
This commit is contained in:
15
migrations/goose/20260610_contact_username_non_unique.sql
Normal file
15
migrations/goose/20260610_contact_username_non_unique.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- +goose Up
|
||||
-- Username uniqueness is now enforced in the backend for contact flows,
|
||||
-- so keep a regular index for lookups instead of a unique constraint.
|
||||
|
||||
DROP INDEX IF EXISTS idx_users_username ON users;
|
||||
|
||||
CREATE INDEX idx_users_username
|
||||
ON users (username);
|
||||
|
||||
-- +goose Down
|
||||
DROP INDEX IF EXISTS idx_users_username ON users;
|
||||
|
||||
CREATE UNIQUE INDEX idx_users_username
|
||||
ON users (username);
|
||||
iya
|
||||
Reference in New Issue
Block a user