Added joblines to repair data. Field migrations to conform to cieca standards for joblines

This commit is contained in:
Patrick Fic
2020-01-29 20:15:36 -08:00
parent 7630547c6c
commit 7eedd95403
12 changed files with 230 additions and 14 deletions

View File

@@ -0,0 +1 @@
[]

View 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

View File

@@ -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

View File

@@ -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