summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--update.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/update.php b/update.php
index f1dc3ada8..c862f1fdf 100644
--- a/update.php
+++ b/update.php
@@ -125,6 +125,10 @@ function update_6() {
}
function update_7() {
+ print "updating the story table:\n";
+ update_sql("UPDATE story SET body = CONCAT(abstract, '\n\n', body)");
+ update_sql("ALTER TABLE story DROP abstract");
+
print 'rename the body fields:\n';
update_sql("ALTER TABLE story CHANGE body body_old TEXT DEFAULT '' NOT NULL;");
update_sql("ALTER TABLE page CHANGE body body_old TEXT DEFAULT '' NOT NULL;");