Logo
Explore Docs Blog Community Main Website Help
Sign In
serve.zone/nupst
3
0
Fork 0
You've already forked nupst
Code Issues Pull Requests Actions Packages Projects Releases 3 Wiki Activity
Files
8516056f84a852d10e59e4b459876ddb92c9e56e
nupst/ts/migrations/index.ts

11 lines
347 B
TypeScript
Raw Normal View History

feat(migrations): add migration system for v3→v4 config format - Create abstract BaseMigration class with order, shouldRun(), migrate() - Add MigrationRunner to execute migrations in order - Add Migration v1→v2 (snmp → upsDevices) - Add Migration v3→v4 (upsList → upsDevices) - Update INupstConfig with version field - Update loadConfig() to run migrations automatically - Update saveConfig() to ensure version field and remove legacy fields - Update Docker test scripts to use real UPS data from .nogit/env.json - Remove colors.bright (not available in @std/fmt/colors) Config migrations allow users to jump versions (e.g., v1→v4) with all intermediate migrations running automatically. Version field tracks config format for future migrations.
2025-10-19 20:41:09 +00:00
/**
* Configuration migrations module
*
* Exports the migration system for upgrading configs between versions.
*/
export { BaseMigration } from './base-migration.ts';
export { MigrationRunner } from './migration-runner.ts';
export { MigrationV1ToV2 } from './migration-v1-to-v2.ts';
export { MigrationV3ToV4 } from './migration-v3-to-v4.ts';
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 34ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API Legal Info/Impressum