1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-22 06:39:43 +02:00

saving and inserting reusable content blocks

This commit is contained in:
Harvey Kandola 2017-01-20 14:24:38 -08:00
parent fdbf03b25c
commit b7fa3b9006
32 changed files with 1334 additions and 768 deletions

View file

@ -0,0 +1,10 @@
/* 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)
*/