From ff5c373fef7d4861112d06ff60dc995d719548cb Mon Sep 17 00:00:00 2001 From: root Date: Fri, 6 Oct 2017 09:40:30 +0100 Subject: [PATCH] bin/ovh-api --- bin/ovh-api | 2 +- lib/php/db/types/mysql.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/ovh-api b/bin/ovh-api index 29c725bf..92b73f63 100755 --- a/bin/ovh-api +++ b/bin/ovh-api @@ -325,7 +325,7 @@ my @tbs = ( name => 'domain', path => '/domain', fields => [ - { 'name' =>'domain', 'sql' => 'domain VARCHAR(254) PRIMARY KEY' }, + { 'name' =>'domain', 'sql' => 'domain VARCHAR(190) PRIMARY KEY' }, { 'name' =>'lastUpdate', 'sql' => 'updated DATETIME' }, #{ 'name' =>'nameServerType': 'hosted', #{ 'name' =>'glueRecordIpv6Supported': true, diff --git a/lib/php/db/types/mysql.php b/lib/php/db/types/mysql.php index d12886b4..f3a66d46 100644 --- a/lib/php/db/types/mysql.php +++ b/lib/php/db/types/mysql.php @@ -103,6 +103,7 @@ $DB_TYPES['mysql'] = array ( $sql = preg_replace('/CHARSET=\S+\s*$/','CHARSET='.str_replace('-','',$t->db()->charset),$sql); $sql = str_replace("date DEFAULT 'NULL'","date",$sql); $sql = str_replace("\n",'\n',$sql); + $sql = str_ireplace(" big int ",' bigint ',$sql); return $sql; }, -- 2.47.3