Skip to content

Commit

Permalink
style(install): add spaces between SQL statements
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jun 23, 2022
1 parent 1aca384 commit 352d44d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions install/mysql/plugin_formcreator_empty.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_answers` (
INDEX `plugin_formcreator_formanswers_id` (`plugin_formcreator_formanswers_id`),
INDEX `plugin_formcreator_questions_id` (`plugin_formcreator_questions_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_categories` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
Expand All @@ -28,6 +29,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_categories` (
INDEX `knowbaseitemcategories_id` (`knowbaseitemcategories_id`),
INDEX `plugin_formcreator_categories_id` (`plugin_formcreator_categories_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_entityconfigs` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`entities_id` int unsigned NOT NULL DEFAULT '0',
Expand All @@ -45,6 +47,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_entityconfigs` (
PRIMARY KEY (`id`),
UNIQUE KEY `unicity` (`entities_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_forms` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
Expand Down Expand Up @@ -74,6 +77,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_forms` (
INDEX `plugin_formcreator_categories_id` (`plugin_formcreator_categories_id`),
FULLTEXT KEY `Search` (`name`,`description`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_formanswers` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
Expand All @@ -93,6 +97,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_formanswers` (
INDEX `users_id_validator` (`users_id_validator`),
INDEX `groups_id_validator` (`groups_id_validator`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_forms_profiles` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`plugin_formcreator_forms_id` int unsigned NOT NULL DEFAULT '0',
Expand All @@ -101,6 +106,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_forms_profiles` (
PRIMARY KEY (`id`),
UNIQUE KEY `unicity` (`plugin_formcreator_forms_id`,`profiles_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_forms_users` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`plugin_formcreator_forms_id` int unsigned NOT NULL,
Expand All @@ -109,6 +115,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_forms_users` (
PRIMARY KEY (`id`),
UNIQUE KEY `unicity` (`plugin_formcreator_forms_id`,`users_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_forms_groups` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`plugin_formcreator_forms_id` int unsigned NOT NULL,
Expand All @@ -117,6 +124,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_forms_groups` (
PRIMARY KEY (`id`),
UNIQUE KEY `unicity` (`plugin_formcreator_forms_id`,`groups_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_forms_validators` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`plugin_formcreator_forms_id` int unsigned NOT NULL DEFAULT '0',
Expand All @@ -126,6 +134,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_forms_validators` (
PRIMARY KEY (`id`),
UNIQUE KEY `unicity` (`plugin_formcreator_forms_id`,`itemtype`,`items_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_questions` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
Expand All @@ -146,6 +155,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_questions` (
INDEX `plugin_formcreator_sections_id` (`plugin_formcreator_sections_id`),
FULLTEXT KEY `Search` (`name`,`description`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_conditions` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`itemtype` varchar(255) NOT NULL DEFAULT '' COMMENT 'itemtype of the item affected by the condition',
Expand All @@ -160,6 +170,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_conditions` (
INDEX `plugin_formcreator_questions_id` (`plugin_formcreator_questions_id`),
INDEX `item` (`itemtype`, `items_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_sections` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
Expand All @@ -170,6 +181,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_sections` (
PRIMARY KEY (`id`),
INDEX `plugin_formcreator_forms_id` (`plugin_formcreator_forms_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_targetchanges` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
Expand Down Expand Up @@ -208,6 +220,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_targetchanges` (
`uuid` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_targettickets` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
Expand Down Expand Up @@ -250,6 +263,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_targettickets` (
PRIMARY KEY (`id`),
INDEX `tickettemplates_id` (`tickettemplates_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_targetproblems` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
Expand All @@ -274,6 +288,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_targetproblems` (
PRIMARY KEY (`id`),
INDEX `problemtemplates_id` (`problemtemplates_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_targets_actors` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`itemtype` varchar(255) DEFAULT NULL,
Expand All @@ -287,6 +302,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_targets_actors` (
UNIQUE KEY `unicity` (`itemtype`,`items_id`, `actor_role`, `actor_type`, `actor_value`),
INDEX `item` (`itemtype`, `items_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_issues` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NULL DEFAULT NULL,
Expand Down Expand Up @@ -324,6 +340,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_issues` (
INDEX `date` (`date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;


CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_items_targettickets` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`plugin_formcreator_targettickets_id` int unsigned NOT NULL DEFAULT '0',
Expand All @@ -335,6 +352,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_items_targettickets` (
INDEX `plugin_formcreator_targettickets_id` (`plugin_formcreator_targettickets_id`),
INDEX `item` (`itemtype`,`items_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_questiondependencies` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`plugin_formcreator_questions_id` int unsigned NOT NULL DEFAULT '0',
Expand All @@ -345,6 +363,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_questiondependencies` (
INDEX `plugin_formcreator_questions_id` (`plugin_formcreator_questions_id`),
INDEX `plugin_formcreator_questions_id_2` (`plugin_formcreator_questions_id_2`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_questionregexes` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`plugin_formcreator_questions_id` int unsigned NOT NULL DEFAULT '0',
Expand All @@ -354,6 +373,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_questionregexes` (
PRIMARY KEY (`id`),
INDEX `plugin_formcreator_questions_id` (`plugin_formcreator_questions_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_questionranges` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`plugin_formcreator_questions_id` int unsigned NOT NULL DEFAULT '0',
Expand All @@ -364,6 +384,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_questionranges` (
PRIMARY KEY (`id`),
INDEX `plugin_formcreator_questions_id` (`plugin_formcreator_questions_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_forms_languages` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`plugin_formcreator_forms_id` int unsigned NOT NULL DEFAULT '0',
Expand Down

0 comments on commit 352d44d

Please sign in to comment.