diff --git a/src/services/job/create_event_attr_partition.service.ts b/src/services/job/create_event_attr_partition.service.ts index fb005a830..2cac6be4a 100644 --- a/src/services/job/create_event_attr_partition.service.ts +++ b/src/services/job/create_event_attr_partition.service.ts @@ -31,7 +31,7 @@ export default class CreateEventAttrPartitionJob extends BullableService { // create table await knex .raw( - `create table ${tableName} (like ${config.jobCheckNeedCreateEventAttributePartition.templateTable} including all)` + `create table ${tableName} (like ${config.jobCheckNeedCreateEventAttributePartition.templateTable} including all excluding constraints)` ) .transacting(trx); // attach table to partition table