zernonia / supabase-schema

Secured & Simple Supabase Schema Visualizer

Home Page:https://supabase-schema.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Array column type

josemasf opened this issue · comments

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 );

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.