Fixes bug on Sql scripts with naming conventions.

This commit is contained in:
gkolokythas 2019-06-26 16:30:26 +03:00
parent 2572d3e760
commit 76831573ff
2 changed files with 3 additions and 6 deletions

View File

@ -1,6 +1,6 @@
ALTER TABLE public."DMP"
ADD "PublishedDat" timestamp(6) with time zone
ADD "PublishedAt" timestamp(6) with time zone
UPDATE public."DMP"
SET "PublishedDat" = "FinalizedDat"
SET "PublishedAt" = "FinalizedDat"
where "isPublic" = True

View File

@ -1,5 +1,2 @@
ALTER TABLE public."DMP"
RENAME COLUMN "FinalizedDat" TO "FinalizedAt";
ALTER TABLE public."DMP"
RENAME COLUMN "PublishedDat" TO "PublishedAt";
RENAME COLUMN "FinalizedDat" TO "FinalizedAt";