{"id":47232,"library":"cca-migration-generator","title":"CCA Migration Generator","description":"A CLI tool for generating TypeORM migrations and table schemas for PostgreSQL with TypeScript support. Current stable version is 0.1.1. It automates migration file creation, schema management, and integrates with TypeORM. Key differentiators: TypeScript-first, automated timestamp handling, custom templates, and support for complex relationships. Release cadence is irregular as it's in early development.","status":"active","version":"0.1.1","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","typeorm","migration","generator","typescript","postgresql","postgres","database","schema"],"install":[{"cmd":"npm install cca-migration-generator","lang":"bash","label":"npm"},{"cmd":"yarn add cca-migration-generator","lang":"bash","label":"yarn"},{"cmd":"pnpm add cca-migration-generator","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency; core ORM used by generated migrations.","package":"typeorm","optional":false},{"reason":"Peer dependency; required for TypeScript support.","package":"typescript","optional":true}],"imports":[{"note":"Tool is used as a CLI, not imported as a module.","symbol":"default (CLI)","correct":"npx cca-migration-generator CreateUserTable"}],"quickstart":{"code":"// 1. Install the package\nnpm install cca-migration-generator --save-dev\n\n// 2. Create cca.config.json in project root\n{\n  \"type\": \"postgres\",\n  \"host\": \"localhost\",\n  \"port\": 5432,\n  \"username\": \"your_username\",\n  \"password\": \"your_password\",\n  \"database\": \"your_database\"\n}\n\n// 3. Generate a migration\nnpx cca-migration-generator CreateUserTable","lang":"typescript","description":"Installation, configuration, and basic migration generation using the CLI."},"warnings":[{"fix":"Rename cca-migration-generator.json to cca.config.json and update the structure per the latest docs.","message":"Migrating from version 0.1.0 to 0.1.1: The configuration file format changed. Old 'cca-migration-generator.json' must be renamed to 'cca.config.json'.","severity":"breaking","affected_versions":">=0.1.0 <0.1.1"},{"fix":"Update typeorm to version >=0.3.0 in your project.","message":"Peer dependency typeorm version range changed from >=0.2.0 to >=0.3.0 in version 0.1.1.","severity":"deprecated","affected_versions":">=0.1.1"},{"fix":"Run the CLI from the root of your project where cca.config.json is located.","message":"The CLI command must be run from the project root; otherwise it fails to find cca.config.json.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'0.1.1':23 'autom':25,40 'cadenc':51 'cca':1 'cli':5 'complex':48 'creation':28 'current':19 'custom':43 'databas':67 'develop':59 'differenti':36 'earli':58 'file':27 'first':39 'generat':3,8,63 'handl':42 'integr':32 'irregular':53 'javascript':60 'key':35 'manag':30 'migrat':2,10,26,62 'postgr':66 'postgresql':15,65 'relationship':49 'releas':50 'schema':13,29,68 'stabl':20 'support':18,46 'tabl':12 'templat':44 'timestamp':41 'tool':6 'typeorm':9,34,61 'typescript':17,38,64 'typescript-first':37 'version':21","created_at":"2026-06-07T16:50:28.394864+00:00","updated_at":"2026-06-07T16:50:28.394864+00:00","problems":[{"fix":"Change to the project root directory where cca.config.json exists, or specify a custom path using --config option if available.","cause":"The CLI is executed from a directory that does not contain cca.config.json.","error":"Error: Config file not found at /path/to/project/cca.config.json"},{"fix":"Ensure PostgreSQL is running and that cca.config.json has correct host and port (default 5432).","cause":"PostgreSQL is not running or the host/port configuration is incorrect.","error":"Error: Connection refused: connect ECONNREFUSED 127.0.0.1:5432"},{"fix":"Use a unique migration name, or delete the existing migration file before generating a new one.","cause":"A migration file with the same name already exists in the migrations directory.","error":"Error: Duplicate migration name: CreateUserTable"},{"fix":"Run 'npm install typeorm' to install the peer dependency.","cause":"typeorm is not installed as a dependency.","error":"Error: Cannot find module 'typeorm'"}],"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":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"cca-migration-generator","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}}