Skip to content

Commit

Permalink
Correct old schema updates and rename new ones
Browse files Browse the repository at this point in the history
  • Loading branch information
richard67 committed Jul 9, 2019
1 parent 0a5cef5 commit 56be33c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
@@ -1,3 +1,4 @@
ALTER TABLE `#__template_styles` DROP INDEX `idx_home`;
ALTER TABLE `#__template_styles` ADD INDEX `idx_client_id` (`client_id`);
# Queries removed, see https://github.com/joomla/joomla-cms/pull/25484
ALTER TABLE `#__template_styles` ADD INDEX `idx_client_id` (`client_id`);
ALTER TABLE `#__template_styles` ADD INDEX `idx_client_id_home` (`client_id`, `home`);
@@ -1,3 +1,4 @@
DROP INDEX IF EXISTS "#__template_styles_idx_home";
CREATE INDEX "#__template_styles_idx_client_id" ON "#__template_styles" ("client_id");
# Queries removed, see https://github.com/joomla/joomla-cms/pull/25484
CREATE INDEX "#__template_styles_idx_client_id" ON "#__template_styles" ("client_id");
CREATE INDEX "#__template_styles_idx_client_id_home" ON "#__template_styles" ("client_id", "home");
@@ -1,6 +1,12 @@
DROP INDEX [idx_home] ON [#__template_styles];
# Query removed, see https://github.com/joomla/joomla-cms/pull/25484
CREATE NONCLUSTERED INDEX [idx_client_id] ON [#__template_styles]
(
[client_id] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
# Queries removed, see https://github.com/joomla/joomla-cms/pull/25484
CREATE NONCLUSTERED INDEX [idx_client_id_home] ON [#__template_styles]
(
[client_id] ASC,
[home] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
ALTER TABLE [#__template_styles] ADD DEFAULT (0) FOR [home];

0 comments on commit 56be33c

Please sign in to comment.