-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: throw if accessing databaseVersion before it is loaded (#15346)
* feat: throw error if databaseVersion is called early * feat: implemented getDatabaseVersion for getting the internally fetched database version * tests: updated tests for sequelize.js * fix: typings for connection manager test * docs: updated function with jsdocs * feat: request for version for sqlite * fix: updated context for postgres specific unit tests * fix: explicitly specify databaseVersion for postgres in createTable * feat: databaseVersion defaults to minimum version for tests for all dialects * refactor: removed the explicit assignment to db version * refactor: revert and use comparision op for null check * refactor: remove fetchVersion from sqlite connection manager * chore: review changes * feat: replaced internal database version calls with updated function * fix: fix sqlite _connect implementation * fix: linting issues * fix: updated the message that is thrown * chore: review changes
- Loading branch information
Showing
8 changed files
with
69 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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