Skip to content

migrations, serial columns and foreign keys (postgresql) #2953

Answered by till
till asked this question in Q&A
Discussion options

You must be logged in to vote

I also tried forcing integer on it, but that didn't help either:

field.Int("author").SchemaType(map[string]string{
	dialect.Postgres: "integer",
})

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@till
Comment options

@a8m
Comment options

@till
Comment options

@a8m
Comment options

@till
Comment options

Answer selected by till
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants