V0.2.1 #5

Merged
umpire274 merged 3 commits from v0.2.1 into main 2025-10-13 22:25:18 +02:00
umpire274 commented 2025-10-13 19:00:08 +02:00 (Migrated from github.com)

[v0.2.1] - 2025-10-13

Added

  • Database migrations: introduced db/migrate.rs with incremental patch system and automatic execution at startup.
  • Configuration migrations: added config/migrate.rs to automatically upgrade YAML configuration files.
  • Logging system: new utils::write_log() function records database and migration events into the log table.
  • Verbose mode: added global --verbose flag for diagnostic and debug output.
    • Normal mode: silent operation, only command results shown.
    • Verbose mode: shows configuration loading, database opening, and migration messages.
  • db::start_db(): unified entry point that handles opening, creating, and migrating the database automatically.
  • Timestamp utility: new utils::now_str() returns ISO 8601 formatted timestamps (%+).

Changed

  • Initialization messages are now hidden in normal mode.
  • main.rs simplified: initialization logic moved into db::start_db().
  • print_info() and print_ok() now depend on verbose mode.

Fixed

  • Prevented redundant database initialization messages on repeated launches.
  • Ensured migrations and configuration updates are idempotent and silent if up-to-date.
## [v0.2.1] - 2025-10-13 ### Added - **Database migrations**: introduced `db/migrate.rs` with incremental patch system and automatic execution at startup. - **Configuration migrations**: added `config/migrate.rs` to automatically upgrade YAML configuration files. - **Logging system**: new `utils::write_log()` function records database and migration events into the `log` table. - **Verbose mode**: added global `--verbose` flag for diagnostic and debug output. - Normal mode: silent operation, only command results shown. - Verbose mode: shows configuration loading, database opening, and migration messages. - **`db::start_db()`**: unified entry point that handles opening, creating, and migrating the database automatically. - **Timestamp utility**: new `utils::now_str()` returns ISO 8601 formatted timestamps (`%+`). ### Changed - Initialization messages are now hidden in normal mode. - `main.rs` simplified: initialization logic moved into `db::start_db()`. - `print_info()` and `print_ok()` now depend on verbose mode. ### Fixed - Prevented redundant database initialization messages on repeated launches. - Ensured migrations and configuration updates are idempotent and silent if up-to-date.
Sign in to join this conversation.
No description provided.