mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-29 18:46:23 -05:00
7 lines
372 B
Ruby
7 lines
372 B
Ruby
|
class MigrateOldMovedPosts < ActiveRecord::Migration
|
||
|
def up
|
||
|
execute "UPDATE posts SET post_type = 3, action_code = 'split_topic' WHERE post_type = 2 AND raw ~* '^I moved [a\\d]+ posts? to a new topic:'"
|
||
|
execute "UPDATE posts SET post_type = 3, action_code = 'split_topic' WHERE post_type = 2 AND raw ~* '^I moved [a\\d]+ posts? to an existing topic:'"
|
||
|
end
|
||
|
end
|