Allow person to be correspondent, concerning or both

This commit is contained in:
Eike Kettner
2021-02-16 22:37:56 +01:00
parent 567bfb3e69
commit 48eee00c0b
19 changed files with 321 additions and 94 deletions

View File

@ -0,0 +1,9 @@
ALTER TABLE "person"
ADD COLUMN "person_use" varchar(254);
UPDATE "person" SET "person_use" = 'concerning' where "concerning" = true;
UPDATE "person" SET "person_use" = 'correspondent' where "concerning" = false;
UPDATE "person" SET "person_use" = 'both' where "concerning" is null;
ALTER TABLE "person"
DROP COLUMN "concerning";

View File

@ -0,0 +1,9 @@
ALTER TABLE `person`
ADD COLUMN `person_use` varchar(254);
UPDATE `person` SET `person_use` = 'concerning' where `concerning` = true;
UPDATE `person` SET `person_use` = 'correspondent' where `concerning` = false;
UPDATE `person` SET `person_use` = 'both' where `concerning` is null;
ALTER TABLE `person`
DROP COLUMN `concerning`;

View File

@ -0,0 +1,9 @@
ALTER TABLE "person"
ADD COLUMN "person_use" varchar(254);
UPDATE "person" SET "person_use" = 'concerning' where "concerning" = true;
UPDATE "person" SET "person_use" = 'correspondent' where "concerning" = false;
UPDATE "person" SET "person_use" = 'both' where "concerning" is null;
ALTER TABLE "person"
DROP COLUMN "concerning";