diff --git a/backend/v3/storage/database/dialect/postgres/migration/migrationgs.go b/backend/v3/storage/database/dialect/postgres/migration/migrations.go similarity index 100% rename from backend/v3/storage/database/dialect/postgres/migration/migrationgs.go rename to backend/v3/storage/database/dialect/postgres/migration/migrations.go diff --git a/backend/v3/storage/database/dialect/postgres/migration/migrationgs_test.go b/backend/v3/storage/database/dialect/postgres/migration/migrations_test.go similarity index 100% rename from backend/v3/storage/database/dialect/postgres/migration/migrationgs_test.go rename to backend/v3/storage/database/dialect/postgres/migration/migrations_test.go diff --git a/backend/v3/storage/database/dialect/postgres/pool.go b/backend/v3/storage/database/dialect/postgres/pool.go index 275be54e11e..25a2caa39e3 100644 --- a/backend/v3/storage/database/dialect/postgres/pool.go +++ b/backend/v3/storage/database/dialect/postgres/pool.go @@ -86,6 +86,7 @@ func (p *pgxPool) Migrate(ctx context.Context) error { if err != nil { return err } + defer client.Release() err = migration.Migrate(ctx, client.Conn()) isMigrated = err == nil @@ -98,6 +99,7 @@ func (p *pgxPool) MigrateTest(ctx context.Context) error { if err != nil { return err } + defer client.Release() err = migration.Migrate(ctx, client.Conn()) isMigrated = err == nil