Initial checkin.
Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
commit
30132626b8
68 changed files with 5497 additions and 0 deletions
16
samples/mysql/update-0.08-0.09.sql
Normal file
16
samples/mysql/update-0.08-0.09.sql
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#
|
||||
# $Id: update-0.08-0.09.sql 145 2009-10-11 20:00:45Z alba $
|
||||
#
|
||||
# Update from version 0.08 to 0.09
|
||||
|
||||
# First use create.sql to create table @sample@_reply
|
||||
|
||||
# Copy column Answer to table @sample@_reply
|
||||
INSERT INTO @sample@_reply
|
||||
(article_id, reply_date, reply_message)
|
||||
SELECT a.id, IFNULL(a.Moddatum, NOW()), a.answer
|
||||
FROM @sample@ a
|
||||
WHERE a.answer is not null;
|
||||
|
||||
# Drop column Answer
|
||||
ALTER TABLE @sample@ DROP COLUMN answer;
|
||||
Loading…
Add table
Add a link
Reference in a new issue