mirror of https://github.com/itflow-org/itflow
added DB Structure changes during update
This commit is contained in:
parent
c88e6b851a
commit
16447709d8
8
post.php
8
post.php
|
|
@ -854,6 +854,14 @@ if(isset($_GET['update'])){
|
||||||
//exec("git fetch --all");
|
//exec("git fetch --all");
|
||||||
//exec("git reset --hard origin/master");
|
//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!";
|
$_SESSION['alert_message'] = "Update Successful!";
|
||||||
|
|
||||||
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ $sql_recent_logs = mysqli_query($mysqli,"SELECT * FROM logs
|
||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-lock"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-lock"></i></span>
|
||||||
</div>
|
</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">
|
<div class="input-group-append">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-eye"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-eye"></i></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue