chore: let's just call it flask_migrate
I think it should stay, because it can come handy for some deployment methods.
This commit is contained in:
parent
1bc5e144d3
commit
d62031b068
2 changed files with 3 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ from flask_cors import CORS # type: ignore
|
||||||
from flask_talisman import Talisman # type: ignore
|
from flask_talisman import Talisman # type: ignore
|
||||||
from werkzeug.middleware.proxy_fix import ProxyFix
|
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||||
|
|
||||||
from .commands import legacy_migrate
|
from .commands import flask_migrate
|
||||||
from .core import core_app
|
from .core import core_app
|
||||||
from .ext import assets, compress
|
from .ext import assets, compress
|
||||||
from .helpers import get_valid_extensions
|
from .helpers import get_valid_extensions
|
||||||
|
|
@ -42,7 +42,7 @@ def register_blueprints(app) -> None:
|
||||||
|
|
||||||
def register_commands(app):
|
def register_commands(app):
|
||||||
"""Register Click commands."""
|
"""Register Click commands."""
|
||||||
app.cli.add_command(legacy_migrate)
|
app.cli.add_command(flask_migrate)
|
||||||
|
|
||||||
|
|
||||||
def register_flask_extensions(app):
|
def register_flask_extensions(app):
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ from .helpers import get_valid_extensions
|
||||||
|
|
||||||
|
|
||||||
@click.command("migrate")
|
@click.command("migrate")
|
||||||
def legacy_migrate():
|
def flask_migrate():
|
||||||
migrate_databases()
|
migrate_databases()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue