remove migrations

This commit is contained in:
2026-04-11 21:57:48 -05:00
parent 2f94039f02
commit 1de1c9dcde

View File

@@ -43,14 +43,14 @@ run_with_retries() {
}
# Prefer migration-based deploys. Fall back to db push when no migrations exist yet.
set -- "$MIGRATIONS_DIR"/*/migration.sql
if [ -f "$1" ]; then
echo "Applying Prisma migrations..."
run_with_retries npx prisma migrate deploy --schema=./packages/shared/prisma/schema.prisma
else
echo "No Prisma migrations found. Syncing schema with db push..."
run_with_retries npx prisma db push --skip-generate --schema=./packages/shared/prisma/schema.prisma
fi
# set -- "$MIGRATIONS_DIR"/*/migration.sql
# if [ -f "$1" ]; then
# echo "Applying Prisma migrations..."
# run_with_retries npx prisma migrate deploy --schema=./packages/shared/prisma/schema.prisma
# else
# echo "No Prisma migrations found. Syncing schema with db push..."
# run_with_retries npx prisma db push --skip-generate --schema=./packages/shared/prisma/schema.prisma
# fi
echo "Starting Next.js server..."
exec node apps/admin/server.js