mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: add unique org name constraint to db (#13311)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE ONLY organizations
|
||||
DROP CONSTRAINT IF EXISTS organizations_name;
|
||||
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE ONLY organizations
|
||||
ADD CONSTRAINT organizations_name UNIQUE (name);
|
||||
Reference in New Issue
Block a user