From 6e783967609f826750f60bd68e443770860bbabb Mon Sep 17 00:00:00 2001 From: Phan Anh Tuan Date: Thu, 16 Nov 2023 11:23:48 +0700 Subject: [PATCH] fix: remove constraints when create new partition --- src/services/job/create_event_attr_partition.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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