{"id":47285,"library":"coffee-db-migrate","title":"coffee-db-migrate","description":"An abstract migration framework for Node.js written in CoffeeScript that stores migration steps in a database. Version 0.1.2 is the latest stable release, with no recent updates. It is based on coffee-migrate but differs by persisting migrated file titles in the database. Requires manual implementation of database-specific methods (lock, release, getStoredMigrations, saveState, removeMigration) in a dbMigration.coffee file. This is a niche, unmaintained package with limited documentation and no active development; consider more robust alternatives like Knex.js or node-pg-migrate.","status":"abandoned","version":"0.1.2","language":"javascript","source_language":"en","source_url":"https://github.com/daniel-gawron/coffee-db-migrate","tags":["javascript"],"install":[{"cmd":"npm install coffee-db-migrate","lang":"bash","label":"npm"},{"cmd":"yarn add coffee-db-migrate","lang":"bash","label":"yarn"},{"cmd":"pnpm add coffee-db-migrate","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package is a CLI tool and should be invoked via the command line, not imported programmatically.","wrong":"require('coffee-db-migrate')","symbol":"migrate (CLI)","correct":"npx migrate [options] [command]"}],"quickstart":{"code":"# Install globally\nnpm install -g coffee-db-migrate\n\n# Create a migration directory and file\nmkdir migrations\ncd migrations\nmigrate create my_migration\n\n# Then implement dbMigration.coffee in the migrations folder:\n# migrations/dbMigration.coffee\nexports.lockMigrationProcess = (next) -> next()\nexports.releaseMigration = (next) -> next()\nexports.getStoredMigrations = (next) -> next([])\nexports.saveState = (title, status, next) -> next()\nexports.removeMigration = (title, next) -> next()\n\n# Run migration up with DB storage\nmigrate up --db","lang":"javascript","description":"Demonstrates installation, creating a migration file, implementing mandatory dbMigration.coffee methods, and running a migration with DB storage."},"warnings":[{"fix":"Ensure your migrations folder contains a valid CoffeeScript file named dbMigration.coffee with the required exports.","message":"The package is written in CoffeeScript and requires a dbMigration.coffee file; if you don't use CoffeeScript, you must compile or supply CoffeeScript files.","severity":"gotcha","affected_versions":">=0"},{"fix":"Consider using an actively maintained migration tool like Knex.js or node-pg-migrate.","message":"The package is unmaintained and may have compatibility issues with modern Node.js versions.","severity":"gotcha","affected_versions":">=10"},{"fix":"Always use --db flag if you intend to use database storage.","message":"The CLI flag --db is required to store migration steps in db; omitting it uses a file-based approach, but the README does not clarify behavior.","severity":"gotcha","affected_versions":">=0"}],"env_vars":null,"search_vec":"'0.1.2':22 'abstract':6 'activ':77 'altern':82 'base':34 'coffe':2,37 'coffee-db-migr':1 'coffee-migr':36 'coffeescript':13 'consid':79 'databas':20,48,54 'database-specif':53 'db':3 'dbmigration.coffee':64 'develop':78 'differ':40 'document':74 'file':44,65 'framework':8 'getstoredmigr':59 'implement':51 'javascript':90 'knex.js':84 'latest':25 'like':83 'limit':73 'lock':57 'manual':50 'method':56 'migrat':4,7,16,38,43,89 'nich':69 'node':87 'node-pg-migr':86 'node.js':10 'packag':71 'persist':42 'pg':88 'recent':30 'releas':27,58 'removemigr':61 'requir':49 'robust':81 'savest':60 'specif':55 'stabl':26 'step':17 'store':15 'titl':45 'unmaintain':70 'updat':31 'version':21 'written':11","created_at":"2026-06-07T16:50:44.449749+00:00","updated_at":"2026-06-07T16:50:44.449749+00:00","problems":[{"fix":"Install globally: npm install -g coffee-db-migrate","cause":"The package is installed globally but not in the local node_modules.","error":"Cannot find module 'coffee-db-migrate'"},{"fix":"Use CommonJS or convert to ES module with dynamic import.","cause":"Package uses CommonJS and may not work in ES modules.","error":"ReferenceError: require is not defined in ESM"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/daniel-gawron/coffee-db-migrate","github":"https://github.com/daniel-gawron/coffee-db-migrate","docs":null,"changelog":null,"pypi":null,"npm":"coffee-db-migrate","openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}