Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl-cms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add db_upgrade system
[wfpl-cms.git]
/
config.php
diff --git
a/config.php
b/config.php
index
e60cbd7
..
59b1c98
100644
(file)
--- 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);
# 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();
+}