sea-orm icon indicating copy to clipboard operation
sea-orm copied to clipboard

Delete all PostgreSQL types when calling fresh (#765)

Open karpa4o4 opened this issue 3 years ago • 3 comments
trafficstars

PR Info

Closes #765.

Adds

This PR adds the removal of all PostgreSQL types in the current schema when calling fresh on migrator.

Unfortunately, it was not possible to remove all types without for, because when calling names, incorrect SQL is compiled.

DROP TYPE “test””test1”

karpa4o4 avatar Jul 11 '22 10:07 karpa4o4

Hey @karpa4o4, I added a test for creating db enum on PostgreSQL

  • https://github.com/karpa4o4/sea-orm/compare/issue/765...billy1624:pr/864

Feel free to cherrypick :D

billy1624 avatar Aug 03 '22 04:08 billy1624

@billy1624, done

karpa4o4 avatar Aug 07 '22 16:08 karpa4o4

@billy1624, the fmt warnings fixed.

karpa4o4 avatar Aug 10 '22 19:08 karpa4o4

Thank you so much @karpa4o4

billy1624 avatar Aug 16 '22 10:08 billy1624