diff --git a/post.php b/post.php index 7c4e5a99..22a19d59 100644 --- a/post.php +++ b/post.php @@ -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"]); diff --git a/settings-user.php b/settings-user.php index b9df1426..60f8710a 100644 --- a/settings-user.php +++ b/settings-user.php @@ -61,7 +61,7 @@ $sql_recent_logs = mysqli_query($mysqli,"SELECT * FROM logs
- +