2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-09 23:00:56 +00:00

Merge pull request #279 from revant/fix-migrate

fix: migrate command
This commit is contained in:
Chinmay Pai 2020-06-21 13:47:28 +05:30 committed by GitHub
commit d0fc8258ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()