diff --git a/deployment/hasura/migrations/Aerie/5_sequence_adaptation_name/down.sql b/deployment/hasura/migrations/Aerie/5_sequence_adaptation_name/down.sql index 8ca894c629..261f2d5c41 100644 --- a/deployment/hasura/migrations/Aerie/5_sequence_adaptation_name/down.sql +++ b/deployment/hasura/migrations/Aerie/5_sequence_adaptation_name/down.sql @@ -1,5 +1,5 @@ alter table sequencing.sequence_adaptation - drop constraint sequence_adaptation_unique_key, + drop constraint sequence_adaptation_name_unique_key, drop column name; call migrations.mark_migration_rolled_back('5'); diff --git a/deployment/hasura/migrations/Aerie/5_sequence_adaptation_name/up.sql b/deployment/hasura/migrations/Aerie/5_sequence_adaptation_name/up.sql index 069754488f..36978f69f4 100644 --- a/deployment/hasura/migrations/Aerie/5_sequence_adaptation_name/up.sql +++ b/deployment/hasura/migrations/Aerie/5_sequence_adaptation_name/up.sql @@ -1,6 +1,6 @@ alter table sequencing.sequence_adaptation add column name text not null default gen_random_uuid(), - add constraint sequence_adaptation_unique_key + add constraint sequence_adaptation_name_unique_key unique (name); comment on column sequencing.sequence_adaptation.name is e'' diff --git a/deployment/postgres-init-db/sql/tables/sequencing/sequence_adaptation.sql b/deployment/postgres-init-db/sql/tables/sequencing/sequence_adaptation.sql index e3a1748f79..5272f99056 100644 --- a/deployment/postgres-init-db/sql/tables/sequencing/sequence_adaptation.sql +++ b/deployment/postgres-init-db/sql/tables/sequencing/sequence_adaptation.sql @@ -9,7 +9,7 @@ create table sequencing.sequence_adaptation ( constraint sequence_adaptation_synthetic_key primary key (id), - constraint sequence_adaptation_unique_key + constraint sequence_adaptation_name_unique_key unique (name), foreign key (owner) references permissions.users