Procedural File: standalone.upgrade.php

Source Location: /bblog/install/standalone.upgrade.php ( Revision Log )

Page Details

standalone.upgrade.php - The bBlog standalone upgrade script

This will be the default standard upgrader, which will include all patches to previous versions. It mainly has to do with updates regarding the DB. And can also be used as a stand alone upgrader, without going through the installer. (but i disabled the header now coz its duplicate)

Note: This file is stable enough to *work*, and enter testing. It is reverse compatible down to 0.7.2. I decided not to put in the 0.6 and below patches because we all decided such versions are too old and unsupported.. And besides.. that means another ~400 lines extra.

Todo:  of the code. The upgrader doesnt need any versions. It doesnt need to know
Todo:  anything from you except 2 things.
Todo:  1) What the last version of the db looks like, and
Todo:  I just noticed a nice idea which will greatly reduce the complexity and size
Author:  xushi <xushi.xushi@gmail.com>, http://www.bblog.com/ - last modified by $LastChangedBy: $
License:  GNU General Public License
Copyright:  The bBlog Project, http://www.bblog.com/
Version:  $Id: $
Todo:  2) What your current db looks like.
Todo:  
Todo:  
Todo:  This idea occured to me while merging 0.6, because half of the db was missing,
Todo:  and 0.7.2 corrected it by doing the exact method just explained. The same could
Todo:  now.
Todo:  of the patcher, you make a $db->query($q);, instead of several small ones like
Todo:  If anything is different/missing, then it patches and updates. Thats really it.
Todo:  I mean it will look similar to the install php, but with each querry protected by
Todo:  a check to see if what you have is old, missing, or the same. At the very end
Todo:  be expanded to the whole upgrade proccess.
Includes
include ('footer.php') [line 421]
[ Top ]

include ('../config.php') [line 47]

Flyspray 70: die if config.php not found. This is useful for anyone who forgot to put it back when upgrading.

[ Top ]

include_once ('../bBlog_plugins/'.$plugin_file) [line 358]
Information Tags:
Todo:  I'm going to just copy the code here for now
Todo:  from bBlog_plugins/builtin.plugins.php
Todo:  coz for the life of me i can't get it to
Todo:  call the function from there instead..
[ Top ]


Functions
getVer  [line 424]

void getVer( )


[ Top ]
updateVer  [line 437]

void updateVer( mixed $version  )


[ Top ]
writeVer  [line 430]

void writeVer( mixed $version  )


[ Top ]