Похожие чаты

How should we update django migrations using deprecated code ??

10 ответов

14 просмотров

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

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

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

Добрый день. Хочу сделать отрисовку по команде на панели. Почему-то рисуется только при втором вызове. С чем может быть связано, не подскажете? procedure TForm1.FormDblClick(...
Kirill Filippenok
20
а зачем этот вопрос для удаления из чата?
Mёdkinson Medvezhkin
63
А почему в си некоторые вещи работают с двойными кавычками некоторые с одинарными? Нельзя было все сделать с одними или чтоб работало с разными? например чтоб выводить строки ...
.
15
using next image component with s3 image: "url" parameter is valid but upstream response is invalid code: <Image fill src={s...
Fasil
3
Всем привет! Нужен совет от опытных. Переношу свой проект с Делфи 10.2 Токио на Лазарус 3.2 установленный через инсталлятор fpcupdeluxe-x86_64-win64. При импортировании проект...
Дмитрий Завгородний
7
Всем привет! procedure TForm1.FormCreate(Sender: TObject); type TStartEnd = record S: Byte; E: Byte; end; var a, b: TStartEnd; begin {1} a.S := 1; {2} a.E := 2; ...
Руслан Михайлович
10
Всем привет!) я тут новенький и пытаюсь освоить evolution методом тыка. У меня при переходе между папками файлов выскакивают вот такие уведомления Можете подсказать как их от...
Диман Samoed
10
Эх кто-то пришел и весь праздник испортил :( You need complex FBX scene importing setup to change things on import? good luck with that. You need navigation and pathfinding? g...
Serg Gini
5
Friends, how can I find my Wazirx wallet address?
Silm Silm
31
Всем привет! Подскажите. Я написал приложение на Delphi 10.2 Tokyo под Windows 10. И передо мной стал вопрос о том чтобы сделать это приложение кроссплатформенным (под Linux и...
Дмитрий Завгородний
24
Карта сайта