Skip to content

Commit

Permalink
transform migrations to sequential naming before applying migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
juancwu committed Nov 15, 2024
1 parent 620b388 commit fcf1334
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/scripts/deploy-preview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ else
fi

# Database migrations
echo "Fix migrations from timestampd to sequential"
goose fix -dir .sqlc/migrations
echo "Run migrations"
goose -dir .sqlc/migrations postgres \
"postgres://$DB_USER:$DB_PASSWORD@$DB_HOST:$DB_PORT/$DB_NAME?sslmode=$DB_SSLMODE" up
Expand Down

0 comments on commit fcf1334

Please sign in to comment.