fix more sql errors

This commit is contained in:
Uwe Steinmann 2017-02-28 17:32:35 +01:00
parent adf4b954f0
commit 5739611595

View File

@ -3,7 +3,7 @@ START TRANSACTION;
CREATE TABLE "tblDownloadLinks" ( CREATE TABLE "tblDownloadLinks" (
"id" SERIAL UNIQUE, "id" SERIAL UNIQUE,
"document" INTEGER REFERENCES "tblDocuments" ("id") ON DELETE CASCADE, "document" INTEGER REFERENCES "tblDocuments" ("id") ON DELETE CASCADE,
"version" INTEGER unsigned NOT NULL default '0', "version" INTEGER NOT NULL default '0',
"userID" INTEGER NOT NULL default '0' REFERENCES "tblUsers" ("id") ON DELETE CASCADE, "userID" INTEGER NOT NULL default '0' REFERENCES "tblUsers" ("id") ON DELETE CASCADE,
"hash" varchar(50) default NULL, "hash" varchar(50) default NULL,
"valid" TEXT default NULL "valid" TEXT default NULL
@ -31,6 +31,6 @@ CREATE TABLE "tblFolderAttributeDefinitionGroup" (
UNIQUE ("folder", "attrgrp") UNIQUE ("folder", "attrgrp")
); );
UPDATE tblVersion set "major"=6, "minor"=1, "subminor"=0; UPDATE "tblVersion" set "major"=6, "minor"=1, "subminor"=0;
COMMIT; COMMIT;