You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Postgres.go file has filtering which does not consider "text" value to be set as a primary key:
if c.Primary {
switch c.ColType {
case "string", "uuid": // make sure that we don't fall into default
case "integer", "INT", "int":
c.ColType = "SERIAL"
case "bigint", "BIGINT":
c.ColType = "BIGSERIAL"
default:
return "", fmt.Errorf("can not use %s as a primary key", c.ColType)
}
}
The text was updated successfully, but these errors were encountered:
Postgres.go file has filtering which does not consider "text" value to be set as a primary key:
The text was updated successfully, but these errors were encountered: