drush-ops/drush — pull request #926 by wodenx (2014-10-24 20:07:12+00:00)
Title: 6.x - Support syncing databases with mysql views

Currently, sql-sync will fail for databases which contain mysql views. This is because
(1) mysqldump adds a DEFINER clause to the CREATE VIEW sql, which will fail if the users in the source and target db's don't match.
(2) a view which references a table will fail on import if the table has not yet been created.
This PR is an attempt to work around both of these issues. It could probably be generalized to support views in other DMBS but I haven't got to that...