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

Check to make sure migration name is valid

Open AngelOnFira opened this issue 3 years ago • 1 comments
trafficstars

I created a migration named initial-tables, however, I had to change it since it wasn't valid as a Rust module name.

image

I'm sure there are some other characters that should be filtered out, but I didn't look too deep. Also, I created a custom error for this, but I'm not super sure if that's the cleanest place to put it. I can make any changes necessary :)

AngelOnFira avatar Jul 16 '22 22:07 AngelOnFira

Hi @AngelOnFira welcome back!

tyt2y3 avatar Jul 17 '22 08:07 tyt2y3