## Summary Squash 178 migration files (up to v1.5.5) into 2 consolidated migrations to significantly improve migration performance. ## Changes - **Consolidate 169 common migrations** into a single squashed migration - **Consolidate 11 billing migrations** into a single squashed migration - **Remove 178 files** (86% reduction: 207 → 29 migration files) - Make `FK_47a6c57e1652b6475f8248cff78` constraint `DEFERRABLE INITIALLY DEFERRED` to fix self-referencing foreign key issues - Preserve all 27 post-v1.5.5 migrations (25 common + 2 billing) ## Impact - ✅ **2-3x faster** migration execution for new installations - ✅ **Faster dev environment** setup (database resets) - ✅ Both `IS_BILLING_ENABLED=false` and `true` modes tested and verified - ✅ All critical tables and constraints verified ## Testing - Tested migrations from scratch with billing disabled (26 migrations) - Tested migrations from scratch with billing enabled (29 migrations) - Verified all critical tables exist (workspace, user, fieldMetadata, etc.) - Verified all 7 billing tables created correctly when enabled - Confirmed `DEFERRABLE` constraint is properly applied ## Files Changed - 180 files changed: +443 insertions, -6,462 deletions - Net reduction: -6,019 lines of code
The #1 Open-Source CRM
🌐 Website · 📚 Documentation · Roadmap ·
Discord ·
Figma
Installation
See:
🚀 Self-hosting
🖥️ Local Setup
Does the world need another CRM?
We built Twenty for three reasons:
CRMs are too expensive, and users are trapped. Companies use locked-in customer data to hike prices. It shouldn't be that way.
A fresh start is required to build a better experience. We can learn from past mistakes and craft a cohesive experience inspired by new UX patterns from tools like Notion, Airtable or Linear.
We believe in Open-source and community. Hundreds of developers are already building Twenty together. Once we have plugin capabilities, a whole ecosystem will grow around it.
What You Can Do With Twenty
Please feel free to flag any specific needs you have by creating an issue.
Below are a few features we have implemented to date:
- Personalize layouts with filters, sort, group by, kanban and table views
- Customize your objects and fields
- Create and manage permissions with custom roles
- Automate workflow with triggers and actions
- Emails, calendar events, files, and more
Personalize layouts with filters, sort, group by, kanban and table views
Customize your objects and fields
Create and manage permissions with custom roles
Automate workflow with triggers and actions
Emails, calendar events, files, and more
Stack
- TypeScript
- Nx
- NestJS, with BullMQ, PostgreSQL, Redis
- React, with Recoil, Emotion and Lingui
Thanks
Thanks to these amazing services that we use and recommend for UI testing (Chromatic), code review (Greptile), catching bugs (Sentry) and translating (Crowdin).
Join the Community
- Star the repo
- Subscribe to releases (watch -> custom -> releases)
- Follow us on Twitter or LinkedIn
- Join our Discord
- Improve translations on Crowdin
- Contributions are, of course, most welcome!





