Skip to content

Commit

Permalink
fix: remove constraints when create new partition
Browse files Browse the repository at this point in the history
  • Loading branch information
fibonacci998 committed Nov 16, 2023
1 parent 870bf95 commit 6e78396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/job/create_event_attr_partition.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e78396

Please sign in to comment.