mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-29 19:23:38 +01:00
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
lnbits
@ -6,7 +6,7 @@ from flask_cors import CORS # type: ignore
|
||||
from flask_talisman import Talisman # type: ignore
|
||||
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||
|
||||
from .commands import legacy_migrate
|
||||
from .commands import flask_migrate
|
||||
from .core import core_app
|
||||
from .ext import assets, compress
|
||||
from .helpers import get_valid_extensions
|
||||
@ -42,7 +42,7 @@ def register_blueprints(app) -> None:
|
||||
|
||||
def register_commands(app):
|
||||
"""Register Click commands."""
|
||||
app.cli.add_command(legacy_migrate)
|
||||
app.cli.add_command(flask_migrate)
|
||||
|
||||
|
||||
def register_flask_extensions(app):
|
||||
|
@ -9,7 +9,7 @@ from .helpers import get_valid_extensions
|
||||
|
||||
|
||||
@click.command("migrate")
|
||||
def legacy_migrate():
|
||||
def flask_migrate():
|
||||
migrate_databases()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user