From 3df569871a95bfe110d36213b93cb9dda5ce0aa1 Mon Sep 17 00:00:00 2001 From: Willem Stuursma Date: Mon, 29 Sep 2014 15:37:49 +0200 Subject: [PATCH] Release 4.1.6 --- app/code/community/Mollie/Mpm/Helper/Api.php | 3 +- app/code/community/Mollie/Mpm/etc/config.xml | 2 +- .../sql/mpm_setup/mysql4-install-4.0.5.php | 81 ----------- .../sql/mpm_setup/mysql4-install-4.0.6.php | 123 ---------------- .../sql/mpm_setup/mysql4-install-4.0.8.php | 131 ------------------ .../sql/mpm_setup/mysql4-install-4.1.2.php | 131 ------------------ .../sql/mpm_setup/mysql4-install-4.1.3.php | 131 ------------------ .../sql/mpm_setup/mysql4-install-4.1.5.php | 131 ------------------ ...all-4.0.7.php => mysql4-install-4.1.6.php} | 0 ...l-4.0.2.php => mysql4-uninstall-4.1.6.php} | 48 +++---- app/etc/modules/Mollie_Mpm.xml | 2 +- changelog.mdown | 3 + 12 files changed, 29 insertions(+), 757 deletions(-) delete mode 100644 app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.0.5.php delete mode 100644 app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.0.6.php delete mode 100644 app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.0.8.php delete mode 100644 app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.1.2.php delete mode 100644 app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.1.3.php delete mode 100644 app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.1.5.php rename app/code/community/Mollie/Mpm/sql/mpm_setup/{mysql4-install-4.0.7.php => mysql4-install-4.1.6.php} (100%) rename app/code/community/Mollie/Mpm/sql/mpm_setup/{mysql4-install-4.0.2.php => mysql4-uninstall-4.1.6.php} (64%) diff --git a/app/code/community/Mollie/Mpm/Helper/Api.php b/app/code/community/Mollie/Mpm/Helper/Api.php index 38900c16..99ee3dc5 100644 --- a/app/code/community/Mollie/Mpm/Helper/Api.php +++ b/app/code/community/Mollie/Mpm/Helper/Api.php @@ -36,10 +36,9 @@ * ---------------------------------------------------------------------------------------------------- * **/ - class Mollie_Mpm_Helper_Api { - const PLUGIN_VERSION = '4.1.5'; + const PLUGIN_VERSION = '4.1.6'; protected $api_key = null; protected $amount = 0; diff --git a/app/code/community/Mollie/Mpm/etc/config.xml b/app/code/community/Mollie/Mpm/etc/config.xml index c6d19d09..372ed6b8 100644 --- a/app/code/community/Mollie/Mpm/etc/config.xml +++ b/app/code/community/Mollie/Mpm/etc/config.xml @@ -37,7 +37,7 @@ - 4.1.5 + 4.1.6 diff --git a/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.0.5.php b/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.0.5.php deleted file mode 100644 index 5a83d3ca..00000000 --- a/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.0.5.php +++ /dev/null @@ -1,81 +0,0 @@ -startSetup(); - -/* - * Tabel Betalingen - */ -$installer->run( - sprintf("CREATE TABLE IF NOT EXISTS `%s` ( - `order_id` int(11) NOT NULL, - `method` varchar(3) NOT NULL, - `transaction_id` varchar(32) NOT NULL, - `bank_account` varchar(15) NOT NULL, - `bank_status` varchar(20) NOT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime DEFAULT NULL, - UNIQUE KEY `transaction_id` (`transaction_id`), - KEY `order_id` (`order_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;", - $installer->getTable('mollie_payments') - ) . "REPLACE INTO `{$installer->getTable('core_config_data')}` SET `path` = 'payment/mollie/description', `value` = 'Order %';" -); - -/* - * Tabel Betaalmethodes - */ - -$table = $installer->getTable('mollie_methods'); -$installer->run(" - CREATE TABLE `".$table."` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT, - `method_id` varchar(32) NOT NULL DEFAULT '', - `description` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - UNIQUE KEY `method_id` (`method_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;" -); -// update sales_flat_order_payment -$order_table = $installer->getTable('sales_flat_order_payment'); - -for ($i = 0; $i < 10; $i++) -{ - $installer->run("UPDATE `".$order_table."` SET `method` = 'mpm_void_0".$i."' WHERE `method` = 'mpm_void_".$i."';"); -} - -$installer->endSetup(); \ No newline at end of file diff --git a/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.0.6.php b/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.0.6.php deleted file mode 100644 index 62a15178..00000000 --- a/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.0.6.php +++ /dev/null @@ -1,123 +0,0 @@ -startSetup(); - -$payment_table = $installer->getTable('mollie_payments'); -$method_table = $installer->getTable('mollie_methods'); -$order_table = $installer->getTable('sales_flat_order_payment'); - -/* - * Tabel Betalingen - */ -$installer->run( - sprintf(" - CREATE TABLE IF NOT EXISTS `%s` ( - `order_id` int(11) NOT NULL, - `method` varchar(3) NOT NULL, - `transaction_id` varchar(32) NOT NULL, - `bank_account` varchar(15) NOT NULL, - `bank_status` varchar(20) NOT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime DEFAULT NULL, - UNIQUE KEY `transaction_id` (`transaction_id`), - KEY `order_id` (`order_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;", - $payment_table - ) . "REPLACE INTO `{$installer->getTable('core_config_data')}` SET `path` = 'payment/mollie/description', `value` = 'Order %';" -); -if (!$installer->tableExists($payment_table)) -{ - echo(" -
Insufficient SQL rights to create the $payment_table table! Please make sure you have sufficient access rights to install modules and/or run this query manually:
" .
-		sprintf("
-			CREATE TABLE IF NOT EXISTS `%s` (
-			`order_id` int(11) NOT NULL,
-			`method` varchar(3) NOT NULL,
-			`transaction_id` varchar(32) NOT NULL,
-			`bank_account` varchar(15) NOT NULL,
-			`bank_status` varchar(20) NOT NULL,
-			`created_at` datetime NOT NULL,
-			`updated_at` datetime DEFAULT NULL,
-			 UNIQUE KEY `transaction_id` (`transaction_id`),
-			 KEY `order_id` (`order_id`)
-		) ENGINE=InnoDB DEFAULT CHARSET=utf8;",
-			$payment_table
-		) .
-		"
"); -} - -/* - * Tabel Betaalmethodes - */ - -$installer->run( - sprintf(" - CREATE TABLE IF NOT EXISTS `%s` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT, - `method_id` varchar(32) NOT NULL DEFAULT '', - `description` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - UNIQUE KEY `method_id` (`method_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;", - $method_table - ) -); - -if (!$installer->tableExists($method_table)) -{ - echo(" -
Insufficient SQL rights to create the $method_table table! Please make sure you have sufficient access rights to install modules and/or run this query manually:
" .
-		sprintf("
-			CREATE TABLE IF NOT EXISTS `%s` (
-			  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
-			  `method_id` varchar(32) NOT NULL DEFAULT '',
-			  `description` varchar(32) NOT NULL DEFAULT '',
-			  PRIMARY KEY (`id`),
-			  UNIQUE KEY `method_id` (`method_id`)
-			) ENGINE=InnoDB DEFAULT CHARSET=utf8;",
-			$method_table
-		) .
-		"

(If you do not know how to run SQL queries, please contact your hosting provider)
"); -} - -// update sales_flat_order_payment -for ($i = 0; $i < 10; $i++) -{ - $installer->run("UPDATE `".$order_table."` SET `method` = 'mpm_void_0".$i."' WHERE `method` = 'mpm_void_".$i."';"); -} - -$installer->endSetup(); \ No newline at end of file diff --git a/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.0.8.php b/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.0.8.php deleted file mode 100644 index 38e0b850..00000000 --- a/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.0.8.php +++ /dev/null @@ -1,131 +0,0 @@ -startSetup(); - -$payment_table = $installer->getTable('mollie_payments'); -$method_table = $installer->getTable('mollie_methods'); -$order_table = $installer->getTable('sales_flat_order_payment'); - -/* - * Tabel Betalingen - */ -$installer->run( - sprintf(" - CREATE TABLE IF NOT EXISTS `%s` ( - `order_id` int(11) NOT NULL, - `method` varchar(3) NOT NULL, - `transaction_id` varchar(32) NOT NULL, - `bank_account` varchar(15) NOT NULL, - `bank_status` varchar(20) NOT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime DEFAULT NULL, - UNIQUE KEY `transaction_id` (`transaction_id`), - KEY `order_id` (`order_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;", - $payment_table - ) . "REPLACE INTO `{$installer->getTable('core_config_data')}` SET `path` = 'payment/mollie/description', `value` = 'Order %';" -); -if (!$installer->tableExists($payment_table)) -{ - echo(" -
Insufficient SQL rights to create the $payment_table table! Please make sure you have sufficient access rights to install modules and/or run this query manually:
" .
-		sprintf("
-			CREATE TABLE IF NOT EXISTS `%s` (
-			`order_id` int(11) NOT NULL,
-			`method` varchar(3) NOT NULL,
-			`transaction_id` varchar(32) NOT NULL,
-			`bank_account` varchar(15) NOT NULL,
-			`bank_status` varchar(20) NOT NULL,
-			`created_at` datetime NOT NULL,
-			`updated_at` datetime DEFAULT NULL,
-			 UNIQUE KEY `transaction_id` (`transaction_id`),
-			 KEY `order_id` (`order_id`)
-		) ENGINE=InnoDB DEFAULT CHARSET=utf8;",
-			$payment_table
-		) .
-		"

(If you do not know how to run SQL queries, please contact your hosting provider)
"); -} - -/* - * Tabel Betaalmethodes - */ - -if ($installer->tableExists($method_table)) -{ - $installer->run( - sprintf("DROP TABLE IF EXISTS `%s`", $method_table) - ); -} - -$installer->run( - sprintf(" - CREATE TABLE IF NOT EXISTS `%s` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT, - `method_id` varchar(32) NOT NULL DEFAULT '', - `description` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - UNIQUE KEY `method_id` (`method_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;", - $method_table - ) -); - - -if (!$installer->tableExists($method_table)) -{ - echo(" -
Insufficient SQL rights to create the $method_table table! Please make sure you have sufficient access rights to install modules and/or run this query manually:
" .
-		sprintf("
-			CREATE TABLE IF NOT EXISTS `%s` (
-			  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
-			  `method_id` varchar(32) NOT NULL DEFAULT '',
-			  `description` varchar(32) NOT NULL DEFAULT '',
-			  PRIMARY KEY (`id`),
-			  UNIQUE KEY `method_id` (`method_id`)
-			) ENGINE=InnoDB DEFAULT CHARSET=utf8;",
-			$method_table
-		) .
-		"

(If you do not know how to run SQL queries, please contact your hosting provider)
"); -} - -// update sales_flat_order_payment -for ($i = 0; $i < 10; $i++) -{ - $installer->run("UPDATE `".$order_table."` SET `method` = 'mpm_void_0".$i."' WHERE `method` = 'mpm_void_".$i."';"); -} - -$installer->endSetup(); \ No newline at end of file diff --git a/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.1.2.php b/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.1.2.php deleted file mode 100644 index 38e0b850..00000000 --- a/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.1.2.php +++ /dev/null @@ -1,131 +0,0 @@ -startSetup(); - -$payment_table = $installer->getTable('mollie_payments'); -$method_table = $installer->getTable('mollie_methods'); -$order_table = $installer->getTable('sales_flat_order_payment'); - -/* - * Tabel Betalingen - */ -$installer->run( - sprintf(" - CREATE TABLE IF NOT EXISTS `%s` ( - `order_id` int(11) NOT NULL, - `method` varchar(3) NOT NULL, - `transaction_id` varchar(32) NOT NULL, - `bank_account` varchar(15) NOT NULL, - `bank_status` varchar(20) NOT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime DEFAULT NULL, - UNIQUE KEY `transaction_id` (`transaction_id`), - KEY `order_id` (`order_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;", - $payment_table - ) . "REPLACE INTO `{$installer->getTable('core_config_data')}` SET `path` = 'payment/mollie/description', `value` = 'Order %';" -); -if (!$installer->tableExists($payment_table)) -{ - echo(" -
Insufficient SQL rights to create the $payment_table table! Please make sure you have sufficient access rights to install modules and/or run this query manually:
" .
-		sprintf("
-			CREATE TABLE IF NOT EXISTS `%s` (
-			`order_id` int(11) NOT NULL,
-			`method` varchar(3) NOT NULL,
-			`transaction_id` varchar(32) NOT NULL,
-			`bank_account` varchar(15) NOT NULL,
-			`bank_status` varchar(20) NOT NULL,
-			`created_at` datetime NOT NULL,
-			`updated_at` datetime DEFAULT NULL,
-			 UNIQUE KEY `transaction_id` (`transaction_id`),
-			 KEY `order_id` (`order_id`)
-		) ENGINE=InnoDB DEFAULT CHARSET=utf8;",
-			$payment_table
-		) .
-		"

(If you do not know how to run SQL queries, please contact your hosting provider)
"); -} - -/* - * Tabel Betaalmethodes - */ - -if ($installer->tableExists($method_table)) -{ - $installer->run( - sprintf("DROP TABLE IF EXISTS `%s`", $method_table) - ); -} - -$installer->run( - sprintf(" - CREATE TABLE IF NOT EXISTS `%s` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT, - `method_id` varchar(32) NOT NULL DEFAULT '', - `description` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - UNIQUE KEY `method_id` (`method_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;", - $method_table - ) -); - - -if (!$installer->tableExists($method_table)) -{ - echo(" -
Insufficient SQL rights to create the $method_table table! Please make sure you have sufficient access rights to install modules and/or run this query manually:
" .
-		sprintf("
-			CREATE TABLE IF NOT EXISTS `%s` (
-			  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
-			  `method_id` varchar(32) NOT NULL DEFAULT '',
-			  `description` varchar(32) NOT NULL DEFAULT '',
-			  PRIMARY KEY (`id`),
-			  UNIQUE KEY `method_id` (`method_id`)
-			) ENGINE=InnoDB DEFAULT CHARSET=utf8;",
-			$method_table
-		) .
-		"

(If you do not know how to run SQL queries, please contact your hosting provider)
"); -} - -// update sales_flat_order_payment -for ($i = 0; $i < 10; $i++) -{ - $installer->run("UPDATE `".$order_table."` SET `method` = 'mpm_void_0".$i."' WHERE `method` = 'mpm_void_".$i."';"); -} - -$installer->endSetup(); \ No newline at end of file diff --git a/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.1.3.php b/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.1.3.php deleted file mode 100644 index 38e0b850..00000000 --- a/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.1.3.php +++ /dev/null @@ -1,131 +0,0 @@ -startSetup(); - -$payment_table = $installer->getTable('mollie_payments'); -$method_table = $installer->getTable('mollie_methods'); -$order_table = $installer->getTable('sales_flat_order_payment'); - -/* - * Tabel Betalingen - */ -$installer->run( - sprintf(" - CREATE TABLE IF NOT EXISTS `%s` ( - `order_id` int(11) NOT NULL, - `method` varchar(3) NOT NULL, - `transaction_id` varchar(32) NOT NULL, - `bank_account` varchar(15) NOT NULL, - `bank_status` varchar(20) NOT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime DEFAULT NULL, - UNIQUE KEY `transaction_id` (`transaction_id`), - KEY `order_id` (`order_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;", - $payment_table - ) . "REPLACE INTO `{$installer->getTable('core_config_data')}` SET `path` = 'payment/mollie/description', `value` = 'Order %';" -); -if (!$installer->tableExists($payment_table)) -{ - echo(" -
Insufficient SQL rights to create the $payment_table table! Please make sure you have sufficient access rights to install modules and/or run this query manually:
" .
-		sprintf("
-			CREATE TABLE IF NOT EXISTS `%s` (
-			`order_id` int(11) NOT NULL,
-			`method` varchar(3) NOT NULL,
-			`transaction_id` varchar(32) NOT NULL,
-			`bank_account` varchar(15) NOT NULL,
-			`bank_status` varchar(20) NOT NULL,
-			`created_at` datetime NOT NULL,
-			`updated_at` datetime DEFAULT NULL,
-			 UNIQUE KEY `transaction_id` (`transaction_id`),
-			 KEY `order_id` (`order_id`)
-		) ENGINE=InnoDB DEFAULT CHARSET=utf8;",
-			$payment_table
-		) .
-		"

(If you do not know how to run SQL queries, please contact your hosting provider)
"); -} - -/* - * Tabel Betaalmethodes - */ - -if ($installer->tableExists($method_table)) -{ - $installer->run( - sprintf("DROP TABLE IF EXISTS `%s`", $method_table) - ); -} - -$installer->run( - sprintf(" - CREATE TABLE IF NOT EXISTS `%s` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT, - `method_id` varchar(32) NOT NULL DEFAULT '', - `description` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - UNIQUE KEY `method_id` (`method_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;", - $method_table - ) -); - - -if (!$installer->tableExists($method_table)) -{ - echo(" -
Insufficient SQL rights to create the $method_table table! Please make sure you have sufficient access rights to install modules and/or run this query manually:
" .
-		sprintf("
-			CREATE TABLE IF NOT EXISTS `%s` (
-			  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
-			  `method_id` varchar(32) NOT NULL DEFAULT '',
-			  `description` varchar(32) NOT NULL DEFAULT '',
-			  PRIMARY KEY (`id`),
-			  UNIQUE KEY `method_id` (`method_id`)
-			) ENGINE=InnoDB DEFAULT CHARSET=utf8;",
-			$method_table
-		) .
-		"

(If you do not know how to run SQL queries, please contact your hosting provider)
"); -} - -// update sales_flat_order_payment -for ($i = 0; $i < 10; $i++) -{ - $installer->run("UPDATE `".$order_table."` SET `method` = 'mpm_void_0".$i."' WHERE `method` = 'mpm_void_".$i."';"); -} - -$installer->endSetup(); \ No newline at end of file diff --git a/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.1.5.php b/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.1.5.php deleted file mode 100644 index 38e0b850..00000000 --- a/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.1.5.php +++ /dev/null @@ -1,131 +0,0 @@ -startSetup(); - -$payment_table = $installer->getTable('mollie_payments'); -$method_table = $installer->getTable('mollie_methods'); -$order_table = $installer->getTable('sales_flat_order_payment'); - -/* - * Tabel Betalingen - */ -$installer->run( - sprintf(" - CREATE TABLE IF NOT EXISTS `%s` ( - `order_id` int(11) NOT NULL, - `method` varchar(3) NOT NULL, - `transaction_id` varchar(32) NOT NULL, - `bank_account` varchar(15) NOT NULL, - `bank_status` varchar(20) NOT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime DEFAULT NULL, - UNIQUE KEY `transaction_id` (`transaction_id`), - KEY `order_id` (`order_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;", - $payment_table - ) . "REPLACE INTO `{$installer->getTable('core_config_data')}` SET `path` = 'payment/mollie/description', `value` = 'Order %';" -); -if (!$installer->tableExists($payment_table)) -{ - echo(" -
Insufficient SQL rights to create the $payment_table table! Please make sure you have sufficient access rights to install modules and/or run this query manually:
" .
-		sprintf("
-			CREATE TABLE IF NOT EXISTS `%s` (
-			`order_id` int(11) NOT NULL,
-			`method` varchar(3) NOT NULL,
-			`transaction_id` varchar(32) NOT NULL,
-			`bank_account` varchar(15) NOT NULL,
-			`bank_status` varchar(20) NOT NULL,
-			`created_at` datetime NOT NULL,
-			`updated_at` datetime DEFAULT NULL,
-			 UNIQUE KEY `transaction_id` (`transaction_id`),
-			 KEY `order_id` (`order_id`)
-		) ENGINE=InnoDB DEFAULT CHARSET=utf8;",
-			$payment_table
-		) .
-		"

(If you do not know how to run SQL queries, please contact your hosting provider)
"); -} - -/* - * Tabel Betaalmethodes - */ - -if ($installer->tableExists($method_table)) -{ - $installer->run( - sprintf("DROP TABLE IF EXISTS `%s`", $method_table) - ); -} - -$installer->run( - sprintf(" - CREATE TABLE IF NOT EXISTS `%s` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT, - `method_id` varchar(32) NOT NULL DEFAULT '', - `description` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - UNIQUE KEY `method_id` (`method_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;", - $method_table - ) -); - - -if (!$installer->tableExists($method_table)) -{ - echo(" -
Insufficient SQL rights to create the $method_table table! Please make sure you have sufficient access rights to install modules and/or run this query manually:
" .
-		sprintf("
-			CREATE TABLE IF NOT EXISTS `%s` (
-			  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
-			  `method_id` varchar(32) NOT NULL DEFAULT '',
-			  `description` varchar(32) NOT NULL DEFAULT '',
-			  PRIMARY KEY (`id`),
-			  UNIQUE KEY `method_id` (`method_id`)
-			) ENGINE=InnoDB DEFAULT CHARSET=utf8;",
-			$method_table
-		) .
-		"

(If you do not know how to run SQL queries, please contact your hosting provider)
"); -} - -// update sales_flat_order_payment -for ($i = 0; $i < 10; $i++) -{ - $installer->run("UPDATE `".$order_table."` SET `method` = 'mpm_void_0".$i."' WHERE `method` = 'mpm_void_".$i."';"); -} - -$installer->endSetup(); \ No newline at end of file diff --git a/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.0.7.php b/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.1.6.php similarity index 100% rename from app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.0.7.php rename to app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.1.6.php diff --git a/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.0.2.php b/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-uninstall-4.1.6.php similarity index 64% rename from app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.0.2.php rename to app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-uninstall-4.1.6.php index 05ae507d..ce1258e5 100644 --- a/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-install-4.0.2.php +++ b/app/code/community/Mollie/Mpm/sql/mpm_setup/mysql4-uninstall-4.1.6.php @@ -34,39 +34,37 @@ **/ $installer = $this; + $installer->startSetup(); -/* - * Tabel Betalingen - */ $installer->run( - sprintf("CREATE TABLE IF NOT EXISTS `%s` ( - `order_id` int(11) NOT NULL, - `method` varchar(3) NOT NULL, - `transaction_id` varchar(32) NOT NULL, - `bank_account` varchar(15) NOT NULL, - `bank_status` varchar(20) NOT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime DEFAULT NULL, - UNIQUE KEY `transaction_id` (`transaction_id`), - KEY `order_id` (`order_id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;", + sprintf("DROP TABLE IF EXISTS `%s`", $installer->getTable('mollie_payments') - ) . "REPLACE INTO `{$installer->getTable('core_config_data')}` SET `path` = 'payment/mollie/description', `value` = 'Order %';" + ) ); - -/* - * Tabel Betaalmethodes - */ $installer->run( - sprintf("CREATE TABLE `%s` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT, - `method_id` varchar(32) NOT NULL DEFAULT '', - `description` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;", + sprintf("DROP TABLE IF EXISTS `%s`", $installer->getTable('mollie_methods') ) ); +$installer->run(" + DELETE FROM `{$installer->getTable('core_config_data')}` where `path` LIKE 'payment/mollie/%'; + DELETE FROM `{$installer->getTable('core_resource')}` where `code` = 'mpm_setup';" +); + + +if ($installer->tableExists($installer->getTable('mollie_payments')) || $installer->tableExists($installer->getTable('mollie_methods'))) +{ + echo "
Insufficient SQL rights to uninstall correctly! Please make sure you have sufficient access rights to (un)install modules and/or run these queries manually:
" .
+		sprintf("DROP TABLE IF EXISTS `%s`",
+			$installer->getTable('mollie_payments')
+		) .
+		"

And:
" .
+		sprintf("DROP TABLE IF EXISTS `%s`",
+			$installer->getTable('mollie_methods')
+		) .
+		"

(If you do not know how to run SQL queries, please contact your hosting provider)
"; +} + $installer->endSetup(); diff --git a/app/etc/modules/Mollie_Mpm.xml b/app/etc/modules/Mollie_Mpm.xml index ace851c7..4386f8a2 100644 --- a/app/etc/modules/Mollie_Mpm.xml +++ b/app/etc/modules/Mollie_Mpm.xml @@ -7,7 +7,7 @@ - 4.1.5 + 4.1.6
diff --git a/changelog.mdown b/changelog.mdown index 54cbbbbd..d6d09624 100644 --- a/changelog.mdown +++ b/changelog.mdown @@ -2,6 +2,9 @@ # Changelog # +## Changes in release 4.1.6. ## ++ Support partial online refunds. + ## Changes in release 4.1.5. ## + If a customer returns to Magento and his payment is not yet finalized, the module will now send the order email.