mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-13 05:49:07 +00:00
[Update] 修改Jms脚本
This commit is contained in:
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)
|
||||
|
||||
|
Reference in New Issue
Block a user