Skip to content

Commit

Permalink
Removed deprecated syntax in old migration file
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddanbrown committed Feb 8, 2023
1 parent ba25a3e commit 5d18e7d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function up()
// 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)");
}

/**
Expand Down

0 comments on commit 5d18e7d

Please sign in to comment.