Merge remote-tracking branch 'origin/master' into 0.10.0
This commit is contained in:
@@ -22,16 +22,33 @@ if (! defined('_CRON_UPDATE')) {
|
||||
}
|
||||
|
||||
if (isFroxlorVersion('0.9.39.5')) {
|
||||
|
||||
showUpdateStep("Updating from 0.9.39.5 to 0.10.0", false);
|
||||
updateToVersion('0.10.0');
|
||||
}
|
||||
|
||||
if (isDatabaseVersion('201802150')) {
|
||||
if (isFroxlorVersion('0.10.0')) {
|
||||
showUpdateStep("Adding new api keys table");
|
||||
Database::query("DROP TABLE IF EXISTS `api_keys`;");
|
||||
$sql = "CREATE TABLE `api_keys` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`adminid` int(11) NOT NULL default '0',
|
||||
`customerid` int(11) NOT NULL default '0',
|
||||
`apikey` varchar(500) NOT NULL default '',
|
||||
`secret` varchar(500) NOT NULL default '',
|
||||
`allowed_from` text NOT NULL,
|
||||
`valid_until` int(15) NOT NULL default '0',
|
||||
PRIMARY KEY (id),
|
||||
KEY adminid (adminid),
|
||||
KEY customerid (customerid)
|
||||
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci;";
|
||||
Database::query($sql);
|
||||
lastStepStatus(0);
|
||||
|
||||
showUpdateStep("Adding new api settings");
|
||||
Settings::AddNew('api.enabled', 0);
|
||||
lastStepStatus(0);
|
||||
|
||||
showUpdateStep("Adding new default-ssl-ip setting");
|
||||
Settings::AddNew('system.defaultsslip', '');
|
||||
lastStepStatus(0);
|
||||
|
||||
updateToDbVersion('201802210');
|
||||
}
|
||||
|
||||
@@ -3942,26 +3942,9 @@ if (isFroxlorVersion('0.9.39.4')) {
|
||||
|
||||
if (isDatabaseVersion('201802130')) {
|
||||
|
||||
showUpdateStep("Adding new api keys table");
|
||||
Database::query("DROP TABLE IF EXISTS `api_keys`;");
|
||||
$sql = "CREATE TABLE `api_keys` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`adminid` int(11) NOT NULL default '0',
|
||||
`customerid` int(11) NOT NULL default '0',
|
||||
`apikey` varchar(500) NOT NULL default '',
|
||||
`secret` varchar(500) NOT NULL default '',
|
||||
`allowed_from` text NOT NULL,
|
||||
`valid_until` int(15) NOT NULL default '0',
|
||||
PRIMARY KEY (id),
|
||||
KEY adminid (adminid),
|
||||
KEY customerid (customerid)
|
||||
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci;";
|
||||
Database::query($sql);
|
||||
showUpdateStep("Adding fullchain field to ssl certificates");
|
||||
Database::query("ALTER TABLE `" . TABLE_PANEL_DOMAIN_SSL_SETTINGS . "` ADD `ssl_fullchain_file` mediumtext AFTER `ssl_csr_file`;");
|
||||
lastStepStatus(0);
|
||||
|
||||
showUpdateStep("Adding new api settings");
|
||||
Settings::AddNew('api.enabled', 0);
|
||||
lastStepStatus(0);
|
||||
|
||||
updateToDbVersion('201802150');
|
||||
updateToDbVersion('201802250');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user