add command cmdb-index-table-upgrade

This commit is contained in:
pycook
2023-07-25 10:31:30 +08:00
parent c196c75985
commit 5d299bd71a
5 changed files with 84 additions and 34 deletions

View File

@@ -5,6 +5,9 @@ from flask.cli import with_appcontext
@click.command()
@with_appcontext
def init_acl():
"""
acl init
"""
from api.models.acl import Role
from api.models.acl import App
from api.tasks.acl import role_rebuild