mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-22 19:02:31 +01:00
Removed deprecated syntax in old migration file
This commit is contained in:
parent
ba25a3e1b7
commit
5d18e7df79
@ -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)");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user