mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-12-01 20:03:33 +00:00
add database change for 5.2.0
This commit is contained in:
parent
e21e897468
commit
f8d698bab5
27
install/update-5.2.0/update-sqlite3.sql
Normal file
27
install/update-5.2.0/update-sqlite3.sql
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
BEGIN;
|
||||
|
||||
CREATE TABLE `tblAttributeDefinitionGroups` (
|
||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
`name` varchar(100) default NULL,
|
||||
`comment` text,
|
||||
UNIQUE(`name`)
|
||||
);
|
||||
|
||||
CREATE TABLE `tblAttributeDefinitionGroupAttributeDefinition` (
|
||||
`attrdef` INTEGER REFERENCES `tblAttributeDefinitions` (`id`) ON DELETE CASCADE,
|
||||
`attrgrp` INTEGER REFERENCES `tblAttributeGroups` (`id`) ON DELETE CASCADE,
|
||||
`sequence` INTEGER,
|
||||
`show` INTEGER,
|
||||
UNIQUE(`attrdef`, `attrgrp`)
|
||||
);
|
||||
|
||||
CREATE TABLE `tblFolderAttributeDefinitionGroup` (
|
||||
`folder` INTEGER REFERENCES `tblFolders` (`id`) ON DELETE CASCADE,
|
||||
`attrgrp` INTEGER REFERENCES `tblAttributeGroups` (`id`) ON DELETE CASCADE,
|
||||
`sequence` INTEGER,
|
||||
UNIQUE(`folder`, `attrgrp`)
|
||||
);
|
||||
|
||||
UPDATE tblVersion set major=5, minor=2, subminor=0;
|
||||
|
||||
COMMIT;
|
||||
Loading…
Reference in New Issue
Block a user