mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 09:02:44 +08:00
feat(api): upload file save db (#292)
This commit is contained in:
@@ -299,3 +299,10 @@ def common_check_new_columns():
|
||||
except Exception as e:
|
||||
current_app.logger.error(f"add new column [{column.name}] in table [{table_name}] err:")
|
||||
current_app.logger.error(e)
|
||||
|
||||
|
||||
@click.command()
|
||||
@with_appcontext
|
||||
def common_sync_file_to_db():
|
||||
from api.lib.common_setting.upload_file import CommonFileCRUD
|
||||
CommonFileCRUD.sync_file_to_db()
|
||||
|
Reference in New Issue
Block a user