mysqldump parameter to ensure DROP VIEW IF EXISTS rather than incorrect DROP TABLE IF EXISTS

Posted by doublejosh on Stack Overflow See other posts from Stack Overflow or by doublejosh
Published on 2010-05-28T20:39:22Z Indexed on 2010/05/28 20:42 UTC
Read the original article Hit count: 274

Filed under:
|

Wonder if there is a parameter I can pass in mmysqldump equivalent for SQL Servery mysqldump that will make the incorrect "DROP TABLE IF EXISTS" statements into "DROP VIEW IF EXISTS", so that populating a database in an automated development environment refresh will work?

Clarification, I'm getting DROP TABLE IF EXISTS statements in my .sql dump file even though they aren't tables.

FYI: This is a Drupal site. The tables in question are ubercart meta statistics tables.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about mysqldump