L
Size: a a a
L
АП
L
L
Then each time the database models change repeat the migrate and upgrade commands.
To sync the database in another system just refresh the migrations folder from source control and run the upgrade command.
To see all the commands that are available run this command:
AM
Then each time the database models change repeat the migrate and upgrade commands.
To sync the database in another system just refresh the migrations folder from source control and run the upgrade command.
To see all the commands that are available run this command:
L
AM
manager.py db init
manager.py db migrate
alembic_version
my_table
manager.py db upgrade
(MySQLdb._exceptions.OperationalError) (1050, "Table 'alembic_version' already exists»)
manager = Manager(app)должны быть последними командами перед запуском у тебя какой-то беспорядок с этим
manager.add_command('db', MigrateCommand)
L
АП
L
ПП
ПП
ST
ПП
ST
ПП
ST
<div class="fadeOut"></div>
ST
ST
ПП