A lightweight migration framework for Amazon DynamoDB, version 1.0.2. It provides a simple way to manage schema and data migrations in DynamoDB, similar to ActiveRecord migrations in Rails. It scans a local 'dynamo-migrations' folder for numbered migration files and applies them sequentially. The package is minimal with no external runtime dependencies. It is designed for local development and requires a running DynamoDB instance. The release cadence is low; the latest version is stable but not actively maintained.
npm install dynamodb-migrateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to run DynamoDB migrations using the default endpoint and migrations folder.
Set process.env.AWS_DYNAMODB_ENDPOINT to your DynamoDB endpoint, e.g., 'http://localhost:8000' for local development.
Ensure your migrations are in './dynamo-migrations' or create a symbolic link.
Use require() instead of import. Or wrap the import in a dynamic import: const dynmigrate = await import('dynamodb-migrate'); (may have issues).Ensure only one instance of migration runs at a time, or extend the package to track applied migrations in a DynamoDB table.
Run: npm install dynamodb-migrate
Use: const dynmigrate = require('dynamodb-migrate'); then dynmigrate.migrate();Set process.env.AWS_DYNAMODB_ENDPOINT before calling migrate(), e.g., process.env.AWS_DYNAMODB_ENDPOINT = 'http://localhost:8000';
No dependency data recorded yet.