Skip to content

Commit

Permalink
Merge pull request #1471 from NASA-AMMOS/feature/sequence-adaptation-…
Browse files Browse the repository at this point in the history
…names

Added a default value to sequence adaptation names so migrations dont…
  • Loading branch information
cohansen authored Jun 11, 2024
2 parents 53be622 + d586b2d commit 884b891
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
alter table sequencing.sequence_adaptation
drop constraint sequence_adaptation_natural_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,
add constraint sequence_adaptation_natural_key
add column name text not null default gen_random_uuid(),
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
@@ -1,15 +1,15 @@
create table sequencing.sequence_adaptation (
id integer generated always as identity,
adaptation text not null,
name text not null,
name text not null default gen_random_uuid(),
created_at timestamptz not null default now(),
owner text,
updated_at timestamptz not null default now(),
updated_by text,

constraint sequence_adaptation_synthetic_key
primary key (id),
constraint sequence_adaptation_natural_key
constraint sequence_adaptation_name_unique_key
unique (name),
foreign key (owner)
references permissions.users
Expand Down

0 comments on commit 884b891

Please sign in to comment.