Skip to content

Commit

Permalink
Merge pull request #19 from clearcare/bug/update-table-missing-attrib…
Browse files Browse the repository at this point in the history
…ute-definitions

Include AttributeDefinitions in update call.
  • Loading branch information
pcraciunoiu committed Apr 28, 2016
2 parents 0b7b918 + 5f752b6 commit 751c2a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cc_dynamodb3/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@ def update_table(table_name, connection=None, throughput=False):
})

if gsi_updates:
db_table.update(GlobalSecondaryIndexUpdates=gsi_updates)
db_table.update(AttributeDefinitions=local_metadata['AttributeDefinitions'],
GlobalSecondaryIndexUpdates=gsi_updates)
log_data('update_table: %s' % table_name, extra=dict(status='updated table',
table_name=table_name),
logging_level='info')
Expand Down

0 comments on commit 751c2a0

Please sign in to comment.