Upgrade to PayBridge v2¶
PayBridge v2 requires .NET 10 and Entity Framework Core 10. Upgrade the SDK, runtime and container images before deploying. Applications that still target .NET 8 must retarget before installing the v2 package.
Database providers¶
The project uses matching EF Core 10 packages for SQL Server and SQLite, and
compatible EF Core 10 providers for PostgreSQL and MySQL. The MySql setting
now uses Oracle MySQL Connector/NET and requires MySQL Server 8.0 or later.
Review MySQL connection-string options with the
Connector/NET connection options.
MariaDB deployments should stay on their existing PayBridge version while
provider compatibility is evaluated.
Deployment and rollback¶
- Take a database backup and record the deployed application version.
- Restore a copy of the database in staging. Verify SDK registration and representative create, verify and refund flows with test data.
- Verify any pending migrations against that database provider before applying them. The repository's migration history is authored for SQL Server. Use a separately reviewed migration set for other databases.
- Deploy the v2 application and run the same smoke checks against the deployment. The runtime upgrade itself introduces no schema migration.
- If the checks fail, redeploy the previous application image. If you also applied a migration, use its approved rollback procedure or restore the backup as appropriate.
Use EF Core 10 tooling for design-time commands:
dotnet tool install --global dotnet-ef --version 10.0.15