added DB Structure changes during update

This commit is contained in:
johnnyq 2021-12-09 11:07:54 -05:00
parent c88e6b851a
commit 16447709d8
2 changed files with 9 additions and 1 deletions

View File

@ -854,6 +854,14 @@ if(isset($_GET['update'])){
//exec("git fetch --all");
//exec("git reset --hard origin/master");
//Alter SQL Structure
mysql_query("ALTER TABLE settings DROP config_enable_alert_low_balance");
mysql_query("ALTER TABLE settings DROP config_account_balance_threshold");
mysql_query("ALTER TABLE assets ADD asset_install_date DATE NULL AFTER asset_warranty_expire");
$_SESSION['alert_message'] = "Update Successful!";
header("Location: " . $_SERVER["HTTP_REFERER"]);

View File

@ -61,7 +61,7 @@ $sql_recent_logs = mysqli_query($mysqli,"SELECT * FROM logs
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-lock"></i></span>
</div>
<input type="password" class="form-control" data-toggle="password" name="new_password" placeholder="Leave Blank For No Passwod Change" autocomplete="new-password">
<input type="password" class="form-control" data-toggle="password" name="new_password" placeholder="Leave blank for no change" autocomplete="new-password">
<div class="input-group-append">
<span class="input-group-text"><i class="fa fa-fw fa-eye"></i></span>
</div>