revert: 还原原来的jms,自动运行migraionts

pull/5183/head
ibuler 2020-12-07 19:11:32 +08:00 committed by Jiangjie.Bai
parent 43b5e97b95
commit 2a6f68c7ba
1 changed files with 5 additions and 4 deletions

9
jms
View File

@ -91,10 +91,10 @@ def check_migrations():
if code == 1:
return
for i in range(3):
print("!!! Warning: Has SQL migrations not perform, 有 SQL 变更没有执行")
print("You should run `./PROC upgrade_db` first, 请先运行 ./PROC upgrade_db, 进行表结构变更")
sys.exit(1)
# for i in range(3):
# print("!!! Warning: Has SQL migrations not perform, 有 SQL 变更没有执行")
# print("You should run `./PROC upgrade_db` first, 请先运行 ./PROC upgrade_db, 进行表结构变更")
# sys.exit(1)
def perform_db_migrate():
@ -115,6 +115,7 @@ def collect_static():
def prepare():
check_database_connection()
check_migrations()
upgrade_db()
def check_pid(pid):