mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-27 20:11:16 +00:00
Add script for updating diesel schema
This commit is contained in:
parent
00aa00c55c
commit
ac9777782a
1 changed files with 7 additions and 0 deletions
7
scripts/update-schema.sh
Executable file
7
scripts/update-schema.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
diesel \
|
||||
--database-url 'postgres://pictrs:1234@localhost:5432/pictrs' \
|
||||
print-schema \
|
||||
--custom-type-derives "diesel::query_builder::QueryId" \
|
||||
> src/repo/postgres/schema.rs
|
Loading…
Reference in a new issue