This commit is contained in:
MaKarin
2026-04-06 12:50:46 +03:00
commit 73ddb1a948
155 changed files with 26688 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/sh
set -eu
npx prisma generate
if [ -d prisma/migrations ] && [ "$(find prisma/migrations -mindepth 1 -maxdepth 1 -type d | wc -l | tr -d ' ')" -gt 0 ]; then
npx prisma migrate deploy
else
npx prisma db push
fi
exec "$@"