mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
added DB Structure changes during update
This commit is contained in:
8
post.php
8
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"]);
|
||||
|
||||
Reference in New Issue
Block a user