mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-09 23:00:56 +00:00
commit
d0fc8258ce
@ -2,7 +2,6 @@ import os
|
||||
import frappe
|
||||
import json
|
||||
|
||||
from frappe.migrate import migrate
|
||||
from frappe.utils import cint, get_sites
|
||||
from check_connection import get_config
|
||||
|
||||
@ -38,6 +37,7 @@ def migrate_sites(maintenance_mode=False):
|
||||
frappe.init(site=site)
|
||||
frappe.connect()
|
||||
try:
|
||||
from frappe.migrate import migrate
|
||||
migrate()
|
||||
finally:
|
||||
frappe.destroy()
|
||||
|
Loading…
Reference in New Issue
Block a user