Typeorm Migrations

Typeorm Migrations

Ben Awad

6 лет назад

40,295 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Milan
Milan - 12.11.2022 21:01

Migrations do not work with .env file. Its a dealbreaker

Ответить
Đạt Trần Mạnh
Đạt Trần Mạnh - 10.12.2021 20:34

Can I generate a migration "create table" files by passing some entities?

Ответить
Spimy
Spimy - 24.10.2021 14:50

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

Ответить
BioAbner
BioAbner - 28.07.2021 04:34

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.

Ответить
Fai Wi
Fai Wi - 07.07.2021 20:04

It's for how to alter table I am searching for how to create new tables.

Ответить
Bolarinwa Owuogba
Bolarinwa Owuogba - 27.06.2021 23:05

You just saved me a ton of stress Ben, thanks!

Ответить
Salem Ouail
Salem Ouail - 22.02.2021 22:12

bring back this ben awad

Ответить
LethiuxX
LethiuxX - 15.01.2021 13:08

I don't understand how you initialize a database with the code first approach. I just can't find how to do this.

Ответить
Jonas Grøndahl
Jonas Grøndahl - 28.10.2020 15:38

can TypeORM generate all the SQL statements that will eventually create all tables based on the models?

Ответить
Dawid Dahl
Dawid Dahl - 04.10.2020 17:22

Such a great feature. Thank you!

Ответить
Lucas Harca
Lucas Harca - 17.09.2020 08:36

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

Ответить
Rıdvan Altun
Rıdvan Altun - 04.07.2020 02:43

The way create to migration is same like Django. I thinks this is the best approch to use ORMs. Thanks for the video.

Ответить
Noah Bartfield
Noah Bartfield - 24.03.2020 17:39

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!

Ответить
Raaghu
Raaghu - 07.10.2019 17:31

I see it doesnt work for one to one relation?

Ответить
GraxS
GraxS - 02.09.2019 16:55

Hey what utility do you use for command tips

Ответить
Manuel Azar
Manuel Azar - 01.08.2019 17:56

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

Ответить
Vladimir Jean
Vladimir Jean - 20.07.2019 17:13

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?

Ответить
Leo Kwan
Leo Kwan - 05.12.2018 04:57

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?

Ответить
user
user - 18.05.2018 05:31

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 ?

Ответить