@composio/db
v1.1.0
Published
This Makefile provides essential Liquibase database migration management for the Composio Hermes project using TypeScript-based migrations with Bun.
Downloads
44
Keywords
Readme
Database Makefile Usage Guide
This Makefile provides essential Liquibase database migration management for the Composio Hermes project using TypeScript-based migrations with Bun.
Prerequisites
- Bun: Required for running TypeScript migrations
- Environment Variables:
DATABASE_URLandTHERMOS_DATABASE_URLmust be set
Quick Start
Install Liquibase:
make installSet environment variables:
export DATABASE_URL="postgresql://postgres:postgres@localhost:5432/pocdb" export THERMOS_DATABASE_URL="postgresql://postgres:postgres@localhost:5432/pocdb"Run migrations:
make migrateCheck status:
make status
Available Commands
Installation
make install- Install Liquibase (via Homebrew on macOS)
Migration Management
make migrate- Run all pending migrations (append-only — always applies every pending changeset)make rollback- Rollback last migrationmake rollback COUNT=3- Rollback 3 migrationsmake rollback-to-tag TAG=tagname- Rollback to specific tag (for incident recovery)
Note: There is no
migrate-to-tagcommand. Forward migration is always append-only to ensure all environments converge to the same schema state.
Design Context & Resources
Slack Discussions
- Soft-delete middleware removal discussion - PR review on removing Prisma soft-delete middleware
- Migration troubleshooting - Discussion on Prisma migration errors and foreign key constraints
Notion Documentation
- Database Schema - Main schema documentation
- Evaluating database migration tools - RFC comparing migration approaches
Related Documentation
- See
CLAUDE.mdin this directory for AI assistant context - See
/packages/lib/README.mdfor encryption utilities used with credentials
