Skip to content

Commit

Permalink
set legacy messages to have message_received text
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Whiteland committed Apr 1, 2013
1 parent d4f35c7 commit 1ebdd59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion db/schema_0013-add_message_received_to_message.sql
@@ -1 +1,4 @@
ALTER TABLE `messages` ADD `message_received` TEXT NULL DEFAULT NULL;
ALTER TABLE `messages` ADD `message_received` TEXT NULL DEFAULT NULL;

-- not quite correct, but probably helpful: assume legacy messages have not been edited (although tags may have been stripped)
UPDATE `messages` SET `message_received` = `message`;

0 comments on commit 1ebdd59

Please sign in to comment.