You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call getPendingMigrations I expect it would check if migrations table exists and compare it's content with my migrations folder to tell me, which migrations are not executed yet. If the table does not exist, it should return all of the migrations as pending.
Actual Behavior
getPendingMigrations does create the migrations table instead of checking if it exists before reading it.
Steps to reproduce
Run getPendingMigrations on the empty database:
const migrationExecutor = new MigrationExecutor(dataSource);
await migrationExecutor.getPendingMigrations();
My Environment
Dependency
Version
Operating System
Node.js version
20
Typescript version
5.3.3
TypeORM version
0.3.19
Additional Context
No response
Relevant Database Driver(s)
aurora-mysql
aurora-postgres
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
spanner
sqlite
sqlite-abstract
sqljs
sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
Yes, I have the time, and I know how to start.
The text was updated successfully, but these errors were encountered:
Issue description
The getPendingMigrations creates migrations table
Expected Behavior
When I call
getPendingMigrations
I expect it would check if migrations table exists and compare it's content with my migrations folder to tell me, which migrations are not executed yet. If the table does not exist, it should return all of the migrations as pending.Actual Behavior
getPendingMigrations
does create themigrations
table instead of checking if it exists before reading it.Steps to reproduce
Run
getPendingMigrations
on the empty database:My Environment
Additional Context
No response
Relevant Database Driver(s)
Are you willing to resolve this issue by submitting a Pull Request?
Yes, I have the time, and I know how to start.
The text was updated successfully, but these errors were encountered: