Files
stash/pkg/sqlite/migrations
2025-11-13 14:24:09 +11:00
..
2022-09-06 07:03:40 +00:00
2022-09-06 07:03:40 +00:00
2023-09-25 12:27:20 +10:00
2024-05-09 12:04:58 +10:00
2024-06-11 13:08:49 +10:00
2024-06-18 11:24:15 +10:00

Creating a migration

  1. Create new migration file in the migrations directory with the format NN_description.up.sql, where NN is the next sequential number.

  2. Update pkg/sqlite/database.go to update the appSchemaVersion value to the new migration number.

For migrations requiring complex logic or config file changes, see existing custom migrations for examples.