diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eb17abf..abd6aa1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -44,6 +44,12 @@ repos: language: system types: [nix] exclude: extra + - id: sqlx + name: SQLX Database up-to-date + entry: sqlx migrate run --database-url "sqlite://./opsqueue/opsqueue_example_database_schema.db" --source ./migrations + language: system + files: ^(migrations|opsqueue/migrations)/.*\.sql$ + pass_filenames: false - id: sqlx-test-needs-migrator name: Require `#[sqlx::test(migrator = "crate::MIGRATOR")]` for test-build speed entry: '#\[sqlx::test\]' diff --git a/opsqueue/opsqueue_example_database_schema.db b/opsqueue/opsqueue_example_database_schema.db index ae49303..83e0994 100644 Binary files a/opsqueue/opsqueue_example_database_schema.db and b/opsqueue/opsqueue_example_database_schema.db differ