Shall we use DROP IF EXISTS in the "export SQL"

Issue #303 resolved
Weel Young created an issue

In the "export SQL" view, there is an option "Add DROP TABLE". In the exported file, it shows DROP TABLE xyz However, if user drop table xyz and then import the sql it will throw exception saying that table xyz does not exist. Thinking that if we use DROP IF EXISTS, it will be safer to import the sql file

I can open a pull request if there is no concern :)

Comments (6)

  1. Christopher Kramer

    Agreed. Please open a pull request, I will include it. (Please make sure you don't make any unnecessary indention changes in your commit - we use tabs, not spaces for indention)

  2. Log in to comment