segidev
07/01/2022, 6:31 PMemailpassword_users
, etc...
I am asking because i use goent and i successfully can relate to the emailpassword_users
table. The problem is on the first start if the database does not exist entgo Migrations fail because the table `emailpassword_users`does not exist at that point.
My code looks like this
go
func DefineRoutes() *gin.Engine {
supertokens.Init()
// Adding the SuperTokens middleware in this function as well
app, v1 := gnshttp.GetGinApp("v1")
// Fails with: failed creating schema resources: sql/schema: create "user_profiles" table: pq: relation "emailpassword_users" does not exist
ent.Schema.Create(...)
...
}
As you can see I am initializing SuperTokens first, but that does not helprp_st
07/01/2022, 6:35 PMrp_st
07/01/2022, 6:35 PMsegidev
07/01/2022, 6:36 PMrp_st
07/01/2022, 6:36 PMsegidev
07/01/2022, 6:36 PMrp_st
07/01/2022, 6:36 PMsegidev
07/01/2022, 6:36 PMsegidev
07/01/2022, 6:36 PMrp_st
07/01/2022, 6:36 PMrp_st
07/01/2022, 6:36 PM