diff --git a/scripts/update-schema.sh b/scripts/update-schema.sh new file mode 100755 index 0000000..f22c84a --- /dev/null +++ b/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