mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-09 23:07:50 +00:00
Removed deprecated syntax in old migration file
This commit is contained in:
parent
ba25a3e1b7
commit
5d18e7df79
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue