Files
stash/pkg/sqlite/migrations
WithoutPants 7db394bbea Date precision (#6359)
* Remove month/year only formats from ParseDateStringAsTime
* Add precision field to Date and handle parsing year/month-only dates
* Add date precision columns for date columns
* Adjust UI to account for fuzzy dates
2025-12-08 09:11:40 +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.