disable depricated migratecommand
This commit is contained in:
parent
71f7f2c7de
commit
b559ea4c9f
2 changed files with 6 additions and 6 deletions
|
@ -11,6 +11,8 @@ services:
|
|||
- "./lb:/usr/local/etc/haproxy"
|
||||
depends_on:
|
||||
- "certbot"
|
||||
- "flask"
|
||||
- "osmtile"
|
||||
restart: always
|
||||
networks:
|
||||
- internal
|
||||
|
|
|
@ -1,18 +1,16 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import subprocess, shlex
|
||||
from forest import app, db, User
|
||||
|
||||
from flask.cli import FlaskGroup
|
||||
from forest import app, db, User
|
||||
|
||||
from flask_migrate import Migrate
|
||||
from flask_migrate import MigrateCommand
|
||||
|
||||
cli = FlaskGroup(app)
|
||||
migrate = Migrate(app, db)
|
||||
|
||||
cli.add_command('db', MigrateCommand)
|
||||
|
||||
migrate = Migrate()
|
||||
migrate.init_app(app, db)
|
||||
|
||||
@cli.command("create_db")
|
||||
def create_db():
|
||||
|
|
Loading…
Reference in a new issue