Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eemmiillyy opened this issue Apr 30, 2024 · 0 comments · May be fixed by #1461
Open

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

eemmiillyy opened this issue Apr 30, 2024 · 0 comments · May be fixed by #1461

Comments

@eemmiillyy
Copy link
Contributor

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

@eemmiillyy eemmiillyy linked a pull request Apr 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant