File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,6 @@ until pg_isready -h postgres -U postgres -d indexer_components_1; do
1919 sleep 2
2020done
2121
22- # echo "Applying database migrations..."
23- # # Get all the migration UP files and sort them by name
24- # for migration_file in $(find /opt/migrations -name "*.up.sql" | sort); do
25- # echo "Applying migration: $(basename $migration_file)"
26- # psql -h postgres -U postgres postgres -f $migration_file
27- # done
28- echo " Database migrations completed."
29-
3022# Get network subgraph deployment ID
3123NETWORK_DEPLOYMENT=$( curl -s " http://graph-node:8000/subgraphs/name/graph-network" \
3224 -H ' content-type: application/json' \
Original file line number Diff line number Diff line change 2828
2929echo " Postgres is ready!"
3030
31- # echo "Ensuring database tables exist..."
32- # for migration_file in $(find /opt/migrations -name "*.up.sql" | sort); do
33- # echo "Applying migration if needed: $(basename $migration_file)"
34- # psql -h postgres -U postgres indexer_components_1 -f $migration_file 2>/dev/null || true
35- # done
36- echo " Database setup completed."
37-
3831# Wait for indexer-service to be ready with timeout
3932echo " Waiting for indexer-service to be ready..."
4033MAX_ATTEMPTS=30
You can’t perform that action at this time.
0 commit comments