Skip to content

Commit

Permalink
[6.13] EZP-29206: Added missing upgrade scripts (#2365)
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Jun 29, 2018
1 parent d929a95 commit 0db92c2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions data/update/mysql/dbupdate-6.13.3-to-6.13.4.sql
@@ -0,0 +1,10 @@
SET default_storage_engine=InnoDB;
BEGIN;

This comment has been minimized.

Copy link
@gggeek

gggeek Apr 18, 2020

Contributor

nitpick: these begin/commit statements seem pretty useless

-- Set storage engine schema version number
UPDATE ezsite_data SET value='6.13.4' WHERE name='ezpublish-version';
COMMIT;

-- If the queries below fail, it means database is already updated

CREATE INDEX `ezcontentobject_tree_contentobject_id_path_string` ON `ezcontentobject_tree` (`path_string`, `contentobject_id`);
CREATE INDEX `ezcontentobject_section` ON `ezcontentobject` (`section_id`);
9 changes: 9 additions & 0 deletions data/update/postgres/dbupdate-6.13.3-to-6.13.4.sql
@@ -0,0 +1,9 @@
-- Set storage engine schema version number
BEGIN;
UPDATE ezsite_data SET value='6.13.4' WHERE name='ezpublish-version';
COMMIT;

-- If the queries below fail, it means database is already updated

CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id);
CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id);

0 comments on commit 0db92c2

Please sign in to comment.