'TypeORM migration run command is not working properly
I am trying to create my tables using TypeORM migrations. I am able to generate the migration script but when i am trying to run the migration script it is not generating the required tables.
My package.json scripts property looks like this:-
"scripts": {
"typeorm": "ts-node -transpile-only node_modules/typeorm/cli.js",
"migration:generate": "typeorm migration:generate -n",
"migration:run": "typeorm migration:run"
}
To generate I am using this command :-
npm run migration:generate testmigrate
To run I am using this command :-
npm run migration:run
The above run command also works but it is just creating migrations table and typeorm-metadata table. It is not creating the entities although entities path are properly defined.
Need help on this.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
