[chore] fix setup.sh for migrateup task
This commit is contained in:
parent
4f422db1a0
commit
6266b93cf1
1 changed files with 2 additions and 1 deletions
3
setup.sh
3
setup.sh
|
|
@ -26,7 +26,7 @@ wait_for_postgres() {
|
|||
echo -e "${BLUE}→ Waiting for PostgreSQL to be ready...${NC}"
|
||||
local max_attempts=30
|
||||
local attempt=0
|
||||
|
||||
|
||||
cd "$BACKEND_DIR"
|
||||
|
||||
while [ $attempt -lt $max_attempts ]; do
|
||||
|
|
@ -97,6 +97,7 @@ echo ""
|
|||
|
||||
# Phase 3: Run Database Migrations
|
||||
echo -e "${BLUE}🗄️ Phase 3: Running Database Migrations${NC}"
|
||||
cd "$BACKEND_DIR"
|
||||
make migrateup
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue