Lightweight database migration command-line tool for Sqlite3. Version 0.0.13 is the latest release. It uses JSON-based migration files with 'up' and 'down' SQL statements, and supports directional migration, fake migrations, listing, and creation of blank migrations. No custom DSL: migrations are raw SQL. Only Sqlite3 supported currently, but extensible to other databases. Provides a single 'migrations' table for state tracking. Suitable for simple projects needing file-based migrations without overhead.
npm install dbup-downtownNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Runs a migration up by one step using environment variables for folder and database path.
Use a Sqlite3 database file or contribute a provider for MySQL/PostgreSQL.
Use the `new` command to create properly named files, or manually name them correctly.
Ensure SQL statements are correct for your database (e.g., Sqlite3).
Use `migrate down 1` or `migrate -1` to migrate down by one.
Set MIGRATIONS_FOLDER to the path of your migrations folder, e.g., export MIGRATIONS_FOLDER=migrations
Set PATH_TO_DB to the path of your Sqlite3 database file, e.g., export PATH_TO_DB=my.db
Rename the file to follow the pattern, e.g., 202501010000.json
No dependency data recorded yet.