Skip to content

Commit

Permalink
Fix a few smaller issues
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 7, 2025
1 parent 1ac8678 commit b94a07a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Db/Adapter/SqliteAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ protected function bufferIndicesAndTriggers(AlterInstructions $instructions, str
"SELECT *
FROM sqlite_master
WHERE
(\"type\" = 'index' OR `type` = 'trigger')
(\"type\" = 'index' OR \"type\" = 'trigger')
AND tbl_name = ?
AND sql IS NOT NULL
",
Expand Down
4 changes: 2 additions & 2 deletions src/Db/Adapter/SqlserverAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function createTable(Table $table, array $columns = [], array $indexes =
if (is_string($primaryKey)) { // handle primary_key => 'id'
$pkSql .= $this->quoteColumnName($primaryKey);
} elseif (is_array($primaryKey)) { // handle primary_key => array('tag_id', 'resource_id')
$pkSql .= implode(',', array_map([$this, 'quoteColumnName'], $primaryKey));
$pkSql .= implode(',', array_map($this->quoteColumnName(...), $primaryKey));
}
$pkSql .= ')';
$sqlBuffer[] = $pkSql;
Expand Down Expand Up @@ -190,7 +190,7 @@ protected function getChangePrimaryKeyInstructions(Table $table, $newColumns): A
if (is_string($newColumns)) { // handle primary_key => 'id'
$sql .= $this->quoteColumnName($newColumns);
} elseif (is_array($newColumns)) { // handle primary_key => array('tag_id', 'resource_id')
$sql .= implode(',', array_map([$this, 'quoteColumnName'], $newColumns));
$sql .= implode(',', array_map($this->quoteColumnName(...), $newColumns));
}
$sql .= ')';
$instructions->addPostStep($sql);
Expand Down

0 comments on commit b94a07a

Please sign in to comment.