Hi
Using addon Attachment 0.51 with platform 6.10.12. Generated sql scripts create twice the table ddca_attachment wich prevent creating a database, even after clean the project.
Both following scripts create the table, sadly it seems I have no way to exclude the faulty one with studio as it is does not appear in Database Scripts window.
70-cuba-component-attachable\init\postgres\10.create-db.sql
-- begin DDCA_ATTACHEMENT
create table DDCA_ATTACHEMENT (
ID uuid,
VERSION integer not null,
CREATE_TS timestamp,
CREATED_BY varchar(50),
UPDATE_TS timestamp,
UPDATED_BY varchar(50),
DELETE_TS timestamp,
DELETED_BY varchar(50),
--
NAME varchar(255) not null,
ATTACHABLE varchar(255) not null,
FILE_ID uuid,
CATEGORY_ID uuid,
--
primary key (ID)
)^
-- end DDCA_ATTACHEMENT
-- begin DDCA_ATTACHMENT_CATEGORY
create table DDCA_ATTACHMENT_CATEGORY (
ID uuid,
VERSION integer not null,
CREATE_TS timestamp,
CREATED_BY varchar(50),
UPDATE_TS timestamp,
UPDATED_BY varchar(50),
DELETE_TS timestamp,
DELETED_BY varchar(50),
--
NAME varchar(255) not null,
CODE varchar(255),
--
primary key (ID)
)^
-- end DDCA_ATTACHMENT_CATEGORY
80-busy\init\postgres\01.attachable-create-db.sql => this one seems to be an old version of the addon, as there is no category
-- begin DDCA_ATTACHEMENT
create table DDCA_ATTACHEMENT (
ID uuid,
VERSION integer not null,
CREATE_TS timestamp,
CREATED_BY varchar(50),
UPDATE_TS timestamp,
UPDATED_BY varchar(50),
DELETE_TS timestamp,
DELETED_BY varchar(50),
--
NAME varchar(255) not null,
ATTACHABLE varchar(255) not null,
FILE_ID uuid,
--
primary key (ID)
)^
-- end DDCA_ATTACHEMENT
Regards
Michael
Executing SQL script: C:\dev\studio-projects\busy\modules\core\build\db\10-cuba\init\postgres\create-db.sql
Executing SQL script: C:\dev\studio-projects\busy\modules\core\build\db\20-reports\init\postgres\create-db.sql
Executing SQL script: C:\dev\studio-projects\busy\modules\core\build\db\50-cuba-component-runtime-diagnose\init\postgres\10.create-db.sql
Executing SQL script: C:\dev\studio-projects\busy\modules\core\build\db\50-cuba-component-runtime-diagnose\init\postgres\20.create-db.sql
Executing SQL script: C:\dev\studio-projects\busy\modules\core\build\db\50-cuba-component-runtime-diagnose\init\postgres\30.create-db.sql
Executing SQL script: C:\dev\studio-projects\busy\modules\core\build\db\50-sec-forgot-password\init\postgres\10.create-db.sql
Executing SQL script: C:\dev\studio-projects\busy\modules\core\build\db\50-sec-forgot-password\init\postgres\20.create-db.sql
Executing SQL script: C:\dev\studio-projects\busy\modules\core\build\db\50-sec-forgot-password\init\postgres\30.create-db.sql
Executing SQL script: C:\dev\studio-projects\busy\modules\core\build\db\60-cuba-component-taggable\init\postgres\10.create-db.sql
Executing SQL script: C:\dev\studio-projects\busy\modules\core\build\db\60-cuba-component-taggable\init\postgres\20.create-db.sql
Executing SQL script: C:\dev\studio-projects\busy\modules\core\build\db\60-cuba-component-taggable\init\postgres\30.create-db.sql
Executing SQL script: C:\dev\studio-projects\busy\modules\core\build\db\70-cuba-component-attachable\init\postgres\10.create-db.sql
Executing SQL script: C:\dev\studio-projects\busy\modules\core\build\db\70-cuba-component-attachable\init\postgres\20.create-db.sql
Executing SQL script: C:\dev\studio-projects\busy\modules\core\build\db\70-cuba-component-attachable\init\postgres\30.create-db.sql
Executing SQL script: C:\dev\studio-projects\busy\modules\core\build\db\80-busy\init\postgres\01.admintools-create-db.sql
Executing SQL script: C:\dev\studio-projects\busy\modules\core\build\db\80-busy\init\postgres\01.attachable-create-db.sql
Failed to execute: -- begin DDCA_ATTACHEMENT
create table DDCA_ATTACHEMENT (
ID uuid,
VERSION integer not null,
CREATE_TS timestamp,
CREATED_BY varchar(50),
UPDATE_TS timestamp,
UPDATED_BY varchar(50),
DELETE_TS timestamp,
DELETED_BY varchar(50),
--
NAME varchar(255) not null,
ATTACHABLE varchar(255) not null,
FILE_ID uuid,
--
primary key (ID)
) because: ERROR: relation "ddca_attachement" already exists