summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-01-19 20:39:16 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-01-19 20:39:16 +0000
commit92f1e71594e3c75e2039fc6f6f6d7930f313d2e9 (patch)
tree666250e0f25c1395f447eabdf15a82e8aceaf6a9 /admin
parent7aa94d0c8960cbb574eab5baaac7ae6151231c02 (diff)
downloadpigeonholes-92f1e71594e3c75e2039fc6f6f6d7930f313d2e9.tar.gz
pigeonholes-92f1e71594e3c75e2039fc6f6f6d7930f313d2e9.tar.bz2
pigeonholes-92f1e71594e3c75e2039fc6f6f6d7930f313d2e9.zip
completely pull positioning stuff and try and make listing better - table based layout rocks now
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] );
+}
+
+
+?>