Added joblines to repair data. Field migrations to conform to cieca standards for joblines
This commit is contained in:
1
hasura/migrations/1580356194265_alter_line_ref/down.yaml
Normal file
1
hasura/migrations/1580356194265_alter_line_ref/down.yaml
Normal file
@@ -0,0 +1 @@
|
||||
[]
|
||||
7
hasura/migrations/1580356194265_alter_line_ref/up.yaml
Normal file
7
hasura/migrations/1580356194265_alter_line_ref/up.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
- args:
|
||||
cascade: true
|
||||
sql: "ALTER TABLE joblines ALTER COLUMN line_ref DROP DEFAULT;\r\nALTER TABLE
|
||||
joblines\r\n ALTER line_ref TYPE numeric USING CASE WHEN true THEN 0 ELSE
|
||||
0 END;\r\n \r\n ALTER\r\n TABLE joblines ALTER COLUMN line_ref
|
||||
SET DEFAULT 0;"
|
||||
type: run_sql
|
||||
@@ -0,0 +1,6 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."joblines" ALTER COLUMN "line_ref" SET DEFAULT 0;
|
||||
type: run_sql
|
||||
- args:
|
||||
sql: COMMENT ON COLUMN "public"."joblines"."line_ref" IS E'null'
|
||||
type: run_sql
|
||||
@@ -0,0 +1,6 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."joblines" ALTER COLUMN "line_ref" DROP DEFAULT;
|
||||
type: run_sql
|
||||
- args:
|
||||
sql: COMMENT ON COLUMN "public"."joblines"."line_ref" IS E''
|
||||
type: run_sql
|
||||
Reference in New Issue
Block a user