File tree 2 files changed +2
-14
lines changed
2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ func (d *BoltDb) ApplyMigration(m db.Migration) (err error) {
37
37
switch m .Version {
38
38
case "2.8.26" :
39
39
err = migration_2_8_28 {migration {d .db }}.Apply ()
40
+ case "2.8.40" :
41
+ err = migration_2_8_40 {migration {d .db }}.Apply ()
40
42
}
41
43
42
44
if err != nil {
Original file line number Diff line number Diff line change 1
- alter table ` task` change ` build_task_id` ` build_task_id_old` int ;
2
-
3
- alter table ` task` add column ` build_task_id` int ;
4
-
5
- update ` task` set ` build_task_id` = ` build_task_id_old` where ` build_task_id_old` is not null ;
6
-
7
- update ` task` set ` build_task_id_old` = null where ` build_task_id_old` is not null ;
8
-
9
1
alter table ` task`
10
2
add constraint ` task_build_task_id_fk_y38rt`
11
3
foreign key (` build_task_id` ) references ` task` (` id` )
12
4
on delete set null ;
13
5
14
- alter table ` task` drop foreign key if exists ` task_ibfk_2` ;
15
-
16
- alter table ` task` drop column ` build_task_id_old` ;
17
-
18
-
19
-
20
6
21
7
create table `project__template_backup_385025846 ` (
22
8
id int ,
You can’t perform that action at this time.
0 commit comments