Removed deprecated syntax in old migration file

This commit is contained in:
Dan Brown 2023-02-08 13:20:00 +00:00
parent ba25a3e1b7
commit 5d18e7df79
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -24,7 +24,7 @@ return new class extends Migration
// Update revision count
$pTable = DB::getTablePrefix() . 'pages';
$rTable = DB::getTablePrefix() . 'page_revisions';
DB::statement("UPDATE ${pTable} SET ${pTable}.revision_count=(SELECT count(*) FROM ${rTable} WHERE ${rTable}.page_id=${pTable}.id)");
DB::statement("UPDATE {$pTable} SET {$pTable}.revision_count=(SELECT count(*) FROM {$rTable} WHERE {$rTable}.page_id={$pTable}.id)");
}
/**