Added migration for extension static body column rename

Necessary to clarify this column is for static bodies only now that this column isn't used for polling extensions as that information is now stored with the associated exchange(s).

_This is a breaking change that will be resolved in the next commit._

Milestone: minor
This commit is contained in:
Brooke Kuhlmann
2026-05-12 11:39:02 -06:00
parent 0eb184d8ea
commit 02fef2bfe7
2 changed files with 6 additions and 2 deletions
@@ -0,0 +1,3 @@
# frozen_string_literal: true
ROM::SQL.migration { change { rename_column :extension, :body, :static_body } }
+3 -2
View File
@@ -383,7 +383,7 @@ CREATE TABLE public.extension (
description text,
kind public.extension_kind_enum DEFAULT 'poll'::public.extension_kind_enum NOT NULL,
tags text[] DEFAULT '{}'::text[] NOT NULL,
body jsonb DEFAULT '{}'::jsonb NOT NULL,
static_body jsonb DEFAULT '{}'::jsonb CONSTRAINT extension_body_not_null NOT NULL,
fields jsonb DEFAULT '{}'::jsonb NOT NULL,
template text,
data jsonb DEFAULT '{}'::jsonb NOT NULL,
@@ -1672,4 +1672,5 @@ INSERT INTO schema_migrations (filename) VALUES
('20260421140616_remove_model_palette_names_column.rb'),
('20260508102145_add_device_synced_at_column.rb'),
('20260512100558_remove_device_proxy_column.rb'),
('20260512102800_remove_extension_poll_columns.rb');
('20260512102800_remove_extension_poll_columns.rb'),
('20260512110409_rename_extension_body_column.rb');