History of bitweaverUpgrade

^All of this code is only in bitweaverCVS and the latest [/builds/|fresh build]^

bitweaver has a powerfully simply upgrader that is part of the InstallPackage. With a single click you can give your old site the power of bitweaver.

Our architecture for upgrading, like all of bitweaver, is modular and powerful. Every BitweaverPackage maintains its own upgrade script. This architecture enables you to upgrade *any* CMS to *any* bitweaver version. Anyone up for a drupal upgrader? *nuke upgrader? TW1.9 upgrader?

Currently it handles TikiWiki 1.8 and bitweaver ReleaseZero updates. It uses a lot of subselects so you will need a real database or at least MySQL 4.1.

-=How does it work?=-
install/upgrade.php does all the magic by looking at every BitweaverPackage's <package>/admin/upgrade_inc.php. This file has upgrade hashes of SQL *and* php for each package version and particular RDBMS as necessary. Below is a brief example. We suggest you look at liberty/admin/upgrade_inc.php if you are interested in seeing a complete example of how it works, or shoutbox/admin/upgrade_inc.php for a simpler example.

{CODE(in=>PHP)}
$updateHash = array(

'TW18' => array(
'2.0' => array(
'pgsql' => 'ALTER TABLE tiki_pages RENAME `pageId` TO `page_id`'
)
),

'2.0' => array(
'3.0' => array(
'sql92' => "ALTER TABLE tiki_pages ADD foo VARCHAR(20); UPDATE tiki_pages SET foo='bar';",
'php' => 'foreach( $hash as $key ) { doSomething(); } '
)
)

);
{CODE}
Page History
Date/CommentUserIPVersion
22 May 2010 (12:21 UTC)
jin62.80.184.17866
Current • Source
xing62.47.234.765
View • Compare • Difference • Source
xing62.47.236.17964
View • Compare • Difference • Source
Lester Caine81.138.11.13663
View • Compare • Difference • Source
xing62.47.234.5662
View • Compare • Difference • Source
laetzer85.178.27.14961
View • Compare • Difference • Source
laetzer85.178.39.19960
View • Compare • Difference • Source
xing62.47.249.359
View • Compare • Difference • Source
Lester Caine81.138.11.13658
View • Compare • Difference • Source
xing62.47.234.23457
View • Compare • Difference • Source
xing62.47.234.23456
View • Compare • Difference • Source
Will69.203.72.16155
View • Compare • Difference • Source
xing194.152.164.4554
View • Compare • Difference • Source
spiderr66.194.217.22253
View • Compare • Difference • Source
spiderr66.194.217.22152
View • Compare • Difference • Source
Kozuch194.212.43.9750
View • Compare • Difference • Source
Edwin24.92.192.15649
View • Compare • Difference • Source
Unknown194.63.141.20248
View • Compare • Difference • Source
Edwin24.92.192.15647
View • Compare • Difference • Source
Edwin24.92.192.15645
View • Compare • Difference • Source
Edwin24.92.192.15644
View • Compare • Difference • Source
laetzer85.178.59.14843
View • Compare • Difference • Source
laetzer85.178.53.8740
View • Compare • Difference • Source
xing194.152.164.4539
View • Compare • Difference • Source
jeff24.62.5.10338
View • Compare • Difference • Source
xing194.152.164.4537
View • Compare • Difference • Source