From e7d28b005b398f86c14dcf07594310fced899b3f Mon Sep 17 00:00:00 2001 From: Tit Petric Date: Wed, 15 Aug 2018 20:30:56 +0200 Subject: [PATCH] upd(crm): update db schema --- crm/db/schema/mysql/20180704080000.base.up.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crm/db/schema/mysql/20180704080000.base.up.sql b/crm/db/schema/mysql/20180704080000.base.up.sql index 2a082543f..d9cc71206 100644 --- a/crm/db/schema/mysql/20180704080000.base.up.sql +++ b/crm/db/schema/mysql/20180704080000.base.up.sql @@ -1,13 +1,14 @@ CREATE TABLE `crm_module` ( `id` bigint(20) unsigned NOT NULL, `name` varchar(64) NOT NULL COMMENT 'The name of the module', + `json` json NOT NULL COMMENT 'List of field definitions for the module', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `crm_module_content` ( `id` bigint(20) unsigned NOT NULL, `module_id` bigint(20) unsigned NOT NULL, - `json` json NOT NULL COMMENT 'Actual CRM module form fields as a JSON blob', + `json` json NOT NULL COMMENT 'Entry JSON blob based on module fields list', PRIMARY KEY (`id`,`module_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;