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

Add support to ArrayType on Postgres #251

Closed
omri85 opened this issue Nov 27, 2021 · 4 comments
Closed

Add support to ArrayType on Postgres #251

omri85 opened this issue Nov 27, 2021 · 4 comments

Comments

@omri85
Copy link

omri85 commented Nov 27, 2021

My schema contained a table with a field of type ARRAY:
special_features "ARRAY" or text[]

When I ran the inspect command:
atlas.exe schema inspect -d "postgres://postgres:******" >> film.hcl

I got the following error:
Error: failed converting schema to spec: failed to convert column type *postgres.ArrayType to spec.

Just to double check, I cloned my DB, removed the ARRAY field and ran the inspect command and it worked.

@rotemtam
Copy link
Member

Thanks for reporting this @omri85 !
We are working on a patch which will be out in master soon and in v0.1.1 which should be out mid-week.

@omri85
Copy link
Author

omri85 commented Nov 28, 2021

Thank @rotemtam !
Looking forward to manage my schema with the tool.

@yonidavidson
Copy link
Contributor

Hi @omri85, please check our latest release https://github.com/ariga/atlas/releases/tag/v0.1.1 that includes support for array types.

@omri85
Copy link
Author

omri85 commented Nov 28, 2021

I checked it out and it looks great, worked for me!
Thanks.

@omri85 omri85 closed this as completed Nov 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants