Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a default value to sequence adaptation names so migrations dont… #1471

Merged
merged 2 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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(),
Mythicaeda marked this conversation as resolved.
Show resolved Hide resolved
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
Loading