automigrate icon indicating copy to clipboard operation
automigrate copied to clipboard

drop column is sometimes broken

Open abe-winter opened this issue 5 years ago • 0 comments

example failure:

psycopg2.errors.SyntaxError: syntax error at or near "bool"
LINE 6: alter table users drop column notify_email bool;

obvious why this is invalid sql and what the change generator is doing, but I think I've also seen drops emit correct sql.

  • [ ] make sure this is covered in a test case
  • [ ] see if the AST is being used correctly by the diff generator

also test rm enum (both for drop order and syntax error)

abe-winter avatar Nov 14 '20 07:11 abe-winter