From f6a2f0d5d7940162be38d529f6ae85251e22c4ba Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Fri, 11 Sep 2015 11:08:00 +1000 Subject: [PATCH] Updated database structure --- CHANGELOG | 2 ++ database/quexs.sql | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 9e138199..a0e4d362 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -52,6 +52,8 @@ WHERE 1; /* Remove redundant table */ DROP TABLE `sessions2`; +/* Add sort order feature to questionnaire sample table */ +ALTER TABLE `questionnaire_sample` ADD `sort_order` INT( 11 ) NOT NULL DEFAULT '0'; queXS 1.13.1 - Changes since 1.13.0 diff --git a/database/quexs.sql b/database/quexs.sql index b5995636..166480a5 100644 --- a/database/quexs.sql +++ b/database/quexs.sql @@ -1263,6 +1263,7 @@ CREATE TABLE `questionnaire_sample` ( `random_select` tinyint(1) NOT NULL DEFAULT '0', `answering_machine_messages` int(11) NOT NULL DEFAULT '1', `allow_new` tinyint(1) NOT NULL DEFAULT '1', + `sort_order` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`questionnaire_id`,`sample_import_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;