hoffentlich
This commit is contained in:
@@ -9,10 +9,10 @@ MIGRATIONS_DIR="./packages/shared/prisma/migrations"
|
||||
set -- "$MIGRATIONS_DIR"/*/migration.sql
|
||||
if [ -f "$1" ]; then
|
||||
echo "Applying Prisma migrations..."
|
||||
node_modules/.bin/prisma migrate deploy --schema=./packages/shared/prisma/schema.prisma
|
||||
npx prisma migrate deploy --schema=./packages/shared/prisma/schema.prisma
|
||||
else
|
||||
echo "No Prisma migrations found. Syncing schema with db push..."
|
||||
node_modules/.bin/prisma db push --skip-generate --schema=./packages/shared/prisma/schema.prisma
|
||||
npx prisma db push --skip-generate --schema=./packages/shared/prisma/schema.prisma
|
||||
fi
|
||||
|
||||
echo "Starting Next.js server..."
|
||||
|
||||
Reference in New Issue
Block a user