Skip to content
Snippets Groups Projects
Commit 28e94447 authored by Olivier Perez [a570709]'s avatar Olivier Perez [a570709]
Browse files

Escape table names in migration script

parent 597b02e5
No related branches found
No related tags found
No related merge requests found
...@@ -58,8 +58,8 @@ CREATE TABLE IF NOT EXISTS `' . $prefixedMigrationTable . '` ( ...@@ -58,8 +58,8 @@ CREATE TABLE IF NOT EXISTS `' . $prefixedMigrationTable . '` (
DEFAULT CHARSET = utf8;'); DEFAULT CHARSET = utf8;');
} }
$selectStmt = $pdo->prepare('SELECT id FROM ' . $prefixedMigrationTable . ' WHERE name=?'); $selectStmt = $pdo->prepare('SELECT id FROM `' . $prefixedMigrationTable . '` WHERE name=?');
$insertStmt = $pdo->prepare('INSERT INTO ' . $prefixedMigrationTable . ' (name) VALUES (?)'); $insertStmt = $pdo->prepare('INSERT INTO `' . $prefixedMigrationTable . '` (name) VALUES (?)');
$countSucceeded = 0; $countSucceeded = 0;
$countFailed = 0; $countFailed = 0;
$countSkipped = 0; $countSkipped = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment