forked from thielpeter/flexshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall.php
25 lines (21 loc) · 1.05 KB
/
uninstall.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
* FlexShop.
*
* @author jpeter.thiel@gmail.com
* @package redaxo\flex_shop
*
* @var rex_addon $this
*/
$sql = rex_sql::factory();
$sql->setQuery('DELETE FROM `'.rex::getTable('yform_table').'` WHERE table_name = "'.rex::getTable('flexshop_object').'"');
$sql->setQuery('DELETE FROM `'.rex::getTable('yform_table').'` WHERE table_name = "'.rex::getTable('flexshop_category').'"');
$sql->setQuery('DELETE FROM `'.rex::getTable('yform_field').'` WHERE table_name = "'.rex::getTable('flexshop_object').'"');
$sql->setQuery('DELETE FROM `'.rex::getTable('yform_field').'` WHERE table_name = "'.rex::getTable('flexshop_category').'"');
$sql->setQuery('DELETE FROM `'.rex::getTable('yform_history').'` WHERE table_name = "'.rex::getTable('flexshop_object').'"');
$sql->setQuery('DELETE FROM `'.rex::getTable('yform_history').'` WHERE table_name = "'.rex::getTable('flexshop_category').'"');
rex_sql_table::get(rex::getTable('flexshop_object'))
->drop();
rex_sql_table::get(rex::getTable('flexshop_category'))
->drop();
rex_yform_manager_table::deleteCache();