From 6d5b0070b2b5690948b1e9271ca47afad044b5e9 Mon Sep 17 00:00:00 2001 From: Tit Petric Date: Sun, 25 Nov 2018 12:58:46 +0100 Subject: [PATCH] add(crm): add db migration for links --- .../mysql/20181125122152.add_multiple_relationships.up.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 crm/db/schema/mysql/20181125122152.add_multiple_relationships.up.sql diff --git a/crm/db/schema/mysql/20181125122152.add_multiple_relationships.up.sql b/crm/db/schema/mysql/20181125122152.add_multiple_relationships.up.sql new file mode 100644 index 000000000..8d1ec6663 --- /dev/null +++ b/crm/db/schema/mysql/20181125122152.add_multiple_relationships.up.sql @@ -0,0 +1,6 @@ +CREATE TABLE `crm_content_links` ( + `content_id` bigint(20) unsigned NOT NULL, + `column_name` varchar(255) NOT NULL, + `rel_content_id` bigint(20) unsigned NOT NULL, + PRIMARY KEY (`content_id`,`column_name`,`rel_content_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file