Advertisement
Guest User

Conversations

a guest
Jan 29th, 2015
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.58 KB | None | 0 0
  1. sp_rename 'conv.ConversationMessages', 'Messages';
  2. GO
  3.  
  4. sp_RENAME 'conv.Messages.ThreadId' , 'ConversationId', 'COLUMN'
  5. GO
  6.  
  7. sp_rename 'conv.ConversationThreadRecipients', 'ConversationParticipants';
  8. GO
  9.  
  10. sp_rename 'conv.ConversationParticipants.ThreadId', 'ConversationId', 'COLUMN';
  11. GO
  12.  
  13. sp_rename 'conv.ConversationThreads', 'Conversations';
  14. GO
  15.  
  16. sp_rename 'conv.Conversations.RecipientOrganizationId', 'OrganizationId', 'COLUMN';
  17. GO
  18.  
  19. sp_rename 'conv.Conversations.RecipientsHash', 'ParticipantsHash', 'COLUMN';
  20. GO
  21.  
  22. DELETE FROM conv.Messages WHERE CreatedByUserId IS NULL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement