Комментарии:
Migrations do not work with .env file. Its a dealbreaker
ОтветитьCan I generate a migration "create table" files by passing some entities?
ОтветитьIt's kinda baffling how despite the numerous of JS frameworks there are out there, there still isn't an ORM with a powerful and simple migration system as Django does
ОтветитьHow do I make sure that typeorm never erases any of my data?
I lost about a day's work because of the synchronize feature and I'm scared of starting up my typeorm server again.
It's for how to alter table I am searching for how to create new tables.
ОтветитьYou just saved me a ton of stress Ben, thanks!
Ответитьbring back this ben awad
ОтветитьI don't understand how you initialize a database with the code first approach. I just can't find how to do this.
Ответитьcan TypeORM generate all the SQL statements that will eventually create all tables based on the models?
ОтветитьSuch a great feature. Thank you!
ОтветитьYou saved my life. I was stuck with docker and typeorm migrations for a job opporunity test, and the combination of your videos just saved me. Thank you very much
ОтветитьThe way create to migration is same like Django. I thinks this is the best approch to use ORMs. Thanks for the video.
ОтветитьThis was a really helpful tutorial. I'm getting an Error when I try to do a migration:generate, though. Any ideas why I'd be getting 'Error: getaddrinfo ENOTFOUND database database:5432 at GetAddrInfoReqWrap.onlookup [as oncomplete]'? Thanks!
ОтветитьI see it doesnt work for one to one relation?
ОтветитьHey what utility do you use for command tips
ОтветитьI rarely get stuck or look for video tutorials, but I was able to make Migrations work with NestJS thanks to your video. You've earned my subscription
ОтветитьGreat video... Although, I'm getting this error *Error during migration run {password authentication failed for user "<username>", routine: 'auth_failed"} . Can you please help me?
Ответитьdude you saved me like 3 hours of digging, I've been stuck on why my migration commands would throw `function(exports, require, __filename).... Thanks for this tut Ben
How did you figure this out?
Thank you for nice lecture video, Ben ! But I'm having a trouble with ormconfig.json, which I divide its name property into 'dev' & 'test'. In this case, if I run the command(`npx ts-node ./node_modules/.bin/typeorm migration:generate -n Test`), it goes ERROR ( Can't find connection default ). So i've tried add NODE_ENV=dev, but it didn't work. Is there anything I can do to solve this ?
Ответить