remove migrations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user