summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2008-11-13 09:39:03 +0000
committerMax Kremmel <xing@synapse.plus.com>2008-11-13 09:39:03 +0000
commit7c8979dded90784e749dd7b66ed3bc628c3bedb8 (patch)
tree3a01d0a5105d054c799bfb0ff36d988e72ca14a8 /admin
parent673e810b88c386b7a0b998eaf6b940d1c45ec732 (diff)
downloadwiki-7c8979dded90784e749dd7b66ed3bc628c3bedb8.tar.gz
wiki-7c8979dded90784e749dd7b66ed3bc628c3bedb8.tar.bz2
wiki-7c8979dded90784e749dd7b66ed3bc628c3bedb8.zip
big cleanup of wiki, removed unused tables, removed commented code, moved remaining wikilib class stuff to BitPage (finally), revived and cleaned up wiki graph stuff, added generic methods to get default settings for graphs (still requires some UI to set all defaults)
Diffstat (limited to 'admin')
-rw-r--r--admin/schema_inc.php46
-rw-r--r--admin/upgrades/1.0.1.php24
2 files changed, 27 insertions, 43 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index b91dea6..47c9731 100644
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -8,46 +8,6 @@ $tables = array(
data X
",
-'wiki_pages' => "
- page_id I4 PRIMARY,
- content_id I4 NOTNULL,
- wiki_page_size I4 DEFAULT 0,
- edit_comment C(200),
- flag C(1)
-",
-
-'wiki_received_pages' => "
- received_page_id I4 AUTO PRIMARY,
- title C(160) NOTNULL,
- data X,
- description C(200),
- received_comment C(200),
- received_from_site C(200),
- received_from_user C(200),
- received_date I8
-",
-
-'wiki_tags' => "
- page_id I4 PRIMARY,
- tag_name C(80) PRIMARY,
- title C(160),
- user_id I4 NOTNULL,
- hits I4,
- description C(200),
- data X,
- last_modified I8,
- tag_comment C(200),
- version I4 NOTNULL,
- ip C(15),
- flag C(1)
-",
-
-'wiki_ext' => "
- extwiki_id I4 AUTO PRIMARY,
- name C(200) NOTNULL,
- extwiki C(255)
-"
-
);
global $gBitInstaller;
@@ -166,8 +126,8 @@ if( defined( 'RSS_PKG_NAME' )) {
}
// ### Register content types
-$gBitInstaller->registerContentObjects( WIKI_PKG_NAME, array(
- 'BitPage'=>WIKI_PKG_PATH.'BitPage.php',
- 'BitBook'=>WIKI_PKG_PATH.'BitBook.php',
+$gBitInstaller->registerContentObjects( WIKI_PKG_NAME, array(
+ 'BitPage' => WIKI_PKG_PATH.'BitPage.php',
+ 'BitBook' => WIKI_PKG_PATH.'BitBook.php',
));
?>
diff --git a/admin/upgrades/1.0.1.php b/admin/upgrades/1.0.1.php
new file mode 100644
index 0000000..9ec3b11
--- /dev/null
+++ b/admin/upgrades/1.0.1.php
@@ -0,0 +1,24 @@
+<?php
+/**
+ * @version $Header:
+ */
+global $gBitInstaller;
+
+$infoHash = array(
+ 'package' => WIKI_PKG_NAME,
+ 'version' => str_replace( '.php', '', basename( __FILE__ )),
+ 'description' => "Drop unused tables.",
+ 'post_upgrade' => NULL,
+);
+$gBitInstaller->registerPackageUpgrade( $infoHash, array(
+
+array( 'DATADICT' => array(
+ array( 'DROPTABLE' => array(
+ 'wiki_received_pages',
+ 'wiki_tags',
+ 'wiki_ext',
+ )),
+)),
+
+));
+?>