add(crm): import page table

This commit is contained in:
Tit Petric
2018-10-15 13:30:29 +00:00
parent 64aee5a25b
commit 251ac16b2d
2 changed files with 14 additions and 1 deletions
@@ -44,3 +44,16 @@ CREATE TABLE `crm_module_form` (
PRIMARY KEY (`module_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `crm_page` (
`id` bigint(20) unsigned NOT NULL COMMENT 'Page ID',
`self_id` bigint(20) unsigned NOT NULL COMMENT 'Parent Page ID',
`module_id` bigint(20) unsigned NOT NULL COMMENT 'Module ID (optional)',
`title` varchar(255) NOT NULL COMMENT 'Title (required)',
`description` text NOT NULL COMMENT 'Description',
`blocks` json NOT NULL COMMENT 'JSON array of blocks for the page',
`visible` tinyint(4) NOT NULL COMMENT 'Is page visible in navigation?',
`weight` int(11) NOT NULL COMMENT 'Order for navigation',
PRIMARY KEY (`id`,`self_id`),
KEY `module_id` (`module_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+1 -1
View File
@@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS `migrations` (
`project` varchar(16) NOT NULL COMMENT 'sam, crm, ...',
`filename` varchar(255) NOT NULL COMMENT 'yyyymmddHHMMSS.sql',
`statement_index` int(11) NOT NULL COMMENT 'Statement number from SQL file',
`status` TEXT NOT NULL COMMENT 'ok or full error message',
`status` text NOT NULL COMMENT 'ok or full error message',
PRIMARY KEY (`project`,`filename`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;