From c7bcba871be567394ed3e9d0930517bdbc0bee9c Mon Sep 17 00:00:00 2001 From: Jason Park Date: Fri, 6 Oct 2023 23:12:10 +0900 Subject: [PATCH] fix: hotfix deleting GSI --- lib/constructs/persistence/database.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/constructs/persistence/database.ts b/lib/constructs/persistence/database.ts index 01b9a5d42..ca356d9be 100644 --- a/lib/constructs/persistence/database.ts +++ b/lib/constructs/persistence/database.ts @@ -107,12 +107,12 @@ export class DynamoDatabase extends Construct { sortKey: { name: 'thread_id', type: dynamodb.AttributeType.STRING }, projectionType: dynamodb.ProjectionType.ALL, }); - this.tables[Collection.THREAD].addGlobalSecondaryIndex({ - indexName: 'UniIDbyThreadIDIndex', - partitionKey: { name: 'univ_id', type: dynamodb.AttributeType.STRING }, - sortKey: { name: 'thread_id', type: dynamodb.AttributeType.STRING }, - projectionType: dynamodb.ProjectionType.ALL, - }); + // this.tables[Collection.THREAD].addGlobalSecondaryIndex({ + // indexName: 'UniIDbyThreadIDIndex', + // partitionKey: { name: 'univ_id', type: dynamodb.AttributeType.STRING }, + // sortKey: { name: 'thread_id', type: dynamodb.AttributeType.STRING }, + // projectionType: dynamodb.ProjectionType.ALL, + // }); // this.tables[Collection.THREAD].addLocalSecondaryIndex({ // indexName: 'GroupIndex',