File tree 5 files changed +23
-3
lines changed
metadata/databases/tables/sequencing
migrations/Aerie/5_sequence_adaptation_name
5 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 2
2
name : sequence_adaptation
3
3
schema : sequencing
4
4
configuration :
5
- custom_name : " sequence_adaptation"
5
+ custom_name : " sequence_adaptation"
6
6
select_permissions :
7
7
- role : aerie_admin
8
8
permission :
@@ -22,15 +22,15 @@ select_permissions:
22
22
insert_permissions :
23
23
- role : aerie_admin
24
24
permission :
25
- columns : [adaptation]
25
+ columns : [adaptation, name ]
26
26
check : {}
27
27
set :
28
28
owner : " x-hasura-user-id"
29
29
updated_by : " x-hasura-user-id"
30
30
update_permissions :
31
31
- role : aerie_admin
32
32
permission :
33
- columns : [adaptation, owner]
33
+ columns : [adaptation, name, owner]
34
34
filter : {}
35
35
set :
36
36
updated_by : " x-hasura-user-id"
Original file line number Diff line number Diff line change
1
+ alter table sequencing .sequence_adaptation
2
+ drop constraint sequence_adaptation_natural_key,
3
+ drop column name;
4
+
5
+ call migrations .mark_migration_rolled_back (' 5' );
Original file line number Diff line number Diff line change
1
+ alter table sequencing .sequence_adaptation
2
+ add column name text not null ,
3
+ add constraint sequence_adaptation_natural_key
4
+ unique (name);
5
+
6
+ comment on column sequencing.sequence_adaptation.name is e' '
7
+ ' The name of the sequence adaptation.' ;
8
+
9
+ call migrations .mark_migration_applied (' 5' );
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ call migrations.mark_migration_applied('1');
7
7
call migrations .mark_migration_applied (' 2' );
8
8
call migrations .mark_migration_applied (' 3' );
9
9
call migrations .mark_migration_applied (' 4' );
10
+ call migrations .mark_migration_applied (' 5' );
Original file line number Diff line number Diff line change 1
1
create table sequencing .sequence_adaptation (
2
2
id integer generated always as identity,
3
3
adaptation text not null ,
4
+ name text not null ,
4
5
created_at timestamptz not null default now(),
5
6
owner text ,
6
7
updated_at timestamptz not null default now(),
7
8
updated_by text ,
8
9
9
10
constraint sequence_adaptation_synthetic_key
10
11
primary key (id),
12
+ constraint sequence_adaptation_natural_key
13
+ unique (name),
11
14
foreign key (owner)
12
15
references permissions .users
13
16
on update cascade
@@ -22,6 +25,8 @@ comment on table sequencing.sequence_adaptation is e''
22
25
' A custom adaptation used to overwrite variable and linting rules for the sequence editor' ;
23
26
comment on column sequencing.sequence_adaptation.adaptation is e' '
24
27
' The sequencing adaptation code.' ;
28
+ comment on column sequencing.sequence_adaptation.name is e' '
29
+ ' The name of the sequence adaptation.' ;
25
30
26
31
create trigger set_timestamp
27
32
before update on sequencing .sequence_adaptation
You can’t perform that action at this time.
0 commit comments