diff options
| author | Tomasz Kalkosinski <pppspoonman@users.sourceforge.net> | 2008-11-12 18:54:23 +0000 |
|---|---|---|
| committer | Tomasz Kalkosinski <pppspoonman@users.sourceforge.net> | 2008-11-12 18:54:23 +0000 |
| commit | ce72851549a9c589877913f76d71313353a70981 (patch) | |
| tree | 65cfc0b6030b1fbe500f7744a85ed819b13197db /admin | |
| parent | ade23b546f19daae91fba066cf01d7ba4b41e3c1 (diff) | |
| download | wiki-ce72851549a9c589877913f76d71313353a70981.tar.gz wiki-ce72851549a9c589877913f76d71313353a70981.tar.bz2 wiki-ce72851549a9c589877913f76d71313353a70981.zip | |
Add upgrade script to column user_id fix from C40 to I4.
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/upgrades/2.1.0.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/admin/upgrades/2.1.0.php b/admin/upgrades/2.1.0.php new file mode 100644 index 0000000..0059c28 --- /dev/null +++ b/admin/upgrades/2.1.0.php @@ -0,0 +1,30 @@ +<?php +/** + * @version $Header: + */ +global $gBitInstaller; + +$infoHash = array( + 'package' => WIKI_PKG_NAME, + 'version' => str_replace( '.php', '', basename( __FILE__ )), + 'description' => "This upgrade replaces unused meta tables with new ones. These meta tables are used to store meta data of uploaded files.", + 'post_upgrade' => NULL, +); +$gBitInstaller->registerPackageUpgrade( $infoHash, array( + +array( 'DATADICT' => array( + array( 'ALTER' => array( + 'wiki_footnotes' => array( + 'user_id' => array( '`user_id`', 'I4' ), // , 'NOTNULL' ), + ))), +)), + +array( 'PHP' => ' + // make sure plugins are up to date. + global $gLibertySystem; + $gLibertySystem->scanAllPlugins(); +' +) + +)); +?> |
