mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 03:05:45 +08:00
When a remote theme is installed or updated from a git repository, Discourse may check out a compatibility-pinned ref (a `d-compat/YYYY.MM` branch or a `.discourse-compatibility` entry) rather than the requested branch. Previously this wasn't obvious in the UI. This commit surfaces the currently-running compatibility reference, and the compatibility reference of any pending update. <img width="650" height="293" alt="image" src="https://github.com/user-attachments/assets/11137fbd-e6e3-4786-8234-5799965d05c6" />
8 lines
243 B
Ruby
Vendored
8 lines
243 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
class AddCompatibilityRefsToRemoteThemes < ActiveRecord::Migration[8.0]
|
|
def change
|
|
add_column :remote_themes, :local_compat_ref, :string
|
|
add_column :remote_themes, :remote_compat_ref, :string
|
|
end
|
|
end
|