_createMigrateTableIfNotExists now works when there are more than 100 tables (DynamoDB has a soft limit of 256 tables per region). Say you have 101 tables table1 through table100 and your migration history table's name is table101, the function thinks the migration history table doesn't exist, tries to create it, and then throws a ResourceInUseException since it really does exist.
Changes
renamed _createMigrateTableIfNotExits to _createMigrateTableIfNotExists
_createMigrateTableIfNotExists now uses describeTable instead of listTables to figure out if the migration history table already exists. This change was made since listTables uses pagination which defaults to 100 and describeTable can fetch one table by name.
_createMigrateTableIfNotExists
now works when there are more than 100 tables (DynamoDB has a soft limit of 256 tables per region). Say you have 101 tablestable1
throughtable100
and your migration history table's name istable101
, the function thinks the migration history table doesn't exist, tries to create it, and then throws aResourceInUseException
since it really does exist.Changes
_createMigrateTableIfNotExits
to_createMigrateTableIfNotExists
_createMigrateTableIfNotExists
now uses describeTable instead of listTables to figure out if the migration history table already exists. This change was made since listTables uses pagination which defaults to 100 and describeTable can fetch one table by name.