mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 03:33:43 +08:00
a48731e359
New `about.json` fields (all optional): - `authors`: An arbitrary string describing the theme authors - `theme_version`: An arbitrary string describing the theme version - `minimum_discourse_version`: Theme will be auto-disabled for lower versions. Must be a valid version descriptor. - `maximum_discourse_version`: Theme will be auto-disabled for lower versions. Must be a valid version descriptor. A localized description for a theme can be provided in the language files under the `theme_metadata.description` key The admin UI has been re-arranged to display this new information, and give more prominence to the remote theme options.
9 lines
322 B
Ruby
9 lines
322 B
Ruby
class AddFieldsToRemoteThemes < ActiveRecord::Migration[5.2]
|
|
def change
|
|
add_column :remote_themes, :authors, :string
|
|
add_column :remote_themes, :theme_version, :string
|
|
add_column :remote_themes, :minimum_discourse_version, :string
|
|
add_column :remote_themes, :maximum_discourse_version, :string
|
|
end
|
|
end
|