diff options
author | Andrey Andreev <narf@devilix.net> | 2016-04-01 11:04:01 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-04-01 11:04:01 +0200 |
commit | b97e6b2e7e2f58aa7bba937b96dd2e9d3089e4d2 (patch) | |
tree | 45fec6c1bb684c4e0c41d3c329035ab0562f0cc4 /system/database/drivers/sqlsrv | |
parent | b9c69165355732c5c8d18f16f11481283a04ccb0 (diff) |
[ci skip] Fix #861 (regression)
Diffstat (limited to 'system/database/drivers/sqlsrv')
-rw-r--r-- | system/database/drivers/sqlsrv/sqlsrv_forge.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/system/database/drivers/sqlsrv/sqlsrv_forge.php b/system/database/drivers/sqlsrv/sqlsrv_forge.php index f915dad3e..4f0ce9d6f 100644 --- a/system/database/drivers/sqlsrv/sqlsrv_forge.php +++ b/system/database/drivers/sqlsrv/sqlsrv_forge.php @@ -111,6 +111,11 @@ class CI_DB_sqlsrv_forge extends CI_DB_forge { */ protected function _attr_type(&$attributes) { + if (isset($attributes['CONSTRAINT']) && strpos($attributes['TYPE'], 'INT') !== FALSE) + { + unset($attributes['CONSTRAINT']); + } + switch (strtoupper($attributes['TYPE'])) { case 'MEDIUMINT': |