discourse/db/migrate/20260608104742_add_compatibility_refs_to_remote_themes.rb
David Taylor 45d9ae88e7
FEATURE: Show theme d-compat/* refs in admin UI (#40649)
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"
/>
2026-06-17 22:13:45 +01:00

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