diff --git a/.husky/pre-commit b/.husky/pre-commit index e4a3a56..efe28c5 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -3,6 +3,11 @@ npx --no -- lint-staged +# Generate migration files pnpm generate + +# Remove references to the schema "public" from migration SQL files sed -i "s/\"public\"\.//g" src/lib/db/migrations/*.sql + +# Add the changed migration files git add src/lib/db/migrations/