Fixing ALTER TABLE errors with Flask-Migrate and SQLite

Fixing ALTER TABLE errors with Flask-Migrate and SQLite

Miguel Grinberg

3 года назад

4,290 Просмотров

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


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

@karacan2469
@karacan2469 - 12.11.2023 17:33

it is still useful after 3 years. Miguel you are my hero.

Ответить
@marcosantoni1366
@marcosantoni1366 - 20.10.2022 04:39

Many thanks!

Ответить
@mahdihoseyni3661
@mahdihoseyni3661 - 19.04.2022 15:53

ValueError: Constraint must have a name what is this error?

Ответить
@Qualidadetodososdias
@Qualidadetodososdias - 25.03.2022 07:48

Very good video, it helped me a lot. New subscriber.

Ответить
@aussieday9857
@aussieday9857 - 24.08.2021 15:55

Greatest tip

Ответить
@sopidf
@sopidf - 17.08.2021 16:16

It seems that this option this option render_as_batch=True needs to set a naming convention for constraints (e.g. metadata = MetaData(naming_convention=convention) and db = SQLAlchemy(app, metadata=metadata)) to avoid errors of the type ValueError: Constraint must have a name (for example when columns are defined with unique=True), right?

Ответить
@yusif4183
@yusif4183 - 20.01.2021 16:49

Amazing! Thank you very much.

Ответить
@1046sacm
@1046sacm - 02.09.2020 17:44

Excelent, thanks a lot. I see that you like to use flask, what do you think about to use flask vs django?

Ответить
@wduandy
@wduandy - 27.08.2020 07:51

Amazing! I had this problem days ago hahahaha

Ответить
@xXxXLoneWolf103XxXx
@xXxXLoneWolf103XxXx - 22.08.2020 21:59

Thanks so much. I was ready to give up on my project because of this and you made the process seem so simple. You've got a new subscriber!

Ответить
@linuxtubers7313
@linuxtubers7313 - 03.08.2020 21:41

How to create a global counter variable in flask which will be incremented in every request?

Ответить
@playgoods
@playgoods - 01.08.2020 12:34

many thanks

Ответить
@soling19
@soling19 - 31.07.2020 05:02

Thank you Miguel,I run into this during the microblog project and change the dev db to postgresql since this going to the "prod" version.. BTW, the flask mega tutorial is a wonderful course!

Ответить
@davewsmith7
@davewsmith7 - 31.07.2020 02:46

Thanks! And just in time to save a local project from having to migrate to MySQL

Ответить
@tabotkevin8116
@tabotkevin8116 - 31.07.2020 01:21

Very informative video.

Ответить