noppoMan / npdynamodb

A Node.js Simple Query Builder and ORM for AWS DynamoDB
112 stars 19 forks source link

Fix MigrateRunner._createMigrateTableIfNotExists #72

Open sean-krail opened 4 years ago

sean-krail commented 4 years ago

_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

sean-krail commented 4 years ago

@noppoMan the travis tests are broken for node v4 and v5, all other versions are working as expected.

sean-krail commented 4 years ago

@noppoMan https://github.com/noppoMan/npdynamodb/pull/73 fixes the travis tests