zernonia / supabase-schema

Secured & Simple Supabase Schema Visualizer
https://supabase-schema.vercel.app/
MIT License
809 stars 47 forks source link

Array column type #7

Closed josemasf closed 2 years ago

josemasf commented 2 years ago

When you do an export of a table schema and one of the columns is of type text array, the array type is lost and it is left as simply array

When using the script, we receive a syntax error with the word ARRAY

Example:

image

create table candidates ( id uuid default uuid_generate_v4() primary key, created_at timestamp default now(), name text, email text, phone text, entry text, tag text, status text, quizzes json, file text, "level" text, profilesJobs ARRAY, notes ARRAY );

zernonia commented 2 years ago

Hi @josemasf , this is a known issue as at this moment because the REST endpoint returning ARRAY, you need to manually update the "ARRAY" into the type you want.