This commit is contained in:
@@ -27,8 +27,9 @@ class ThemeConfigurator
|
||||
public function install()
|
||||
{
|
||||
try {
|
||||
$table = ThemeConfigModel::tableName();
|
||||
Db::execute(
|
||||
"CREATE TABLE IF NOT EXISTS `addon_theme_configurator`(
|
||||
"CREATE TABLE IF NOT EXISTS `{$table}`(
|
||||
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`config` longtext NOT NULL,
|
||||
`update_time` int(11) DEFAULT 0,
|
||||
@@ -56,7 +57,8 @@ class ThemeConfigurator
|
||||
public function uninstall()
|
||||
{
|
||||
try {
|
||||
Db::execute("DROP TABLE IF EXISTS `addon_theme_configurator`;");
|
||||
$table = ThemeConfigModel::tableName();
|
||||
Db::execute("DROP TABLE IF EXISTS `{$table}`;");
|
||||
} catch (\Throwable $throwable) {
|
||||
return [
|
||||
'status' => 400,
|
||||
|
||||
Reference in New Issue
Block a user