Skip to content

Commit e7fff68

Browse files
committed
fix(db): sqlite migration
1 parent bc8a231 commit e7fff68

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

db/sql/migrations/v2.16.50.err.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
alter table `project__terraform_inventory_state` change `state` `state` text not null
1+
{{if .Sqlite}}
2+
{{else}}
3+
alter table `project__terraform_inventory_state` change `state` `state` text not null;
4+
{{end}}

db/sql/migrations/v2.16.50.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
alter table `project__terraform_inventory_state` change `state` `state` longtext not null
1+
{{if .Sqlite}}
2+
{{else}}
3+
alter table `project__terraform_inventory_state` change `state` `state` longtext not null;
4+
{{end}}

0 commit comments

Comments
 (0)