mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19: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
18
core/database/scripts/mysql/db_00020.sql
Normal file
18
core/database/scripts/mysql/db_00020.sql
Normal file
|
@ -0,0 +1,18 @@
|
|||
/* enterprise edition */
|
||||
|
||||
-- consistency of table engines
|
||||
ALTER TABLE config ENGINE = InnoDB;
|
||||
ALTER TABLE permission ENGINE = InnoDB;
|
||||
ALTER TABLE category ENGINE = InnoDB;
|
||||
ALTER TABLE categorymember ENGINE = InnoDB;
|
||||
ALTER TABLE role ENGINE = InnoDB;
|
||||
ALTER TABLE rolemember ENGINE = InnoDB;
|
||||
|
||||
-- content analytics
|
||||
ALTER TABLE useractivity ADD COLUMN `metadata` VARCHAR(1000) NOT NULL DEFAULT '' AFTER `activitytype`;
|
||||
|
||||
-- new role for viewing content analytics
|
||||
ALTER TABLE account ADD COLUMN `analytics` BOOL NOT NULL DEFAULT 0 AFTER `users`;
|
||||
UPDATE account SET analytics=1 WHERE `admin`=1;
|
||||
|
||||
-- deprecations
|
Loading…
Add table
Add a link
Reference in a new issue