summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2008-10-25 06:31:15 +0000
committerMax Kremmel <xing@synapse.plus.com>2008-10-25 06:31:15 +0000
commit5843fb8aad98d3dfeddb53bf22516e5b07823b2d (patch)
tree199f23e41e6aa73f1aa1c7812135ed5aaf779774
parentc8352e70f9a49cc20c1ea800f6ad2b9b0cfe2f26 (diff)
downloadusers-5843fb8aad98d3dfeddb53bf22516e5b07823b2d.tar.gz
users-5843fb8aad98d3dfeddb53bf22516e5b07823b2d.tar.bz2
users-5843fb8aad98d3dfeddb53bf22516e5b07823b2d.zip
move users_semaphore table drop to version upgrade file
-rw-r--r--admin/upgrade_inc.php15
-rw-r--r--admin/upgrades/2.0.0.php20
2 files changed, 20 insertions, 15 deletions
diff --git a/admin/upgrade_inc.php b/admin/upgrade_inc.php
index ab6fb29..2176e1b 100644
--- a/admin/upgrade_inc.php
+++ b/admin/upgrade_inc.php
@@ -637,21 +637,6 @@ array( 'DATADICT' => array(
),
)),
-
-
-
-
-'BWR2' => array(
- 'BWR3' => array(
-
-array( 'DATADICT' => array(
- array( 'DROPTABLE' => array(
- 'users_semaphores',
- )),
-)),
-
- )
-),
);
if( isset( $upgrades[$gUpgradeFrom][$gUpgradeTo] ) ) {
diff --git a/admin/upgrades/2.0.0.php b/admin/upgrades/2.0.0.php
new file mode 100644
index 0000000..913f378
--- /dev/null
+++ b/admin/upgrades/2.0.0.php
@@ -0,0 +1,20 @@
+<?php
+global $gBitInstaller;
+
+$infoHash = array(
+ 'package' => USERS_PKG_NAME,
+ 'version' => str_replace( '.php', '', basename( __FILE__ )),
+ 'description' => "This upgrade removes an unused table from the database.",
+ 'post_upgrade' => NULL,
+);
+
+$gBitInstaller->registerPackageUpgrade( $infoHash, array(
+
+array( 'DATADICT' => array(
+ array( 'DROPTABLE' => array(
+ 'users_semaphores',
+ )),
+)),
+
+));
+?>