Skip to content
New issue

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

GORM v1.23.5 Column Error #3

Open
bdabak opened this issue May 20, 2022 · 4 comments
Open

GORM v1.23.5 Column Error #3

bdabak opened this issue May 20, 2022 · 4 comments

Comments

@bdabak
Copy link

bdabak commented May 20, 2022

Hi,

I tried immugorm package with the latest gorm (v1.23.5).

But it gives an error like:

github.com/codenotary/immugorm

../../../../go/pkg/mod/github.com/codenotary/[email protected]/migrator.go:220:40: cannot use column (variable of type Column) as type gorm.ColumnType in argument to append:
Column does not implement gorm.ColumnType (missing AutoIncrement method)

@saul-data
Copy link

I just had the same issue. I am using both postgresql and immudb

# github.com/codenotary/immugorm
/go/pkg/mod/github.com/codenotary/[email protected]/migrator.go:220:40: cannot use column (variable of type Column) as type gorm.ColumnType in argument to append:
        Column does not implement gorm.ColumnType (missing AutoIncrement method)

@tutiplain
Copy link

This repo is apparently not being maintained. Did anyone find a workaround for this error?

@twinsant
Copy link

twinsant commented Dec 5, 2022

same error

@tutiplain
Copy link

I was able to get around this error by downgrading both gorm and immugorm to a previous version. If I remember correctly, using immugorm 1.2.3 and gorm 2.03 solved the issue. Unfortunately, it seems this repo is dead and it doesn't look like there are any plans to update it (I made a PR in August which has not even been checked yet). Your best bet is to either downgrade, or to try and clone the repo and fix it yourself (I tried but the problem is much more complex than it seems).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants