Skip to content

Commit

Permalink
fmWifi - upgrade fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WillyXJ committed Mar 21, 2019
1 parent f16c2ce commit 9b529be
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions server/fm-modules/fmWifi/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,6 @@ function upgradefmWifi_02($__FM_CONFIG, $running_version) {
}
}

/** Handle updating table with client version and module version **/
if (!setOption('fmWifi_client_version', $__FM_CONFIG['fmWifi']['client_version'], 'auto', false)) return false;

setOption('version', '0.2', 'auto', false, 0, 'fmWifi');

return true;
Expand All @@ -208,7 +205,7 @@ function upgradefmWifi_021($__FM_CONFIG, $running_version) {
if (!$success) return false;

/** Insert upgrade steps here **/
$table[] = <<<INSERT
$table[] = <<<INSERTSQL
INSERT IGNORE INTO `fm_{$__FM_CONFIG['fmWifi']['prefix']}functions` (
`def_option`,
`def_type`,
Expand All @@ -221,7 +218,7 @@ function upgradefmWifi_021($__FM_CONFIG, $running_version) {
VALUES
('ieee80211h', '( 0 | 1 )', 'no', 'yes', NULL, NULL, 'global')
INSERT;
INSERTSQL;

/** Create table schema */
if (count($table) && $table[0]) {
Expand All @@ -231,9 +228,6 @@ function upgradefmWifi_021($__FM_CONFIG, $running_version) {
}
}

/** Handle updating table with client version and module version **/
if (!setOption('fmWifi_client_version', $__FM_CONFIG['fmWifi']['client_version'], 'auto', false)) return false;

setOption('version', '0.2.1', 'auto', false, 0, 'fmWifi');

return true;
Expand Down

0 comments on commit 9b529be

Please sign in to comment.