Skip to content

Commit

Permalink
Bugfix on install
Browse files Browse the repository at this point in the history
  • Loading branch information
hhunderter committed Jun 18, 2019
1 parent 4cb9410 commit 08f285b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/modules/forum/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,15 @@ public function getUpdate($installedVersion)
file_put_contents(APPLICATION_PATH.'/modules/forum/static/css/groupappearance/'.$filename, $defaultCss);
$databaseConfig->set('forum_filenameGroupappearanceCSS', $filename);

$this->db()->query('INSERT INTO `[prefix]_forum_groupranking` (group_id,rank) VALUES(1,0);');

// Add table for group ranking, which is needed when deciding which appearance needs to be applied.
$this->db()->queryMulti('CREATE TABLE IF NOT EXISTS `[prefix]_forum_groupranking` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`group_id` INT(11) NULL DEFAULT NULL,
`rank` INT(11) NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1;');

$this->db()->query('INSERT INTO `[prefix]_forum_groupranking` (group_id,rank) VALUES(1,0);');
}
}
}
Expand Down

0 comments on commit 08f285b

Please sign in to comment.