You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to create a record with array property inside it ingores provided array values and saves a record without them.
P.S. edit works fine, so the issue is only with creation
-- auto-generated definition
create table companies
(
id uuid default gen_random_uuid() not null
constraint "PK_d4bc3e82a314fa9e29f652c2c22"
primary key,
name varchar not null,
email varchar not null,
socials jsonb,
phone_numbers text[] not null,
comments text
);
alter table companies
owner to postgres;
Additional context
Before I added default value as empty array array[]::text[] to phone_numbers it was throwing me null violation exception from postgres.
The text was updated successfully, but these errors were encountered:
When I try to create a record with array property inside it ingores provided array values and saves a record without them.
P.S. edit works fine, so the issue is only with creation
Installed libraries and their versions
PostgreSQL:13.3
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should save array values on creation of a new record
Screenshots
If applicable, add screenshots to help explain your problem.
After creation:

AdminJSOptions with schema
Paste your AdminJS config with database schema if it could be related to the issue
AdminJS resource config
database schema:
Additional context
Before I added default value as empty array
array[]::text[]
to phone_numbers it was throwing me null violation exception from postgres.The text was updated successfully, but these errors were encountered: