1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-22 06:39:43 +02:00
documize/core/database/scripts/autobuild/db_00009.sql
2017-01-20 14:24:38 -08:00

10 lines
558 B
SQL

/* community edition */
ALTER TABLE page ADD COLUMN `preset` BOOL NOT NULL DEFAULT 0 AFTER `pagetype`;
ALTER TABLE page ADD COLUMN `presetid` CHAR(16) NOT NULL DEFAULT '' COLLATE utf8_bin AFTER `preset`;
/* Note:
Preset data is not required in pagemeta as a simple join to page will surface these fields.
Version history table does not need these fields as they are populated once during page creation:
-- you cannot mark an existing section as a preset
-- a page is only marked as preset during it's creation (e.g. created from an existing preset)
*/