easy-wi / developer

Gameserver, Voiceserver Webinterface
https://easy-wi.com
GNU General Public License v3.0
221 stars 83 forks source link

[BUG] Updater does not update version in table. #1319

Closed AEon-Jan closed 1 year ago

AEon-Jan commented 2 years ago

Describe the bug Version is not updated in the Database

To Reproduce Update -> check DB -> Update is still pending

Expected behavior Update will be dismissed when the Database Version is matching the Github version

Will Check on it Later

AEon-Jan commented 2 years ago

Even if the update is Still pending ... it should be installed.

You could add the version manually to the database or just ignore the update button. Until i fixed it

4deevspt commented 2 years ago

Already fix.

Open update.php

After that if (versioncheck($version, '6.2.0', 'update_618-620.php', $response)) { $version = '6.2.0'; }

add

if (versioncheck($version, '6.2.0.1', 'update_620-6201.php', $response)) { $version = '6.2.0.1'; } if (versioncheck($version, '6.2.1', 'update_dev_6201-621.php', $response)) { $version = '6.2.1'; }

change if (versioncheck($version, $devVersion, 'update_dev_620-6201.php', $response, true)) { to if (versioncheck($version, $devVersion, 'update_dev_6201-621.php', $response, true)) {

check if you have file . update_dev_6201-621.php open and check if have this

$query = $sql->prepare("INSERT INTO easywi_version (version,de,en) VALUES ('6.2.1','<div align=\"right\">22.12.2021

for me works

AEon-Jan commented 2 years ago

Will check that ASAP.

AEon-Jan commented 1 year ago

Fixed