Use DB::statement in place of DB::unprepared + DB::commit

This commit is contained in:
DariusIII
2018-11-29 14:47:00 +01:00
parent c9b26a40f4
commit ea4d98d4e1
14 changed files with 41 additions and 77 deletions
+1 -2
View File
@@ -29,8 +29,7 @@ if ($nntp->isError($data)) {
$colorCli->header('Inserting new values into short_groups table.');
DB::unprepared('TRUNCATE TABLE short_groups');
DB::commit();
DB::statement('TRUNCATE TABLE short_groups');
// Put into an array all active groups
$result = array_pluck(Group::query()->where('active', '=', 1)->orWhere('backfill', '=', 1)->get(['name']), 'name');