mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore: add unique org name constraint to db (#13311)
This commit is contained in:
committed by
GitHub
parent
4af0f093ee
commit
a63d427efd
@ -0,0 +1,2 @@
|
||||
ALTER TABLE ONLY organizations
|
||||
DROP CONSTRAINT IF EXISTS organizations_name;
|
2
coderd/database/migrations/000210_unique_org_name.up.sql
Normal file
2
coderd/database/migrations/000210_unique_org_name.up.sql
Normal file
@ -0,0 +1,2 @@
|
||||
ALTER TABLE ONLY organizations
|
||||
ADD CONSTRAINT organizations_name UNIQUE (name);
|
Reference in New Issue
Block a user