feat(api): upload file save db (#292)

This commit is contained in:
simontigers
2023-12-11 18:22:33 +08:00
committed by GitHub
parent f1350a2940
commit 379cabbfca
5 changed files with 89 additions and 8 deletions

View File

@@ -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()