mattes / migrate

Database migrations. CLI and Golang library.
Other
2.29k stars 326 forks source link

Escape table names for drop #308

Open andreis opened 6 years ago

andreis commented 6 years ago

We have a table called "user" and migrate drop throws an error.

2017/11/12 07:13:28 error: pq: syntax error at or near "user" in line 0: DROP TABLE IF EXISTS user CASCADE
error: exit status 1

Escaping table names for migrate drop should fix this.