From fd29844bde625297d8295516a5c7c5cc0e616647 Mon Sep 17 00:00:00 2001 From: Rafael Patro Date: Sun, 14 May 2017 11:20:57 -0300 Subject: [PATCH] #252 Corrigidos arquivos de upgrade --- .../upgrade-4.7.0-4.7.1.php | 13 +++ .../upgrade-4.7.0-4.8.0.php | 91 ------------------- .../upgrade-4.7.1-4.7.2.php | 13 +++ .../upgrade-4.7.3-4.8.0.php | 91 ------------------- .../upgrade-4.8.0-4.8.1.php | 5 - 5 files changed, 26 insertions(+), 187 deletions(-) create mode 100644 app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.7.0-4.7.1.php delete mode 100644 app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.7.0-4.8.0.php create mode 100644 app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.7.1-4.7.2.php delete mode 100644 app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.7.3-4.8.0.php diff --git a/app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.7.0-4.7.1.php b/app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.7.0-4.7.1.php new file mode 100644 index 0000000..0f189ac --- /dev/null +++ b/app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.7.0-4.7.1.php @@ -0,0 +1,13 @@ + + * @copyright 2015 Pedro Teixeira (http://pedroteixeira.io) + * @license http://opensource.org/licenses/MIT MIT + * @link https://github.com/pedro-teixeira/correios + */ diff --git a/app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.7.0-4.8.0.php b/app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.7.0-4.8.0.php deleted file mode 100644 index 5faeffb..0000000 --- a/app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.7.0-4.8.0.php +++ /dev/null @@ -1,91 +0,0 @@ - - * @copyright 2015 Pedro Teixeira (http://pedroteixeira.io) - * @license http://opensource.org/licenses/MIT MIT - * @link https://github.com/pedro-teixeira/correios - */ - -/* @var $installer Mage_Core_Model_Resource_Setup */ -$installer = $this; -$installer->startSetup(); - -$installer->run( - "CREATE TABLE IF NOT EXISTS {$this->getTable('pedroteixeira_correios/postmethod')} ( - method_id int(11) unsigned NOT NULL auto_increment, - method_code varchar(5) NOT NULL default '0', - method_title varchar(255) NOT NULL default '', - PRIMARY KEY (method_id) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;" -); - -$installer->getConnection()->insertForce( - $this->getTable('pedroteixeira_correios/postmethod'), - array( - 'method_id' => '3', - 'method_code' => '40045', - 'method_title' => 'SEDEX A COBRAR SEM CONTRATO', - ) -); - -$installer->getConnection()->insertForce( - $this->getTable('pedroteixeira_correios/postmethod'), - array( - 'method_id' => '4', - 'method_code' => '40215', - 'method_title' => 'SEDEX 10 SEM CONTRATO', - ) -); - -$installer->getConnection()->insertForce( - $this->getTable('pedroteixeira_correios/postmethod'), - array( - 'method_id' => '5', - 'method_code' => '40290', - 'method_title' => 'SEDEX HOJE SEM CONTRATO', - ) -); - -$installer->getConnection()->insertForce( - $this->getTable('pedroteixeira_correios/postmethod'), - array( - 'method_id' => '6', - 'method_code' => '04510', - 'method_title' => 'PAC SEM CONTRATO', - ) -); - -$installer->getConnection()->insertForce( - $this->getTable('pedroteixeira_correios/postmethod'), - array( - 'method_id' => '7', - 'method_code' => '04014', - 'method_title' => 'SEDEX SEM CONTRATO', - ) -); - -$installer->getConnection()->insertForce( - $this->getTable('pedroteixeira_correios/postmethod'), - array( - 'method_id' => '8', - 'method_code' => '04669', - 'method_title' => 'PAC CONTRATO AGENCIA', - ) -); - -$installer->getConnection()->insertForce( - $this->getTable('pedroteixeira_correios/postmethod'), - array( - 'method_id' => '9', - 'method_code' => '04162', - 'method_title' => 'SEDEX CONTRATO AGENCIA', - ) -); - -$installer->endSetup(); diff --git a/app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.7.1-4.7.2.php b/app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.7.1-4.7.2.php new file mode 100644 index 0000000..0f189ac --- /dev/null +++ b/app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.7.1-4.7.2.php @@ -0,0 +1,13 @@ + + * @copyright 2015 Pedro Teixeira (http://pedroteixeira.io) + * @license http://opensource.org/licenses/MIT MIT + * @link https://github.com/pedro-teixeira/correios + */ diff --git a/app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.7.3-4.8.0.php b/app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.7.3-4.8.0.php deleted file mode 100644 index 5faeffb..0000000 --- a/app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.7.3-4.8.0.php +++ /dev/null @@ -1,91 +0,0 @@ - - * @copyright 2015 Pedro Teixeira (http://pedroteixeira.io) - * @license http://opensource.org/licenses/MIT MIT - * @link https://github.com/pedro-teixeira/correios - */ - -/* @var $installer Mage_Core_Model_Resource_Setup */ -$installer = $this; -$installer->startSetup(); - -$installer->run( - "CREATE TABLE IF NOT EXISTS {$this->getTable('pedroteixeira_correios/postmethod')} ( - method_id int(11) unsigned NOT NULL auto_increment, - method_code varchar(5) NOT NULL default '0', - method_title varchar(255) NOT NULL default '', - PRIMARY KEY (method_id) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;" -); - -$installer->getConnection()->insertForce( - $this->getTable('pedroteixeira_correios/postmethod'), - array( - 'method_id' => '3', - 'method_code' => '40045', - 'method_title' => 'SEDEX A COBRAR SEM CONTRATO', - ) -); - -$installer->getConnection()->insertForce( - $this->getTable('pedroteixeira_correios/postmethod'), - array( - 'method_id' => '4', - 'method_code' => '40215', - 'method_title' => 'SEDEX 10 SEM CONTRATO', - ) -); - -$installer->getConnection()->insertForce( - $this->getTable('pedroteixeira_correios/postmethod'), - array( - 'method_id' => '5', - 'method_code' => '40290', - 'method_title' => 'SEDEX HOJE SEM CONTRATO', - ) -); - -$installer->getConnection()->insertForce( - $this->getTable('pedroteixeira_correios/postmethod'), - array( - 'method_id' => '6', - 'method_code' => '04510', - 'method_title' => 'PAC SEM CONTRATO', - ) -); - -$installer->getConnection()->insertForce( - $this->getTable('pedroteixeira_correios/postmethod'), - array( - 'method_id' => '7', - 'method_code' => '04014', - 'method_title' => 'SEDEX SEM CONTRATO', - ) -); - -$installer->getConnection()->insertForce( - $this->getTable('pedroteixeira_correios/postmethod'), - array( - 'method_id' => '8', - 'method_code' => '04669', - 'method_title' => 'PAC CONTRATO AGENCIA', - ) -); - -$installer->getConnection()->insertForce( - $this->getTable('pedroteixeira_correios/postmethod'), - array( - 'method_id' => '9', - 'method_code' => '04162', - 'method_title' => 'SEDEX CONTRATO AGENCIA', - ) -); - -$installer->endSetup(); diff --git a/app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.8.0-4.8.1.php b/app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.8.0-4.8.1.php index e007eb1..0f189ac 100644 --- a/app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.8.0-4.8.1.php +++ b/app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.8.0-4.8.1.php @@ -11,8 +11,3 @@ * @license http://opensource.org/licenses/MIT MIT * @link https://github.com/pedro-teixeira/correios */ - -/* @var $installer Mage_Core_Model_Resource_Setup */ -$installer = $this; -$installer->startSetup(); -$installer->endSetup();