Files
Havline/migrations/012_proxy_name_sort.sql
T

8 lines
253 B
SQL
Raw Normal View History

2026-09-23 09:40:59 +08:00
ALTER TABLE proxy_rules RENAME COLUMN remark TO name;
ALTER TABLE proxy_rules ADD COLUMN sort_order INTEGER NOT NULL DEFAULT 0;
UPDATE proxy_rules SET sort_order = id;
CREATE INDEX IF NOT EXISTS idx_proxy_rules_sort_order ON proxy_rules(sort_order);