@@ -243,6 +243,34 @@ all drivers and middleware.
243243
244244# Upgrade to 4.3
245245
246+ ## Deprecated ` Index ` methods, properties and behavior
247+
248+ The following ` Index ` methods and properties have been deprecated:
249+
250+ - ` Index::getColumns() ` , ` Index::getQuotedColumns() ` , ` Index::getUnquotedColumns() ` ,
251+ ` Index::$_columns ` – use ` Index::getIndexedColumns() ` instead.
252+ - ` Index::isSimpleIndex() ` , ` Index::isUnique() ` , ` Index::$_isUnique ` – use ` Index::getType() ` and compare with
253+ ` IndexType::REGULAR ` or ` IndexType::UNIQUE ` instead.
254+ - ` Index::addFlag() ` , ` Index::removeFlag() ` , ` Index::getFlags() ` , ` Index::hasFlag() ` , ` Index::$_flags ` – use
255+ ` IndexEditor::setType() ` , ` Index::getType() ` , ` IndexEditor::setIsClustered() ` and ` Index::isClustered() ` instead.
256+ - ` Index::getOption() ` , ` Index::hasOption() ` and ` Index::getOptions() ` – use ` Index::getIndexedColumns() ` and
257+ ` Index::getPredicate() ` instead.
258+ - ` Index::overrules() ` , ` Index::hasColumnAtPosition() ` – no replacement provided.
259+ - ` AbstractPlatform::supportsColumnLengthIndexes() ` – no replacement provided.
260+
261+ Additionally,
262+ 1 . Instantiation of an index without columns is deprecated.
263+ 2 . The ` Index::spansColumns() ` method has been marked as internal.
264+ 3 . Passing an empty string as partial index predicate has been deprecated.
265+ 4 . The ` Index ` constructor has been marked as internal. Use ` Index::editor() ` to instantiate an editor and
266+ ` IndexEditor::create() ` to create an index.
267+
268+ The following conflicting index configurations have been deprecated:
269+ 1 . Spatial index with column lengths specified.
270+ 2 . Clustered fulltext or spatial index.
271+ 3 . Partial fulltext or spatial index.
272+ 4 . Clustered partial index.
273+
246274## Deprecated features related to primary key constraints
247275
2482761 . The ` AbstractPlatform::getCreatePrimaryKeySQL() ` method has been deprecated. Use the schema manager to create and
@@ -279,9 +307,12 @@ of the primary key constraint is deprecated. Instead, drop the auto-increment at
279307Passing a non-empty ` $modifiedIndexes ` value to the ` TableDiff ` constructor is deprecated. Instead, pass dropped
280308indexes via ` $droppedIndexes ` and added indexes via ` $addedIndexes ` .
281309
282- The ` TableDiff::getModifiedIndexes() ` method has been deprecated. The old version of the index is included in the return
283- value of ` TableDiff::getDroppedIndexes() ` , the new version is included in the return value of
284- ` TableDiff::getAddedIndexes() ` .
310+ Detection of modified indexes is deprecated. Please disable it by configuring the comparator using
311+ ` ComparatorConfig::withReportModifiedIndexes(false) ` . With this configuration, the old version of the index will be
312+ included in the return value of ` TableDiff::getDroppedIndexes() ` , and the new version will be included in the return
313+ value of ` TableDiff::getAddedIndexes() ` .
314+
315+ The ` TableDiff::getModifiedIndexes() ` method has been deprecated.
285316
286317## Deprecated handling of modified foreign keys in ` TableDiff `
287318
@@ -364,7 +395,7 @@ the `Schema` class itself.
364395
365396## Deprecated ` ForeignKeyConstraint ` methods, properties and behavior
366397
367- The following ` ForeignKeyConstraint ` methods and property have been deprecated:
398+ The following ` ForeignKeyConstraint ` methods and properties have been deprecated:
368399
369400- ` ForeignKeyConstraint::getForeignTableName() ` , ` ForeignKeyConstraint::getQuotedForeignTableName() ` ,
370401 ` ForeignKeyConstraint::getUnqualifiedForeignTableName() ` , ` ForeignKeyConstraint::$_foreignTableName ` – use
0 commit comments