diff --git a/setup+doku/PE/install.sql b/setup+doku/PE/install.sql index 78f5826..ce670b8 100644 --- a/setup+doku/PE/install.sql +++ b/setup+doku/PE/install.sql @@ -1,7 +1,7 @@ INSERT INTO `d3_cfg_mod` (`OXID`, `OXSHOPID`, `OXMODID`, `OXNAME`, `OXACTIVE`, `OXSERIAL`, `OXINSTALLDATE`, `OXVERSION`, `OXSHOPVERSION`, `OXISMODULELOG`, `OXREQUIREMENTS`, `OXVALUE`, `OXVALUE_1`, `OXVALUE_2`, `OXREVISION`, `OXNEWREVISION`) VALUES (MD5(RAND()), 'oxbaseshop', 'd3_geoip', 'GeoIP', 1, '', NOW(), '2.1.0', 'PE4', 0, '', '', '', '', 18, 18); -ALTER TABLE `oxcountry` ADD `D3GEOIPSHOP` VARCHAR( 10 ) NOT NULL DEFAULT '-1', +ALTER TABLE `oxcountry` ADD `D3GEOIPSHOP` VARCHAR( 10 ) NOT NULL DEFAULT 'oxbaseshop', ADD `D3GEOIPLANG` TINYINT( 2 ) NOT NULL DEFAULT '-1', ADD `D3GEOIPCUR` TINYINT( 2 ) NOT NULL DEFAULT '-1', ADD `D3GEOIPURL` VARCHAR( 255 ) NOT NULL; \ No newline at end of file diff --git a/setup+doku/PE/update.sql b/setup+doku/PE/update.sql index 3f3190e..ad72652 100644 --- a/setup+doku/PE/update.sql +++ b/setup+doku/PE/update.sql @@ -8,4 +8,7 @@ INSERT INTO `d3_cfg_mod` (`OXID`, `OXSHOPID`, `OXMODID`, `OXNAME`, `OXACTIVE`, ` ALTER TABLE `oxcountry` ADD `D3GEOIPURL` VARCHAR( 255 ) NOT NULL; # ==== 2.0.0 PE4 => 2.1.0 PE4 ==== -UPDATE `d3_cfg_mod` SET `OXVERSION` = '2.1.0', `OXREVISION` = '18', `OXNEWREVISION` = '18' WHERE OXMODID = 'd3_geoip'; \ No newline at end of file +UPDATE `d3_cfg_mod` SET `OXVERSION` = '2.1.0', `OXNEWREVISION` = '18' WHERE OXMODID = 'd3_geoip'; +ALTER TABLE `oxcountry` CHANGE `D3GEOIPSHOP` `D3GEOIPSHOP` VARCHAR( 10 ) NOT NULL DEFAULT 'oxbaseshop'; +UPDATE `oxcountry` SET `D3GEOIPSHOP` = 'oxbaseshop' WHERE `D3GEOIPSHOP` = '-1'; +UPDATE `d3_cfg_mod` SET `OXREVISION` = `OXNEWREVISION` WHERE OXMODID = 'd3_geoip'; \ No newline at end of file