- Migration 0035: note TEXT + labels TEXT[] für firewall_rules + nat_rules - PATCH /firewall/rules/:id + /nat-rules/:id für note/labels Updates - InlineNote: gold Tag mit MessageOutlined, Klick zum Bearbeiten (Enter/Blur speichert) - InlineLabels: geekblue Tags mit X-Button zum Entfernen, "+" zum Hinzufügen - Name-Spalte: Name + Labels + Note in Zeile 1, comment/auto-desc in Zeile 2 - Gleiche UX für NAT-Regeln Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
495 B
SQL
18 lines
495 B
SQL
-- +goose Up
|
|
ALTER TABLE firewall_rules
|
|
ADD COLUMN IF NOT EXISTS note TEXT,
|
|
ADD COLUMN IF NOT EXISTS labels TEXT[] NOT NULL DEFAULT '{}';
|
|
|
|
ALTER TABLE firewall_nat_rules
|
|
ADD COLUMN IF NOT EXISTS note TEXT,
|
|
ADD COLUMN IF NOT EXISTS labels TEXT[] NOT NULL DEFAULT '{}';
|
|
|
|
-- +goose Down
|
|
ALTER TABLE firewall_rules
|
|
DROP COLUMN IF EXISTS note,
|
|
DROP COLUMN IF EXISTS labels;
|
|
|
|
ALTER TABLE firewall_nat_rules
|
|
DROP COLUMN IF EXISTS note,
|
|
DROP COLUMN IF EXISTS labels;
|