From 48e67c8fa47fedbbc9c8cda9d6daf3fb73261abe Mon Sep 17 00:00:00 2001 From: gustavojm Date: Fri, 22 Sep 2017 02:07:41 -0300 Subject: [PATCH] Fixes Postgresql Forge trying to create UNSIGNED fields Overridden method _processColumn($field) --- system/Database/Postgre/Forge.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/system/Database/Postgre/Forge.php b/system/Database/Postgre/Forge.php index d1de9682f9cd..823f0f77596e 100644 --- a/system/Database/Postgre/Forge.php +++ b/system/Database/Postgre/Forge.php @@ -128,6 +128,25 @@ protected function _alterTable($alter_type, $table, $field) return $sqls; } + //-------------------------------------------------------------------- + + /** + * Process column + * + * @param array $field + * @return string + */ + protected function _processColumn($field) + { + return $this->db->escapeIdentifiers($field['name']) + . ' ' . $field['type'] . $field['length'] + . $field['default'] + . $field['null'] + . $field['auto_increment'] + . $field['unique']; + } + + //-------------------------------------------------------------------- /**