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.
|
# Prefer migration-based deploys. Fall back to db push when no migrations exist yet.
|
||||||
set -- "$MIGRATIONS_DIR"/*/migration.sql
|
# set -- "$MIGRATIONS_DIR"/*/migration.sql
|
||||||
if [ -f "$1" ]; then
|
# if [ -f "$1" ]; then
|
||||||
echo "Applying Prisma migrations..."
|
# echo "Applying Prisma migrations..."
|
||||||
run_with_retries npx prisma migrate deploy --schema=./packages/shared/prisma/schema.prisma
|
# run_with_retries npx prisma migrate deploy --schema=./packages/shared/prisma/schema.prisma
|
||||||
else
|
# else
|
||||||
echo "No Prisma migrations found. Syncing schema with db push..."
|
# 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
|
# run_with_retries npx prisma db push --skip-generate --schema=./packages/shared/prisma/schema.prisma
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
echo "Starting Next.js server..."
|
echo "Starting Next.js server..."
|
||||||
exec node apps/admin/server.js
|
exec node apps/admin/server.js
|
||||||
|
|||||||
Reference in New Issue
Block a user