Похожие чаты

How should we update django migrations using deprecated code ??

10 ответов

31 просмотр

what do you mean by "using deprecated code"?

Fan / Ac- Автор вопроса
Charly Román
what do you mean by "using deprecated code"?

I mean migration files which has deprecated code or something that is removed on new version

Fan / Ac
I mean migration files which has deprecated code o...

Ohh not realy, you can squash old migrations instead

Fan / Ac- Автор вопроса
Charly Román
Ohh not realy, you can squash old migrations inste...

I see, that should be what I should do instead of manually updating migration files that are auto generated right ??

Fan / Ac- Автор вопроса
Charly Román
i think is easier to mantain

should I squash all migrations to one

Fan / Ac
should I squash all migrations to one

yes, unless you know some of them have not been applied on production (or any environment other than your local)

Fan / Ac- Автор вопроса
Charly Román
yes, unless you know some of them have not been ap...

I think I should go yo old version, squash migrations and come to new versions as its throwing error as some codes in migrations doesnt exist on django 5

Fan / Ac
I think I should go yo old version, squash migrati...

but you just need to update one migration file

Fan / Ac- Автор вопроса
Charly Román
but you just need to update one migration file

in this case yes, I was saying that in general case where we need to change multiple files

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта