We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrator().DropTable( &item{}) is not working properly when implementing item.TableName() and returning a name containing a schema, e.g:
Migrator().DropTable( &item{})
item.TableName()
type item struct { Name string } func (i *item)TableName() string {return "test.item"} // specify schema name as "test"
calling db.Migrator().DropTable(&item{}) generates the following SQL statement:
db.Migrator().DropTable(&item{})
DROP TABLE IF EXISTS "item"
the statement is not using the full table name, the "schema." part is missing.
What is the proper way to find the table name for a struct? - I have seen different methods throughout issues and code.
The text was updated successfully, but these errors were encountered:
jinzhu
No branches or pull requests
Migrator().DropTable( &item{})
is not working properly when implementingitem.TableName()
and returning a name containing a schema, e.g:calling
db.Migrator().DropTable(&item{})
generates the following SQL statement:the statement is not using the full table name, the "schema." part is missing.
What is the proper way to find the table name for a struct? - I have seen different methods throughout issues and code.
The text was updated successfully, but these errors were encountered: