|
|
|
@ -1,7 +1,6 @@ |
|
|
|
import os |
|
|
|
import os |
|
|
|
import subprocess |
|
|
|
import subprocess |
|
|
|
import pymysql |
|
|
|
import pymysql |
|
|
|
from update.utils.git_util import GitUtil |
|
|
|
|
|
|
|
from dingxin_toolbox_drf.settings import BASE_DIR, CONFIG |
|
|
|
from dingxin_toolbox_drf.settings import BASE_DIR, CONFIG |
|
|
|
from update.utils.git_util import GitUtil |
|
|
|
from update.utils.git_util import GitUtil |
|
|
|
from env import ENV |
|
|
|
from env import ENV |
|
|
|
@ -14,7 +13,7 @@ class DbCompare: |
|
|
|
self.target_pwd = 'cine123456' |
|
|
|
self.target_pwd = 'cine123456' |
|
|
|
self.target_port = '3306' |
|
|
|
self.target_port = '3306' |
|
|
|
self.target_release = short_release |
|
|
|
self.target_release = short_release |
|
|
|
self.cine_sql_path = os.path.join(BASE_DIR, 'dx', 'sql', GitUtil(short_release).get_db_name() + '.sql') |
|
|
|
self.cine_sql_path = os.path.join(BASE_DIR, 'dx', 'sql', GitUtil(short_release, target_ip).get_db_name() + '.sql') |
|
|
|
self.diff_sql_path = os.path.join(BASE_DIR, 'dx', 'temp', self.target_server + '_diff.sql') |
|
|
|
self.diff_sql_path = os.path.join(BASE_DIR, 'dx', 'temp', self.target_server + '_diff.sql') |
|
|
|
self.clear_diff_sql_path = os.path.join(BASE_DIR, 'dx', 'temp', self.target_server + '_diff_clear.sql') |
|
|
|
self.clear_diff_sql_path = os.path.join(BASE_DIR, 'dx', 'temp', self.target_server + '_diff_clear.sql') |
|
|
|
self.create_sql_path = os.path.join(BASE_DIR, 'dx', 'temp', self.target_server + '_create.sql') |
|
|
|
self.create_sql_path = os.path.join(BASE_DIR, 'dx', 'temp', self.target_server + '_create.sql') |
|
|
|
|