From 297bd3bc842c5ed4fa0c84a22ed8aa446481eb58 Mon Sep 17 00:00:00 2001 From: sclubricants Date: Fri, 26 Aug 2022 10:33:25 -0700 Subject: [PATCH] Fix escape and add changelog --- system/Database/SQLSRV/Forge.php | 2 +- user_guide_src/source/changelogs/v4.3.0.rst | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/system/Database/SQLSRV/Forge.php b/system/Database/SQLSRV/Forge.php index 48312fb722b4..b1a3628575b4 100755 --- a/system/Database/SQLSRV/Forge.php +++ b/system/Database/SQLSRV/Forge.php @@ -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 = <<`. - 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 *******