mirror of
https://github.com/djrobstep/migra.git
synced 2024-09-11 13:56:05 +03:00
parent
1b475b0569
commit
83727fa36b
@ -70,7 +70,7 @@ def run(args, out=None, err=None):
|
||||
m.add_all_changes(privileges=args.with_privileges)
|
||||
try:
|
||||
if m.statements:
|
||||
print(m.sql, file=out)
|
||||
print(m.sql.encode('utf8'), file=out)
|
||||
except UnsafeMigrationException:
|
||||
print(
|
||||
"-- ERROR: destructive statements generated. Use the --unsafe flag to suppress this error.",
|
||||
|
Loading…
Reference in New Issue
Block a user