I would like to add a column of type tsvector
in postgres by defining a field in a model struct. It would look sort of like:
type Issue struct {
...
TSV tsvector `json:"tsv"`
}
The reason is that I would like to use gorm's AutoMigrate
to keep the tables up-to-date while developing. Any ideas?