Skip to content

Commit

Permalink
Fixed Hard Coded Tables for Geeklog 2.2.0 to 2.2.1 upgrade
Browse files Browse the repository at this point in the history
For issue #1043
  • Loading branch information
eSilverStrike committed Mar 6, 2020
1 parent 6deaafd commit 46a56cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions sql/updates/mysql_2.2.0_to_2.2.1.php
Expand Up @@ -54,9 +54,9 @@
`id`)
";
// Other Keys needed to speed up SQL for items that do not use subtype
$_SQL[] = "ALTER TABLE `gl_topic_assignments` ADD INDEX( `tid`, `type`, `id`)";
$_SQL[] = "ALTER TABLE `gl_topic_assignments` ADD INDEX( `type`, `subtype`, `id`)";
$_SQL[] = "ALTER TABLE `gl_topic_assignments` ADD INDEX( `type`, `id`)";
$_SQL[] = "ALTER TABLE {$_TABLES['topic_assignments']} ADD INDEX( `tid`, `type`, `id`)";
$_SQL[] = "ALTER TABLE {$_TABLES['topic_assignments']} ADD INDEX( `type`, `subtype`, `id`)";
$_SQL[] = "ALTER TABLE {$_TABLES['topic_assignments']} ADD INDEX( `type`, `id`)";

// Modify `sessions` table
$_SQL[] = "DELETE FROM {$_TABLES['sessions']}";
Expand Down
6 changes: 3 additions & 3 deletions sql/updates/pgsql_2.2.0_to_2.2.1.php
Expand Up @@ -54,9 +54,9 @@
`id`)
";
// Other Keys needed to speed up SQL for items that do not use subtype
$_SQL[] = "ALTER TABLE `gl_topic_assignments` ADD INDEX( `tid`, `type`, `id`)";
$_SQL[] = "ALTER TABLE `gl_topic_assignments` ADD INDEX( `type`, `subtype`, `id`)";
$_SQL[] = "ALTER TABLE `gl_topic_assignments` ADD INDEX( `type`, `id`)";
$_SQL[] = "ALTER TABLE {$_TABLES['topic_assignments']} ADD INDEX( `tid`, `type`, `id`)";
$_SQL[] = "ALTER TABLE {$_TABLES['topic_assignments']} ADD INDEX( `type`, `subtype`, `id`)";
$_SQL[] = "ALTER TABLE {$_TABLES['topic_assignments']} ADD INDEX( `type`, `id`)";

// Modify `sessions` table
$_SQL[] = "DELETE FROM {$_TABLES['sessions']}";
Expand Down

0 comments on commit 46a56cb

Please sign in to comment.