VRFS-2465 added script to migrate text messages in notifications table to the new text_messages table

This commit is contained in:
Brian Smith 2015-01-12 22:53:55 -05:00
parent 2017fed9ce
commit b0bf4b4a48
2 changed files with 6 additions and 0 deletions

View File

@ -242,3 +242,4 @@ active_jam_track.sql
bpms_on_tap_in.sql
jamtracks_job.sql
text_messages.sql
text_message_migration.sql

View File

@ -0,0 +1,5 @@
insert into text_messages(source_user_id, target_user_id, message, created_at, updated_at) (
select source_user_id, target_user_id, message, created_at, updated_at
from notifications
where description='TEXT_MESSAGE'
);