X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl-cms.git;a=blobdiff_plain;f=config.php;h=59b1c98a019ab3ea9fc56f3b0408861d5fe63336;hp=e60cbd70d02a12f0284ef974b9d7b4acbd202b12;hb=cd38e5f5860aa72e8d0548a7ae3d8489aec48062;hpb=134de2aa82870e47d5a9b4da266b0354fb27baf4 diff --git a/config.php b/config.php index e60cbd7..59b1c98 100644 --- a/config.php +++ b/config.php @@ -29,3 +29,9 @@ require_once(DOCROOT . 'inc/misc.php'); # Connect to the database db_connect(WFPL_DB, WFPL_DB_USER, WFPL_DB_PASS); + +# upgrade db (only) on special trigger (assures only one upgrade at a time) +if (isset($_SERVER['HTTP_X_UPGRADE_DB_NOW'])) { + require_once(DOCROOT . 'inc/db_upgrade.php'); + db_upgrade(); +}