Rename groups table to usenet_groups as groups is a reserved word in mysql now

This commit is contained in:
DariusIII
2019-02-19 15:54:32 +01:00
parent d830b505f1
commit 40e7233727
45 changed files with 201 additions and 172 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ if ($argv[3] === 'true') {
$pdo = DB::connection()->getPdo();
$group = DB::selectOne(sprintf('SELECT id FROM groups WHERE name = %s', escapeString($argv[1])));
$group = DB::selectOne(sprintf('SELECT id FROM usenet_groups WHERE name = %s', escapeString($argv[1])));
if ($group === false) {
exit('No group with name '.$argv[1].' found in the database.');