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
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Create table with this DDL in targeted database
-- asus.region definition-- Drop table-- DROP TABLE asus.region;CREATETABLEasus.region (
"oid"varchar(128) NOT NULL,
region_id varchar(256) NOT NULL,
region_code varchar(256) NOT NULL,
region_name_en varchar(256) NOT NULL,
region_name_bn varchar(256) NOT NULL,
status varchar(32) NULL,
created_by varchar(128) NOT NULL DEFAULT 'System'::character varying,
created_on timestampNOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_by varchar(128) NULL,
updated_on timestampNULL,
CONSTRAINT ck_status_region CHECK ((((status)::text='Active'::text) OR ((status)::text='Inactive'::text))),
CONSTRAINT region_pkey PRIMARY KEY (oid),
CONSTRAINT region_region_id_key UNIQUE (region_id)
);
Installation
Building a data model(table) from an existing database which has a table with "check" constraint
synth import template/ --from postgres://mraims:[email protected]:5432/mraims --schema asus
Try to generate data
synth generate asus --to postgres://ibprod:[email protected]:5432/ibprod --schema asus
See error
Error: At namespace "asus"
Caused by:
0: Failed to insert data for collection region
1: One or more database inserts failed: error returned from database: new row for relation "region" violates check constraint "ck_status_region": new row for relation "region" violates check constraint "ck_status_region"
Expected behavior
Datas should be inserted in the region table in "ibprod" database "asus" schema
Screenshots
Environment (please complete the following information):
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Datas should be inserted in the region table in "ibprod" database "asus" schema
Screenshots
Environment (please complete the following information):
Additional context
generated data model by synth
The text was updated successfully, but these errors were encountered: