mirror of https://github.com/jumpserver/jumpserver
[Update] 修改Jms脚本
parent
340c615efe
commit
c5d1ed126e
3
jms
3
jms
|
@ -58,9 +58,6 @@ def check_database_connection():
|
||||||
def make_migrations():
|
def make_migrations():
|
||||||
print("Check database structure change ...")
|
print("Check database structure change ...")
|
||||||
os.chdir(os.path.join(BASE_DIR, 'apps'))
|
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 ...")
|
print("Migrate model change to database ...")
|
||||||
subprocess.call('python3 manage.py migrate', shell=True)
|
subprocess.call('python3 manage.py migrate', shell=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue