Updating EntityDoi db script removing problematic column entity_type and adding a new one with the same name of type smallint in order for the queries to work properly
This commit is contained in:
parent
9ba8751564
commit
8227f60cda
|
@ -8,7 +8,7 @@ ALTER TABLE public."EntityDoi"
|
||||||
RENAME "ID" TO id;
|
RENAME "ID" TO id;
|
||||||
|
|
||||||
ALTER TABLE public."EntityDoi"
|
ALTER TABLE public."EntityDoi"
|
||||||
RENAME "EntityType" TO entity_type;
|
DROP COLUMN "EntityType";
|
||||||
|
|
||||||
ALTER TABLE public."EntityDoi"
|
ALTER TABLE public."EntityDoi"
|
||||||
RENAME "RepositoryId" TO repository_id;
|
RENAME "RepositoryId" TO repository_id;
|
||||||
|
@ -24,6 +24,9 @@ ALTER TABLE public."EntityDoi"
|
||||||
|
|
||||||
ALTER TABLE public."EntityDoi"
|
ALTER TABLE public."EntityDoi"
|
||||||
RENAME "EntityId" TO entity_id;
|
RENAME "EntityId" TO entity_id;
|
||||||
|
|
||||||
|
ALTER TABLE public."EntityDoi"
|
||||||
|
ADD COLUMN entity_type smallint NOT NULL DEFAULT 0;
|
||||||
|
|
||||||
ALTER TABLE public."EntityDoi"
|
ALTER TABLE public."EntityDoi"
|
||||||
ADD COLUMN is_active smallint NOT NULL DEFAULT 1;
|
ADD COLUMN is_active smallint NOT NULL DEFAULT 1;
|
||||||
|
|
Loading…
Reference in New Issue