mirror of
https://github.com/documize/community.git
synced 2025-07-22 22:59:43 +02:00
Make database install/upgrade provider aware
Ground work for installing and upgrading database schema based upon DB provider (MySQL, PostgresSQL, SQL Server, etc.) Cleaned up legacy cruft, refactored, commented and made simpler for to support additional database providers.
This commit is contained in:
parent
cf1e1ff943
commit
2336dab69f
38 changed files with 1401 additions and 1208 deletions
9
core/database/scripts/mysql/db_00018.sql
Normal file
9
core/database/scripts/mysql/db_00018.sql
Normal file
|
@ -0,0 +1,9 @@
|
|||
/* community edition */
|
||||
|
||||
-- role and role membership
|
||||
ALTER TABLE role ADD COLUMN `purpose` VARCHAR(100) DEFAULT '' NOT NULL AFTER `role`;
|
||||
ALTER TABLE role ADD COLUMN `revised` TIMESTAMP DEFAULT CURRENT_TIMESTAMP AFTER `created`;
|
||||
CREATE INDEX idx_role_1 ON role(orgid);
|
||||
|
||||
-- deprecations
|
||||
DROP TABLE IF EXISTS `labelrole`;
|
Loading…
Add table
Add a link
Reference in a new issue