From: root Date: Fri, 6 Oct 2017 08:40:30 +0000 (+0100) Subject: bin/ovh-api X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=ff5c373fef7d4861112d06ff60dc995d719548cb;p=nb.git bin/ovh-api --- 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; },