definewater
HOBBY
a year ago
Hello everyone i have been trying for ours trying to get my typeorm mirgrations to run it has access to the database because it created a "migrations" table BUT it wont go in and generate the nessecary migrations and apply them sadly. and i get no error!
there are my scripts
"scripts": {
"start": "sleep 3 && tsc && pnpm run sync && pnpm run migrate:run && node ./build/index.js",
"sync": "pnpm typeorm migration:generate /app/build/migration/Init -o -d /app/build/data-source.js",
"migrate:run": "pnpm typeorm migration:run -d /app/build/data-source.js",
"typeorm": "npx typeorm-ts-node-commonjs"
},
0 Replies
a year ago
does the app ever actually start? since you chain the commands with &&
a year ago
does typeorm have a debug mode or something, because without error messages I'm honestly not sure what I could do for you since I don't have any ideas at the moment
a year ago
no problem!
a year ago
thank you very much, I appreciate it!
a year ago
only mods/admins can do that