mirror of
https://github.com/stashapp/stash.git
synced 2026-03-08 06:01:49 +01:00
Creating a migration
-
Create new migration file in the migrations directory with the format
NN_description.up.sql, whereNNis the next sequential number. -
Update
pkg/sqlite/database.goto update theappSchemaVersionvalue to the new migration number.
For migrations requiring complex logic or config file changes, see existing custom migrations for examples.