Open ChrisSchinnerl opened 1 year ago
I have the same problem and found something
if your struct have columns and other reference struct ,the db.table().automigrate() will report this error
for example your struct Foo has a Bar reference, if you delete it and confirm the Foo only have SQL Columns ,the method will be ok
I dont know if it has to be like this and I hope someone can fix it
Explain your user case and expected results
I'd like to specify a custom name for the table I'm about to create using
Table("foo")
but that causes a panic when used withAutoMigrate
. It seems to work withCreateTable
though followed by a call toAutoMigrate
.Expected behaviour would be a more meaningful message being returned in case this is a developer error.