Skip to content

Commit

Permalink
Dev: fixed table prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac authored and TonisOrmisson committed Jul 14, 2017
1 parent 30683cf commit 99ab149
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions installer/sql/create-mysql.sql
Expand Up @@ -694,7 +694,7 @@ INSERT INTO `prefix_surveymenu_entries` VALUES


-- -----------------------------------------------------
-- Table `lime_templates`
-- Table `prefix_templates`
-- -----------------------------------------------------
CREATE TABLE `prefix_templates` (
`name` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'identifier, no special chars',
Expand All @@ -716,16 +716,16 @@ CREATE TABLE `prefix_templates` (
`extends_templates_name` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

ALTER TABLE `lime_templates`
ALTER TABLE `prefix_templates`
ADD PRIMARY KEY (`name`);


INSERT INTO `lime_templates` (`name`, `title`, `creation_date`, `author`, `author_email`, `author_url`, `copyright`, `license`, `version`, `api_version`, `view_folder`, `files_folder`, `description`, `last_update`, `folder`, `owner_id`, `extends_templates_name`) VALUES
INSERT INTO `prefix_templates` (`name`, `title`, `creation_date`, `author`, `author_email`, `author_url`, `copyright`, `license`, `version`, `api_version`, `view_folder`, `files_folder`, `description`, `last_update`, `folder`, `owner_id`, `extends_templates_name`) VALUES
('default', 'Advanced Template', '2017-07-11', 'Louis Gac', 'louis.gac@limesurvey.org', 'https://www.limesurvey.org/', 'Copyright (C) 2007-2017 The LimeSurvey Project Team\r\nAll rights reserved.', 'License: GNU/GPL License v2 or later, see LICENSE.php\r\n\r\nLimeSurvey is free software. This version may have been modified pursuant to the GNU General Public License, and as distributed it includes or is derivative of works licensed under the GNU General Public License or other free or open source software licenses. See COPYRIGHT.php for copyright notices and details.', '1.0', '3.0', 'views', 'files', 'LimeSurvey Advanced Template:\r\nMany options for user customizations. \r\n', NULL, 'default', 0, NULL);


-- -----------------------------------------------------
-- Table `lime_template_configuration`
-- Table `prefix_template_configuration`
-- -----------------------------------------------------
CREATE TABLE `prefix_template_configuration` (
`id` int(11) UNSIGNED NOT NULL,
Expand All @@ -746,15 +746,14 @@ CREATE TABLE `prefix_template_configuration` (



ALTER TABLE `lime_template_configuration`
ALTER TABLE `prefix_template_configuration`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id_UNIQUE` (`id`),
ADD KEY `fk_lime_template_configuration_lime_templates_idx` (`templates_name`);
ADD UNIQUE KEY `id_UNIQUE` (`id`);

ALTER TABLE `lime_template_configuration`
ALTER TABLE `prefix_template_configuration`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

INSERT INTO `lime_template_configuration` (`id`, `templates_name`, `gsid`, `sid`, `files_css`, `files_js`, `files_print_css`, `options`, `cssframework_name`, `cssframework_css`, `cssframework_js`, `packages_to_load`, `packages_ltr`, `packages_rtl`) VALUES
INSERT INTO `prefix_template_configuration` (`id`, `templates_name`, `gsid`, `sid`, `files_css`, `files_js`, `files_print_css`, `options`, `cssframework_name`, `cssframework_css`, `cssframework_js`, `packages_to_load`, `packages_ltr`, `packages_rtl`) VALUES
(1, 'default', NULL, NULL, '{\r\n "add": ["css/template.css", "css/animate.css"]\r\n}', '{\r\n "add": ["scripts/template.js"]\r\n}', '{\r\n"add":"css/print_template.css",\r\n}', '{\r\n"ajaxmode":"on",\r\n"brandlogo":"on",\r\n"backgroundimage":"on",\r\n"animatebody":"on",\r\n"bodyanimation":"lightSpeedIn",\r\n"animatequestion":"on",\r\n"questionanimation":"flipInX",\r\n"animatealert":"on",\r\n"alertanimation":"shake"\r\n}', 'bootstrap', '{\r\n "replace": ["css/bootstrap.css", "css/yiistrap.css"]\r\n}', '', 'template-default,', 'template-default-ltr,', 'template-default-rtl,');


Expand Down

0 comments on commit 99ab149

Please sign in to comment.