diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-11-17 13:05:32 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-11-17 13:05:32 +0000 |
commit | 6fd5a8d9cfb713ceb723ba1c977c35d01b80cd1b (patch) | |
tree | efadde62135a3052d6534d9be788f67a1ddab301 | |
parent | cd2df442b0f00564d2c895d3b817d24c8382044e (diff) | |
download | brdo-6fd5a8d9cfb713ceb723ba1c977c35d01b80cd1b.tar.gz brdo-6fd5a8d9cfb713ceb723ba1c977c35d01b80cd1b.tar.bz2 |
- update.php: discovered and fixed a small thinko in update function #7.
-rw-r--r-- | update.php | 4 |
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;"); |