add changes to database for link types

This commit is contained in:
Uwe Steinmann 2024-01-24 11:58:10 +01:00
parent 9421d90077
commit 8cb2e9bfa3
2 changed files with 16 additions and 0 deletions

View File

@ -56,6 +56,14 @@ CREATE TABLE "tblUserAttributes" (
UNIQUE (userID, attrdef)
) ;
CREATE TABLE "tblLinkType" (
"id" SERIAL UNIQUE,
"name" text NOT NULL,
"color" char(8) DEFAULT NULL
);
ALTER TABLE "tblDocumentLinks" ADD COLUMN "linktype" INTEGER DEFAULT NULL REFERENCES tblLinkType("id") ON DELETE CASCADE;
UPDATE "tblVersion" set "major"=6, "minor"=1, "subminor"=0, "module"='core';
COMMIT;

View File

@ -102,6 +102,14 @@ CREATE TABLE `tblUserAttributes` (
UNIQUE (`userID`, `attrdef`)
);
CREATE TABLE `tblLinkType` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`name` text NOT NULL,
`color` char(8) DEFAULT NULL
);
ALTER TABLE `tblDocumentLinks` ADD COLUMN `linktype` INTEGER DEFAULT NULL REFERENCES tblLinkType(`id`) ON DELETE CASCADE;
UPDATE `tblVersion` set `major`=6, `minor`=1, `subminor`=0, `module`='core';
COMMIT;