mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04: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
|
// Update revision count
|
||||||
$pTable = DB::getTablePrefix() . 'pages';
|
$pTable = DB::getTablePrefix() . 'pages';
|
||||||
$rTable = DB::getTablePrefix() . 'page_revisions';
|
$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