refactor(persistence): eliminar SQL Server del código — PostgreSQL único (fase 2)#13
Merged
Merged
Conversation
…co provider relacional Fase 2 (código). Los `SqlServer*Repository` eran (mal nombrados) los repos relacionales que usaba Postgres; existía en paralelo un set `PostgreSql*Repository` equivalente (verificado idéntico salvo un comentario) pero NO registrado. Se activa el set correcto y se elimina SQL Server: - DependencyInjection.cs: registra los `PostgreSql*Repository`; eliminada la rama `UseSqlServer` del DbContext (pipeline "ums-sql"), el health check `AddSqlServer`, y las cláusulas `Provider == SqlServer` de todas las condiciones. - Borrados: 20 `SqlServer*Repository.cs`, `SqlServerSchemaBootstrapper`, `SqlServerDistributedLockProvider`, 12 migraciones `.sql` de SQL Server. - `UmsApiServiceBootstrappers`: init de plataforma usa PostgreSql bootstrapper/lock. - Enums: quitado `PersistenceProvider.SqlServer` y `AggregateStoreMode.SqlServer`. - `PersistenceOptions`: default provider PostgreSql; removidas las props `UseSqlServer*Stores`. `PersistenceRuntimeReporter` reescrito a PostgreSQL. - appsettings (Dev/UAT) y ContractTest: removidos flags `UseSqlServer*`. - csproj: removidos paquetes EFCore.SqlServer y HealthChecks.SqlServer. Código/config 100% libres de SQL Server (quedan solo docs de política que lo prohíben y ADRs históricos, intencionales). Validado: build 0 errores; Application.Test 608/608; Domain.Test 717/717. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fase 2 de la eliminación de SQL Server (tras la #12 de despliegue). Elimina SQL Server del código .NET, dejando PostgreSQL como único provider relacional.
Hallazgo clave
Los
SqlServer*Repositoryestaban activos y eran los repos relacionales que usaba Postgres (mal nombrados). Existía en paralelo un setPostgreSql*Repositoryequivalente (verificado idéntico salvo un comentario) pero no registrado (rename incompleto). Se activa el set correcto y se borra SQL Server — sin cambio de comportamiento.Cambios
PostgreSql*Repository; elimina la ramaUseSqlServerdel DbContext, el pipelineums-sql, el health checkAddSqlServer, y las cláusulasProvider == SqlServer.SqlServer*Repository,SqlServerSchemaBootstrapper,SqlServerDistributedLockProvider, 12 migraciones.sql.PersistenceProvider.SqlServeryAggregateStoreMode.SqlServer.UseSqlServer*. Reporter reescrito.UseSqlServer*. csproj: sin paquetes EFCore.SqlServer/HealthChecks.SqlServer.Código/config 100% libres de SQL Server (quedan solo docs de política que lo prohíben y ADRs históricos — intencionales).
Validación
build 0 errores;
Ums.Application.Test608/608;Ums.Domain.Test717/717.🤖 Generated with Claude Code