diff --git a/common.php b/common.php index fff55002..4f104e91 100644 --- a/common.php +++ b/common.php @@ -27,7 +27,7 @@ if (version_compare(phpversion(), '7.2.5', '<')) die('PHP version 7.2.5 or highe const MYAAC = true; const MYAAC_VERSION = '0.9.0-dev'; -const DATABASE_VERSION = 35; +const DATABASE_VERSION = 36; const TABLE_PREFIX = 'myaac_'; define('START_TIME', microtime(true)); define('MYAAC_OS', stripos(PHP_OS, 'WIN') === 0 ? 'WINDOWS' : (strtoupper(PHP_OS) === 'DARWIN' ? 'MAC' : 'LINUX')); diff --git a/install/includes/schema.sql b/install/includes/schema.sql index 1174788e..ba90c7f2 100644 --- a/install/includes/schema.sql +++ b/install/includes/schema.sql @@ -1,4 +1,4 @@ -SET @myaac_database_version = 35; +SET @myaac_database_version = 36; CREATE TABLE `myaac_account_actions` ( diff --git a/system/migrations/36.php b/system/migrations/36.php index b3d9bbc7..1e22a5a8 100644 --- a/system/migrations/36.php +++ b/system/migrations/36.php @@ -1 +1,14 @@ hasTable(TABLE_PREFIX . 'settings')) { + $db->exec("CREATE TABLE `" . TABLE_PREFIX . "settings` + ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `plugin_name` VARCHAR(255) NOT NULL DEFAULT '', + `key` VARCHAR(255) NOT NULL DEFAULT '', + `value` TEXT NOT NULL, + PRIMARY KEY (`id`), + KEY `key` (`key`) + ) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;"); +}