Skip to content

Commit

Permalink
Renamed sequence adaptation name unique constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
cohansen committed Jun 11, 2024
1 parent 295b304 commit d586b2d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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');
Original file line number Diff line number Diff line change
@@ -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''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d586b2d

Please sign in to comment.