Skip to content

Commit 41b7412

Browse files
committed
Adds uninstall for 4.0.5
1 parent 2109cca commit 41b7412

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?php
2+
3+
/**
4+
* Copyright (c) 2012-2014, Mollie B.V.
5+
* All rights reserved.
6+
*
7+
* Redistribution and use in source and binary forms, with or without
8+
* modification, are permitted provided that the following conditions are met:
9+
*
10+
* - Redistributions of source code must retain the above copyright notice,
11+
* this list of conditions and the following disclaimer.
12+
* - Redistributions in binary form must reproduce the above copyright
13+
* notice, this list of conditions and the following disclaimer in the
14+
* documentation and/or other materials provided with the distribution.
15+
*
16+
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
17+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
20+
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
26+
* DAMAGE.
27+
*
28+
* @category Mollie
29+
* @package Mollie_Mpm
30+
* @author Mollie B.V. ([email protected])
31+
* @version v4.0.5
32+
* @copyright Copyright (c) 2012-2014 Mollie B.V. (https://www.mollie.nl)
33+
* @license http://www.opensource.org/licenses/bsd-license.php Open Software License (OSL 3.0)
34+
*
35+
**/
36+
37+
$installer = $this;
38+
39+
$installer->startSetup();
40+
41+
$installer->run(
42+
sprintf("DROP TABLE IF EXISTS `%s`",
43+
$installer->getTable('mollie_payments')
44+
)
45+
);
46+
$installer->run(
47+
sprintf("DROP TABLE IF EXISTS `%s`",
48+
$installer->getTable('mollie_methods')
49+
)
50+
);
51+
52+
$installer->run("
53+
DELETE FROM `{$installer->getTable('core_config_data')}` where `path` LIKE 'payment/mollie/%';
54+
DELETE FROM `{$installer->getTable('core_resource')}` where `code` = 'mpm_setup';"
55+
);
56+
57+
$installer->endSetup();

0 commit comments

Comments
 (0)