Skip to content

feat/database-integration#1

Merged
borisdvlpr merged 21 commits into
mainfrom
feat/database-migrations
May 4, 2026
Merged

feat/database-integration#1
borisdvlpr merged 21 commits into
mainfrom
feat/database-migrations

Conversation

@borisdvlpr

@borisdvlpr borisdvlpr commented Apr 29, 2026

Copy link
Copy Markdown
Owner

In this PR, the following changes were made:

  • Introduce new database schema migrations for environments, flags, variants, targeting rules and audit log tables
  • Add database migration support using golang-migrate and integrated it into the application startup flow
  • Implement a helper to run Postgres schema migrations programmatically
  • Create a db package with a NewConnectionPool function for managing database connections
  • Add configuration support for database connection properties
  • Replace lib/pq with pgx/stdlib to reduce dependencies and improve consistency with the connection pool
  • Fix middleware order to correctly capture request IDs in logs
  • Add a readiness endpoint in the health handler along with required setup
  • Minor improvements for consistency and performance

Drop the deprecated lib/pq dependency in favor of pgx/stdlib for
database migrations. Since pgx is already used for the connection pool,
this reduces the number of database drivers and overall binary size.
@borisdvlpr borisdvlpr merged commit 7c0e157 into main May 4, 2026
1 check passed
@borisdvlpr borisdvlpr deleted the feat/database-migrations branch May 4, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant