Repository navigation
v1.9.25
-
TableFieldReference:- Added nullable field
indexNameto represent the name of the index if one exists.
- Added nullable field
-
Added new class
TableRelationshipReferenceEntityTypedextendingTableRelationshipReference:- Adds
sourceFieldEntityTypeandtargetFieldEntityTypefields of typeTypeInfo. - Provides
copyWithEntityTypesmethod to create typed copies.
- Adds
-
TableRelationshipReference:- Added nullable fields
sourceRelationshipFieldIndexandtargetRelationshipFieldIndex. - Added
copyWithEntityTypesmethod returningTableRelationshipReferenceEntityTyped.
- Added nullable fields
-
EntityHandler:- Added
getFieldsListEntityTypesmethod to return a map of fields that are list entities or references with theirTypeInfo.
- Added
-
SQLDialect:- Added
foreignKeyCreatesImplicitIndexboolean flag with defaulttrue. - Added field
createIndexIfNotExiststo indicate support forIF NOT EXISTSinCREATE INDEX(defaulttrue).
- Added
-
CreateIndexSQL:- Updated
buildSQLmethod to conditionally includeIF NOT EXISTSonly if dialect supports it.
- Updated
-
DBPostgreSQLAdapter:- Added
foreignKeyCreatesImplicitIndexflag to PostgreSQL dialect set tofalse. - Updated
_findAllTableFieldsReferencesquery to include foreign key index name (fk_index_name) by joining withpg_indexandpg_class. - Populated
indexNameinTableFieldReferenceinstances from query result. - Updated relationship references to include
sourceRelationshipFieldIndexandtargetRelationshipFieldIndexfromindexName.
- Added
-
DBMySQLAdapter:- Set
createIndexIfNotExiststofalsein MySQL dialect capabilities.
- Set
-
DBSQLAdapter:parseConfigDBGenerateTablesAndCheckTables: changed return type fromList<bool>to a record with named fields(generateTables, checkTables).extractTableSQLs: updated regex to also matchCREATE INDEXstatements in addition toCREATEandALTER TABLE._populateTablesFromSQLsImpl: fixed error handling forCREATE INDEXstatements when the SQL dialect does not supportIF NOT EXISTS.- Now logs a warning and ignores the error instead of throwing.
- Added detection of missing foreign key indexes when dialect does not create implicit indexes.
- Added detection of missing relationship reference indexes for collection reference fields.
- Updated error reporting and logging to include missing reference indexes and relationship reference indexes.
- Updated
_checkDBTableSchemeReferenceFieldto returnTableRelationshipReferenceEntityTypedwith entity types. - Added generation of missing reference indexes and missing relationship reference indexes SQL statements.
- Updated
_DBTableCheckclass:- Added fields
missingReferenceIndexesandmissingRelationshipReferenceIndexes. - Added methods to generate missing reference indexes and relationship reference indexes SQL.
- Added fields
- Added
_DBRelationshipTableColumnsubclass of_DBTableColumnto represent relationship table columns with relationship table name. - Updated SQL generation to create indexes for foreign keys if dialect does not create implicit indexes:
- Added index creation after foreign key constraints in
generateAddColumnAlterTableSQL. - Added index creation for relationship table foreign keys in relationship table creation SQL.
- Added index creation after foreign key constraints in
-
Dependency updates:
async_extension: ^1.2.19 → ^1.2.20meta: ^1.18.0 → ^1.18.1