mirror of
https://github.com/usetrmnl/terminus.git
synced 2026-08-13 14:29:27 -07:00
Added migration for device proxy column
This will allow devices to be configured to proxy to Core if desired. Milestone: minor
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
ROM::SQL.migration do
|
||||
change { add_column :devices, :proxy, :boolean, null: false, default: false }
|
||||
end
|
||||
@@ -133,7 +133,8 @@ CREATE TABLE public.devices (
|
||||
height integer DEFAULT 0 NOT NULL,
|
||||
setup_at timestamp without time zone,
|
||||
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
|
||||
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
proxy boolean
|
||||
);
|
||||
|
||||
|
||||
@@ -228,4 +229,5 @@ SET search_path TO "$user", public;
|
||||
|
||||
INSERT INTO schema_migrations (filename) VALUES
|
||||
('20250305150912_create_devices.rb'),
|
||||
('20250324153748_create_device_logs.rb');
|
||||
('20250324153748_create_device_logs.rb'),
|
||||
('20250401150503_add_device_proxy_column.rb');
|
||||
|
||||
Reference in New Issue
Block a user