Skip to content

Allow columns to be an array type #1524

@Shinigami92

Description

@Shinigami92

Description

PostgreSQL does not only allow to persist columns with a type like text[], but also text ARRAY.

Suggested solution

allow adding columns not only with { type: `${PgType.TEXT}[]` } but alternatively with { type: PgType.TEXT, array: true } (or { type: PgType.TEXT, array: 4 }, see official documentation)

Alternative

No response

Additional context

https://www.postgresql.org/docs/current/arrays.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions