Conversation
- Replace removed driver query methods (execute, getScalar, getIterator) with the new DatabaseExecutor API - Add getExecutor() to Migration, DatabaseInterface and AbstractDatabase - Rename getDbDriverWithoutDatabase() to getExecutorWithoutDatabase() - Update PgsqlDatabase::createDatabaseIfNotExists() to receive DatabaseExecutor - Upgrade PHPUnit to ^12.5 - Pin SQL Server image to 2022-latest and use MSSQL_SA_PASSWORD - Add CHANGELOG-6.0.md and CHANGELOG-7.0.md - Document getExecutor() in the API reference
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.
Overview
Upgrades the library to
byjg/anydataset-db7.0 and bumps the migration version to 7.0, aligning it with the anydataset-db major version.Changes
execute,getScalar,getIterator) with the newDatabaseExecutorAPIgetExecutor(): DatabaseExecutortoMigration,DatabaseInterface, andAbstractDatabasegetDbDriverWithoutDatabase()togetExecutorWithoutDatabase()(now returnsDatabaseExecutor)PgsqlDatabase::createDatabaseIfNotExists()to receive aDatabaseExecutor^12.52022-latestand useMSSQL_SA_PASSWORDin docker-composeCHANGELOG-6.0.md(released 6.0) andCHANGELOG-7.0.mdwith the full upgrade pathgetExecutor()in the API referenceBreaking Changes
$migration->getDbDriver()must switch to$migration->getExecutor()(transactions stay on the driver)DatabaseInterfaceimplementations must addgetExecutor()(inherited when extendingAbstractDatabase)See
CHANGELOG-7.0.mdfor the detailed upgrade path.Testing