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
Create several models with the same name
Able to create several models with the same name. But model name should be unique?
!image.png!
On MySQL the additional "delete_ts_nn" is added and unique is created with trigger
create unique index IDX_REPORT_REPORT_UNIQ_NAME on REPORT_REPORT (NAME, DELETE_TS_NN)^
create trigger REPORT_REPORT_DELETE_TS_NN_TRIGGER before update on REPORT_REPORT
for each row
if not(NEW.DELETE_TS <=> OLD.DELETE_TS) then
set NEW.DELETE_TS_NN = if (NEW.DELETE_TS is null, '1000-01-01 00:00:00.000', NEW.DELETE_TS);
end if^
But the following scripts found:
create unique index IDX_BPM_PROC_MODEL_UNIQ_NAME on BPM_PROC_MODEL (NAME, DELETE_TS)^
-- end BPM_PROC_MODEL
-- begin BPM_STENCIL_SET
create unique index IDX_BPM_STENCIL_SET_UNIQ_NAME on BPM_STENCIL_SET (NAME, DELETE_TS) ^
-- end BPM_STENCIL_SET
create table BPM_PROC_MODEL (
ID varchar(32),
CREATE_TS datetime(3),
CREATED_BY varchar(50),
VERSION integer,
UPDATE_TS datetime(3),
UPDATED_BY varchar(50),
DELETE_TS datetime(3),
DELETED_BY varchar(50),
--
NAME varchar(190) not null,
ACT_MODEL_ID varchar(255),
DESCRIPTION text,
--
primary key (ID)
)^
-- end BPM_PROC_MODEL
-- begin BPM_STENCIL_SET
create table BPM_STENCIL_SET (
ID varchar(32),
CREATE_TS datetime(3),
CREATED_BY varchar(50),
VERSION integer,
UPDATE_TS datetime(3),
UPDATED_BY varchar(50),
DELETE_TS datetime(3),
DELETED_BY varchar(50),
--
NAME varchar(190) not null,
JSON_DATA longtext not null,
--
primary key (ID)
)^
Able to create several models with the same name. But model name should be unique?
!image.png!
On MySQL the additional "delete_ts_nn" is added and unique is created with trigger
But the following scripts found:
Original issue: https://youtrack.haulmont.com/issue/PL-9954
The text was updated successfully, but these errors were encountered: