Skip to content

Use default Postgres types for CLI instead of old "Xata Types"  #1460

@eemmiillyy

Description

@eemmiillyy

We want to remove all the custom xata types and start using default xata types inside the CLI.

This only applies to CLI edit for now.

  1. string, text, email just become text with the text length constraint
  2. Links become text with only a foreign key check and a comment about the table
  3. vector becomes real[] with a comment about the size and its normal constraint
  4. file and file[] become xata_file and xata_file_array with a comment about default public access (?) Or should this be jsonb?

pgRollToXataColumnType can be removed or at least changed since the only type that should be used is the underlying pgType.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions