diff --git a/myapp/check_tables.py b/myapp/check_tables.py index 6dbd5364..7177145e 100755 --- a/myapp/check_tables.py +++ b/myapp/check_tables.py @@ -22,7 +22,7 @@ def check_tables(): print(results) for table_name in ['ab_permission', 'ab_permission_view', 'ab_permission_view_role', 'ab_register_user', 'ab_role', 'ab_user', 'ab_user_role', 'ab_view_menu', 'alembic_version', 'docker', 'images', 'inferenceservice', 'job_template', 'kfservice', 'logs', 'nni', 'notebook', 'pipeline', 'project', 'project_user', 'repository', 'run', 'service', 'service_pipeline', 'task', 'user_attribute', 'workflow']: if table_name not in results: - print('kubeflow db下,table不完整,请\n1、kubectl delete -k cube/overlays\n2、drop database kubeflow\n3、kubectl apply -k cube/overlays') + print('kubeflow db下,table %s不完整,请\n1、kubectl delete -k cube/overlays\n2、drop database kubeflow\n3、kubectl apply -k cube/overlays'%table_name) exit(1) check_tables()