mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-11 02:53:37 +00:00
[Update] 修改Jms脚本
This commit is contained in:
parent
340c615efe
commit
c5d1ed126e
3
jms
3
jms
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user