{"library":"knex-automigrate","type":"library","category":null,"description":"knex-automigrate is a database migration tool built on top of Knex.js, offering a schema-based approach instead of traditional sequential migrations. It allows developers to define the desired state of database tables and views in dedicated `table_*.js` and `view_*.js` files within their migration directory. The tool then automatically generates and applies the necessary SQL statements to bring the database schema in sync with these definitions, abstracting away the manual `up` and `down` migration logic. Currently at version 0.1.8, the project appears to be under active maintenance, with recent updates supporting newer Knex.js versions (e.g., peer dependency `^3.1.0`). Its key differentiator is its declarative, state-based migration model which simplifies schema evolution and avoids the complexity of managing explicit forward and backward migration scripts for each change, contrasting with Knex's traditional delta-based migration system.","language":"javascript","status":"active","version":"0.1.8","tags":["javascript","nodejs","knexjs","database","orm","table","migration"],"last_verified":"Wed May 27","install":[{"cmd":"npm install knex-automigrate","imports":["import { MigrateAuto } from 'knex-automigrate';","knex-automigrate migrate:auto","exports.auto = function(migrator, knex) { ... };"]},{"cmd":"yarn add knex-automigrate","imports":[]},{"cmd":"pnpm add knex-automigrate","imports":[]}],"homepage":null,"github":"https://github.com/why2pac/knex-automigrate","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/knex-automigrate","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/knex-automigrate/compatibility"}}