File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ def restore_site_tables(self):
354
354
output = self .execute (
355
355
"set -o pipefail && "
356
356
f"gunzip -c '{ backup_file_path } ' | "
357
- f"mysql -h { self .host } -u { self .user } -p{ self .password } -P { self .port } "
357
+ f"mysql -h { self .host } -u { self .user } -p{ self .password } -P { self .port } "
358
358
f"{ self .database } " ,
359
359
executable = "/bin/bash" ,
360
360
)
@@ -567,7 +567,7 @@ def restore_touched_tables(self):
567
567
output = self .execute (
568
568
"set -o pipefail && "
569
569
f"gunzip -c '{ backup_file } ' | "
570
- f"mysql -h { self .host } -u { self .user } -p{ self .password } -P { self .port } "
570
+ f"mysql -h { self .host } -u { self .user } -p{ self .password } -P { self .port } "
571
571
f"{ self .database } " ,
572
572
executable = "/bin/bash" ,
573
573
)
@@ -582,7 +582,7 @@ def drop_new_tables(self):
582
582
data = {"dropped" : {}}
583
583
for table in new_tables :
584
584
output = self .execute (
585
- f"mysql -h { self .host } -u { self .user } -p{ self .password } -P { self .port } "
585
+ f"mysql -h { self .host } -u { self .user } -p{ self .password } -P { self .port } "
586
586
f"{ self .database } -e 'DROP TABLE `{ table } `'"
587
587
)
588
588
data ["dropped" ][table ] = output
@@ -664,7 +664,7 @@ def timezone(self):
664
664
)
665
665
try :
666
666
timezone = self .execute (
667
- f"mysql -h { self .host } -u{ self .database } -p{ self .password } -P { self .port } "
667
+ f"mysql -h { self .host } -u{ self .database } -p{ self .password } -P { self .port } "
668
668
f'-sN -e "{ query } "'
669
669
)["output" ].strip ()
670
670
except Exception :
You can’t perform that action at this time.
0 commit comments