1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-11-18 00:51:38 +01:00

Add a new settings debug_sql

This commit is contained in:
Yann 2016-01-08 12:22:36 +01:00
commit 94b843e321
4 changed files with 7 additions and 1 deletions

View file

@ -54,7 +54,7 @@ class MysqlMigrationHandler(DummyMigrationHandler):
self.db_conn = self._dbmodule.connect(**conn_args)
# Fetch options
mh_settings = Settings.migration_options
self.debug = kwargs['debug'] if 'debug' in kwargs else Settings.debug
self.debug = kwargs['debug'] if 'debug' in kwargs else Settings.debug_sql
self.dryrun = kwargs['dryrun'] if 'dryrun' in kwargs else mh_settings['dryrun']
self.foreign_keys = kwargs['foreign_keys'] if 'foreign_keys' in kwargs else mh_settings['foreign_keys']
self.drop_if_exists = kwargs['drop_if_exists'] if 'drop_if_exists' in kwargs else mh_settings['drop_if_exists']