Files
mikrotik-backup/migrations/004_routeros_default_credentials.sql
T
2026-10-28 14:55:35 +01:00

7 lines
417 B
SQL

-- Automatic migration from the 0.0.1 Rust schema (schema v1) to 0.0.2 (schema v2).
-- The application applies the equivalent steps transactionally at startup.
ALTER TABLE global_settings ADD COLUMN default_routeros_username TEXT;
ALTER TABLE global_settings ADD COLUMN default_routeros_password TEXT;
UPDATE schema_info SET schema_version = 2
WHERE id = 1 AND application = 'mikrotik-backup' AND schema_version = 1;