github.com/kyleu/dbaudit@v0.0.2-0.20240321155047-ff2f2c940496/doc/module/migration.md (about) 1 <!--- Content managed by Project Forge, see [projectforge.md] for details. --> 2 # Database Migration 3 4 This is a module for [Project Forge](https://projectforge.dev). It provides database migrations and a common PostgreSQL or SQLite database 5 6 https://github.com/kyleu/projectforge/tree/master/module/migration 7 8 ### License 9 10 Licensed under [CC0](https://creativecommons.org/publicdomain/zero/1.0) 11 12 ### Usage 13 14 - Provides database migrations through a CLI command (`migrate`) and a web UI 15 - To run the migrations on normal startup, add `migrate.Migrate` to `InitApp` 16 - Migrations are defined in `./queries` SQL files, and registered by calling `AddMigration`