Skip to content

Commit

Permalink
Fix escape and add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
sclubricants committed Aug 26, 2022
1 parent 5da4fcd commit 297bd3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion system/Database/SQLSRV/Forge.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ protected function _alterTable(string $alterType, string $table, $field)
$fullTable = $this->db->escapeIdentifiers($this->db->schema) . '.' . $this->db->escapeIdentifiers($table);

// Drop default constraints
$fields = "'" . implode("','", (array) $field) . "'";
$fields = implode(',', $this->db->escape((array) $field));

$sql = <<<SQL
SELECT name
Expand Down
1 change: 1 addition & 0 deletions user_guide_src/source/changelogs/v4.3.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Others
- Now ``spark routes`` command shows route names. See :ref:`URI Routing <routing-spark-routes>`.
- Added new :ref:`entities-property-casting` class ``IntBoolCast`` for Entity.
- Help information for a spark command can now be accessed using the ``--help`` option (e.g. ``php spark serve --help``)
- SQLSRV now automatically drops ``DEFAULT`` constraint when using ``Forge::dropColumn()``.

Changes
*******
Expand Down

0 comments on commit 297bd3b

Please sign in to comment.