Repository navigation
📦 CommonModel Update — Database Management Enhancements
This release introduces major enhancements to the CommonModel class, focused on improving database schema and table management. The update is ideal for developers looking to perform advanced database operations programmatically.
🆕 What's New
-
New Schema Functions:
- Create, drop, and rename tables
- Add or remove columns
- Update column definitions
- Drop primary and foreign keys
-
Data Management:
- Truncate all data from a specific table
-
Database Utilities:
- List, create, and delete tables and databases
- Retrieve column metadata for tables
-
Codebase Improvements:
- Deprecated the
WhereWithJoinsmethod - Enhanced inline documentation and added usage examples for easier integration
- Deprecated the
✅ Recommended Use
These additions are ideal for dynamic applications requiring runtime schema adjustments, database migrations, or modular database control in admin tools or CMS systems.