mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
Migrate old moved posts messages in English
This commit is contained in:
parent
9629f63612
commit
0d9899198f
1 changed files with 6 additions and 0 deletions
6
db/migrate/20150731225331_migrate_old_moved_posts.rb
Normal file
6
db/migrate/20150731225331_migrate_old_moved_posts.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
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
|
Loading…
Reference in a new issue