Skip to main content

2 posts tagged with "migration"

View All Tags

MySQL Foreign Keys and Schema Management

· One min read

Important MySQL schema management improvements.

Auto Foreign Key Generation​

ensureTables automatically creates foreign key constraints:

+ MysqlRepository: FK generation logic
+ Auto-create FOREIGN KEY based on domain model relationships

No need to manually manage foreign key relationships.

ALTER TABLE Fix​

Corrected MySQL ALTER TABLE statement generation:

+ Column type changes and nullability updates
+ Schema migration edge case handling

ensureTables Flow​

  1. Create missing tables
  2. Add missing columns
  3. Generate foreign keys (new)
  4. Fix column type mismatches

Checker Optimization​

needCheck logic optimized to reduce unnecessary validation overhead.

Rebranding: From DoubleChain to TeaQL

· One min read

TeaQL officially broke away from its legacy brand to become an independent open-source project.

Package Restructuring​

- com.doublechaintech.data
+ io.teaql.data

All classes were migrated, including BaseEntity, BaseRequest, SQLRepository, UserContext, and the entire expression parser framework.

This migration marked the birth of TeaQL as a standalone brand.