-
第二章 2.6 节中, models 回调用的是 gorm 1.0 版本,请问在 gorm 2.0 版本中如何处理?
-
## GORM Playground Link
https://github.com/go-gorm/playground/pull/512
## Description
It's not possible to change not nullable field to nullable.
```
type Test struct {
gorm.Model
…
-
**English Only**. Please use English because others could join the discussion if they got similar issue!
Please answer these questions before submitting your issue. Thanks!
1. What did you do?
…
-
My atlas.hcl
```
data "external_schema" "gorm" {
program = [
"go",
"run",
"./loader",
]
}
env "gorm" {
src = data.external_schema.gorm.url
dev = "docker://postgres/16/…
-
Migrate to Gorm v2
Since Gorm v2 supports contexts it will allow us to set timeouts on SQL queries. Also, it is easier to add AddSelect() method to the DB class with Gorm v2 so that columns are appen…
-
type Rule struct {
ID uint64 `gorm:"column:id" db:"id"`
Content datatypes.JSONSlice[Tag] `gorm:"column:content" type:"json"`
Version int64 `…
-
## GORM Playground Link
https://github.com/go-gorm/playground/pull/712
## Description
For the following model
```go
type Common struct {
TenantID uint `gorm:"primarykey"`
}
type Use…
-
how to embed custom model for generated model .for example, embed gorm.Model directly in generated structs
-
```
It would be nice if the generated zk input components uses the constraints
defined in the domain class.
```
Original issue reported on code.google.com by `omadruga` on 15 Jun 2009 at 4:32
-
## Playground Pull Request Link
https://github.com/go-gorm/playground/pull/743
## Description
When using Joins/InnerJoins, there is an inconsistency about how the join clause is processed.
…