Skip to content

Commit

Permalink
document SUPPORTED_SCHEMA_VERSIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
tgeoghegan committed Apr 19, 2023
1 parent 193eae1 commit cd259ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/DEPLOYING.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ This will generate two new migration scripts. Fill the `*.up.sql` file with the
migration you want to run and the `*.down.sql` file with a script that reverses
the first script.

After adding a migration, you must add its version number to
`datastore::SUPPORTED_SCHEMA_VERSIONS` as Janus will refuse to run if it does
not recognize the database schema version. You also must add a `#[case]`
attribute to `datastore::tests::schema_versions_template` so that the new
schema version will be used in unit tests.

[sqlx-cli]: https://crates.io/crates/sqlx-cli

## `janus_cli provision-tasks`
Expand Down

0 comments on commit cd259ca

Please sign in to comment.