refactor(automation): rename trigger config column to params

This commit is contained in:
CREDO23 2026-05-27 13:29:18 +02:00
parent a4fbfd8c0d
commit fe32cd35ed

View file

@ -86,7 +86,7 @@ def upgrade() -> None:
automation_id INTEGER NOT NULL automation_id INTEGER NOT NULL
REFERENCES automations(id) ON DELETE CASCADE, REFERENCES automations(id) ON DELETE CASCADE,
type automation_trigger_type NOT NULL, type automation_trigger_type NOT NULL,
config JSONB NOT NULL, params JSONB NOT NULL,
enabled BOOLEAN NOT NULL DEFAULT true, enabled BOOLEAN NOT NULL DEFAULT true,
last_fired_at TIMESTAMP WITH TIME ZONE, last_fired_at TIMESTAMP WITH TIME ZONE,
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()