R
R
RandomProgrammer2022-02-25 15:52:20
Flask
RandomProgrammer, 2022-02-25 15:52:20

How to do a database migration?

I have read this article. I made a User class, and now I want to make a migration. There is a command there: (venv) $ flask db migrate -m "users table". But she doesn't work. As I understand it, you need to run from a virtual environment, I created it. But how to run from this environment now? Sorry if this is a dumb question, I'm not familiar with virtual environments.

PS I figured out how to enter the virtual environment, but this command does not work even from there.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RandomProgrammer, 2022-02-25
@RandomProgrammer

Well, I sort of figured it out, apparently I had a different version of python in my IDE.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question