mirror of
https://github.com/discourse/discourse-solved.git
synced 2025-07-04 12:52:17 +00:00
Related: - https://github.com/discourse/discourse-solved/pull/309 - https://github.com/discourse/discourse-solved/pull/341 Requires: - https://github.com/discourse/discourse/pull/31954 This commit converts all use of post and topic custom fields into a dedicated table: - migration for copying custom field into table - swap app usage of custom fields to table This commit does not attempt to fix issues or optimise, and does not delete old data from custom fields _yet_.
14 lines
372 B
Ruby
14 lines
372 B
Ruby
# frozen_string_literal: true
|
|
#
|
|
class CreateDiscourseSolvedSolvedTopics < ActiveRecord::Migration[7.2]
|
|
def change
|
|
create_table :discourse_solved_solved_topics do |t|
|
|
t.integer :topic_id, null: false
|
|
t.integer :answer_post_id, null: false
|
|
t.integer :accepter_user_id, null: false
|
|
t.integer :topic_timer_id
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|