dave
3904e2d9d8
- Allow the update script to include a PHP script too. The PHP script, called
...
db.update.$num.php, may contain 2 functions db_update_pre() and
db_update_post() which are run before(pre) and after(post) the SQL file is
applied. If the php script doesn't exist, the behaviour of the update script
is unchanged.
2007-11-16 21:42:45 +00:00
james
40fe6cb88c
Do some checks for system() and error out where applicable
2007-11-16 17:58:59 +00:00
james
2927eee193
Ahh found the encoding problem, need to set the charset on the command line mysql --defualt-character-set when running INSTALL or DBUPDATE scripts.
2007-11-15 20:45:19 +00:00
james
46c92e0f01
Wrap the db update script in <pre> tags so the output looks better for anyone that runs it through the webserver
2006-02-07 20:59:58 +00:00
james
6a9b470698
Switch the database versioning code from a flat textfile (db/db.db.version.txt) to a record in the config table (var=DBVERSION, year=0)
...
This gives us a much more robust database versioning system
2005-06-07 21:03:55 +00:00
james
9604c35f4b
Add the installer script - currently it only creates the data/config.inc.php database settings - it still needs to create the actual tables.
...
Add some extra sanity checking to the db updater
Add more sanity checking to the common.inc.php
2005-05-25 21:58:03 +00:00
james
e049de4562
add message at the end
2005-03-10 17:33:30 +00:00
james
9d60276f89
readfile the script so we know whats happening
2005-03-10 17:31:23 +00:00
james
81e1559b8d
add the database updater code, and always ensure that the code and db are running the same version
2005-03-10 17:28:15 +00:00