summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-09-19 10:06:11 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-09-19 10:06:11 +0000
commit83d19b86fd5d0f1f349aeeb1e7113a8115c9c297 (patch)
tree9894f195d987f52004f7844062f4ec682987e7fa /admin
parentc6f92a6dd34cca0e1247c21a0f6facb54a2a1ff0 (diff)
downloadarticles-83d19b86fd5d0f1f349aeeb1e7113a8115c9c297.tar.gz
articles-83d19b86fd5d0f1f349aeeb1e7113a8115c9c297.tar.bz2
articles-83d19b86fd5d0f1f349aeeb1e7113a8115c9c297.zip
SCHEMA CHANGE: move image_attachment_id information to liberty_attachments drop image_attachment_id and clean out legacy code. some of the legacy code had to be moved to BitArticleTopic but i suspect we could stirp that class at some point to allow the use of pigeonholes instead. simplified a lot of the display code by not tapping into mStorage.
Diffstat (limited to 'admin')
-rw-r--r--admin/schema_inc.php1
-rw-r--r--admin/upgrade_inc.php15
2 files changed, 0 insertions, 16 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index 1d9a594..33fe82f 100644
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -43,7 +43,6 @@ $tables = array(
content_id I4 NOTNULL,
description X,
author_name C(250),
- image_attachment_id I4,
publish_date I4,
expire_date I4,
article_type_id I4,
diff --git a/admin/upgrade_inc.php b/admin/upgrade_inc.php
index 1da401e..86d5fd1 100644
--- a/admin/upgrade_inc.php
+++ b/admin/upgrade_inc.php
@@ -87,20 +87,6 @@ array( 'PHP' => '
}
'),
-array( 'QUERY' =>
- array( 'SQL92' => array(
- // liberty upgrade has already happened. we'll set the image_attachment_id as the primary attachment
- "UPDATE `".BIT_DB_PREFIX."liberty_attachments` la SET `is_primary` = 'y' WHERE articles.`image_attachment_id` = la.`attachment_id`"
- )),
-),
-
-// we can drop the image_attachment_id column
-array( 'DATADICT' => array(
- array( 'DROPCOLUMN' => array(
- 'articles' => array( '`image_attachment_id`' ),
- )),
-)),
-
)
), // end BWR1 --> BWR2
@@ -177,7 +163,6 @@ array( 'DATADICT' => array(
'content_id' => array( '`content_id`', 'I4' ),
'description' => array( '`description`', 'X' ),
'status_id' => array( '`status_id`', 'I4' ),
- 'image_attachment_id' => array( '`image_attachment_id`', 'I4' ),
'article_type_id' => array( '`article_type_id`', 'I4' ),
),
'tiki_article_types' => array(