pict-rs/scripts/update-schema.sh
2023-09-03 22:02:33 -05:00

8 lines
204 B
Bash
Executable file

#!/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