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 *******