VRFS-2465 added script to migrate text messages in notifications table to the new text_messages table
This commit is contained in:
parent
2017fed9ce
commit
b0bf4b4a48
|
|
@ -242,3 +242,4 @@ active_jam_track.sql
|
|||
bpms_on_tap_in.sql
|
||||
jamtracks_job.sql
|
||||
text_messages.sql
|
||||
text_message_migration.sql
|
||||
|
|
@ -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'
|
||||
);
|
||||
Loading…
Reference in New Issue