summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/schema_inc.php3
-rw-r--r--admin/upgrade_inc.php23
2 files changed, 24 insertions, 2 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index 20256cd..3a51103 100644
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -12,8 +12,7 @@ $tables = array(
",
'bit_pigeonhole_members' => "
parent_id I4 NOTNULL PRIMARY,
- content_id I4 NOTNULL PRIMARY,
- pos I4 NOTNULL
+ content_id I4 NOTNULL PRIMARY
"
);
diff --git a/admin/upgrade_inc.php b/admin/upgrade_inc.php
new file mode 100644
index 0000000..337803f
--- /dev/null
+++ b/admin/upgrade_inc.php
@@ -0,0 +1,23 @@
+<?php
+
+global $gBitSystem, $gUpgradeFrom, $gUpgradeTo;
+
+$upgrades = array(
+ 'BWR1' => array(
+ 'BWR2' => array(
+ // STEP 1
+ array( 'DATADICT' => array(
+ array( 'DROPCOLUMN' => array(
+ 'bit_pigeonhole_members' => array( '`pos`' ),
+ )),
+ )),
+ )
+ )
+);
+
+if( isset( $upgrades[$gUpgradeFrom][$gUpgradeTo] ) ) {
+ $gBitSystem->registerUpgrade( PIGEONHOLES_PKG_NAME, $upgrades[$gUpgradeFrom][$gUpgradeTo] );
+}
+
+
+?>