Add script for updating diesel schema

pull/39/head
asonix 6 months ago
parent 00aa00c55c
commit ac9777782a
  1. 7
      scripts/update-schema.sh

@ -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…
Cancel
Save