[Update] 修改Jms脚本

pull/2284/head
ibuler 2018-12-26 19:20:32 +08:00
parent 340c615efe
commit c5d1ed126e
1 changed files with 0 additions and 3 deletions

3
jms
View File

@ -58,9 +58,6 @@ def check_database_connection():
def make_migrations():
print("Check database structure change ...")
os.chdir(os.path.join(BASE_DIR, 'apps'))
if len(os.listdir('assets/migrations')) < 4:
print("Make database migrations ...")
subprocess.call('python3 manage.py makemigrations', shell=True)
print("Migrate model change to database ...")
subprocess.call('python3 manage.py migrate', shell=True)