Write migrations with Diesel

This commit is contained in:
2024-09-20 00:07:01 +02:00
parent 2f297a3557
commit 18bd7ce3ab
6 changed files with 71 additions and 0 deletions

9
snow-scanner/diesel.toml Normal file
View File

@ -0,0 +1,9 @@
# For documentation on how to configure this file,
# see https://diesel.rs/guides/configuring-diesel-cli
[print_schema]
file = "src/schema.rs"
custom_type_derives = ["diesel::query_builder::QueryId", "Clone"]
[migrations_directory]
dir = "/mnt/Dev/@wdes/security.wdes.eu/snow-scanner/migrations"