mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-28 18:40:39 +00:00
add changes to database for link types
This commit is contained in:
parent
9421d90077
commit
8cb2e9bfa3
|
|
@ -56,6 +56,14 @@ CREATE TABLE "tblUserAttributes" (
|
||||||
UNIQUE (userID, attrdef)
|
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';
|
UPDATE "tblVersion" set "major"=6, "minor"=1, "subminor"=0, "module"='core';
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,14 @@ CREATE TABLE `tblUserAttributes` (
|
||||||
UNIQUE (`userID`, `attrdef`)
|
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';
|
UPDATE `tblVersion` set `major`=6, `minor`=1, `subminor`=0, `module`='core';
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user