diff --git a/install/sql/spritesheet_table_spritename.sql b/install/sql/spritesheet_table_spritename.sql index 4ded4f6..c9a05a2 100644 --- a/install/sql/spritesheet_table_spritename.sql +++ b/install/sql/spritesheet_table_spritename.sql @@ -6,8 +6,9 @@ CREATE TABLE /*_*/spritename ( `values` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `edited` int(14) NOT NULL DEFAULT '0', `deleted` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`spritename_id`), - UNIQUE KEY `spritesheet_id_name` (`spritesheet_id`,`name`), - KEY `type` (`type`), - KEY `edited` (`edited`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; \ No newline at end of file + PRIMARY KEY (`spritename_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +ALTER TABLE /*_*/spritename ADD UNIQUE `spritesheet_id_name` (`spritesheet_id`,`name`), +ADD INDEX `type` (`type`), +ADD INDEX `edited` (`edited`); \ No newline at end of file diff --git a/install/sql/spritesheet_table_spritename_rev.sql b/install/sql/spritesheet_table_spritename_rev.sql index e7b05b6..798ea93 100644 --- a/install/sql/spritesheet_table_spritename_rev.sql +++ b/install/sql/spritesheet_table_spritename_rev.sql @@ -7,9 +7,10 @@ CREATE TABLE /*_*/spritename_rev ( `values` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `edited` int(14) NOT NULL DEFAULT '0', `deleted` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`spritename_rev_id`), - KEY `spritename_id` (`spritename_id`), - KEY `spritesheet_id_name` (`spritesheet_id`,`name`), - KEY `type` (`type`), - KEY `edited` (`edited`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; \ No newline at end of file + PRIMARY KEY (`spritename_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +ALTER TABLE /*_*/spritename_rev ADD INDEX `spritename_id` (`spritename_id`), +ADD INDEX `spritesheet_id_name` (`spritesheet_id`,`name`), +ADD INDEX `type` (`type`), +ADD INDEX `edited` (`edited`); \ No newline at end of file diff --git a/install/sql/spritesheet_table_spritesheet.sql b/install/sql/spritesheet_table_spritesheet.sql index f40f5f8..e13bbd4 100644 --- a/install/sql/spritesheet_table_spritesheet.sql +++ b/install/sql/spritesheet_table_spritesheet.sql @@ -5,7 +5,8 @@ CREATE TABLE /*_*/spritesheet ( `rows` int(11) NOT NULL, `inset` int(11) NOT NULL, `edited` int(14) NOT NULL DEFAULT '0', - PRIMARY KEY (`spritesheet_id`), - UNIQUE KEY `title` (`title`), - KEY `edited` (`edited`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; \ No newline at end of file + PRIMARY KEY (`spritesheet_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +ALTER TABLE /*_*/spritesheet ADD UNIQUE `title` (`title`), +ADD INDEX `edited` (`edited`); \ No newline at end of file diff --git a/install/sql/spritesheet_table_spritesheet_rev.sql b/install/sql/spritesheet_table_spritesheet_rev.sql index b6837c9..f8cdca6 100644 --- a/install/sql/spritesheet_table_spritesheet_rev.sql +++ b/install/sql/spritesheet_table_spritesheet_rev.sql @@ -6,8 +6,9 @@ CREATE TABLE /*_*/spritesheet_rev ( `rows` int(11) NOT NULL, `inset` int(11) NOT NULL, `edited` int(14) NOT NULL DEFAULT '0', - PRIMARY KEY (`spritesheet_rev_id`), - KEY `spritesheet_id` (`spritesheet_id`), - KEY `title` (`title`), - KEY `edited` (`edited`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; \ No newline at end of file + PRIMARY KEY (`spritesheet_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +ALTER TABLE /*_*/spritesheet_rev ADD INDEX `spritesheet_id` (`spritesheet_id`), +ADD INDEX `title` (`title`), +ADD INDEX `edited` (`edited`); \ No newline at end of file