Gorm: Auto migration with default value.

Created on 7 Jan 2019  路  2Comments  路  Source: go-gorm/gorm

How to mention the default values for columns

gorm_v1

Most helpful comment

@jinzhu when changing the default value (http://gorm.io/docs/create.html#Default-Values) does auto migration works? I've found that's not the case

All 2 comments

@jinzhu when changing the default value (http://gorm.io/docs/create.html#Default-Values) does auto migration works? I've found that's not the case

This issue will be automatically closed because it is marked as GORM V1 issue, we have released the public testing GORM V2 release and its documents https://v2.gorm.io/docs/ already, the testing release has been used in some production services for a while, and going to release the final version in following weeks, we are still actively collecting feedback before it, please open a new issue for any suggestion or problem, thank you

Also check out https://github.com/go-gorm/gorm/wiki/GORM-V2-Release-Note-Draft for how to use the public testing version and its changelog

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pjebs picture pjebs  路  3Comments

satb picture satb  路  3Comments

easonlin404 picture easonlin404  路  3Comments

izouxv picture izouxv  路  3Comments

rfyiamcool picture rfyiamcool  路  3Comments