mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-09 06:34:52 +08:00
This commit promotes all post_deploy migrations which existed in Discourse v3.0.0 (timestamp <= 20221212234948)
10 lines
318 B
Ruby
10 lines
318 B
Ruby
# frozen_string_literal: true
|
|
|
|
class MigrateChatChannels < ActiveRecord::Migration[7.0]
|
|
def up
|
|
DB.exec("UPDATE chat_channels SET type='CategoryChannel' WHERE chatable_type = 'Category'")
|
|
DB.exec(
|
|
"UPDATE chat_channels SET type='DMChannel' WHERE chatable_type = 'DirectMessageChannel'",
|
|
)
|
|
end
|
|
end
|