diff --git a/users/postgres/init.go b/users/postgres/init.go index 5d48de9ca..4f11528d0 100644 --- a/users/postgres/init.go +++ b/users/postgres/init.go @@ -37,6 +37,15 @@ func Migration() *migrate.MemoryMigrationSource { `DROP TABLE IF EXISTS clients`, }, }, + { + Id: "clients_02", + Up: []string{ + `ALTER TABLE clients ADD CONSTRAINT clients_name_key UNIQUE (name)`, + }, + Down: []string{ + `ALTER TABLE clients DROP CONSTRAINT clients_name_key`, + }, + }, }, } }