go-gorm / go-gorm/postgres

Failed to convert column from text[] to JSON or JSONB

Open
#254 0 comments 0 reactions 1 assignee Claimed by @jinzhu View on GitHub
Dominant language
Go
Stars
297
Forks
155
Avg merge
27m
Merged PRs (30d)
2

Description

## GORM Playground Link

TBD

## Description

When migrating a column originally mapped using [pq.StringArray](https://pkg.go.dev/github.com/lib/pq#StringArray) to [datatypes.JSONSlices[string]](https://pkg.go.dev/gorm.io/datatypes#JSONSlice) the AutoMigrator gives the following error: `cannot cast type text[] to jsonb`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.