Skip to content

Commit

Permalink
fix: hotfix deleting GSI
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonNotJson committed Oct 6, 2023
1 parent 56d5f42 commit c7bcba8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/constructs/persistence/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit c7bcba8

Please sign in to comment.