Skip to content

📦 CommonModel Update — Database Management Enhancements

Choose a tag to compare

@bertugfahriozer bertugfahriozer released this 23 May 00:03
· 13 commits to master since this release

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 WhereWithJoins method
    • Enhanced inline documentation and added usage examples for easier integration

✅ 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.