From e7b326cfd6f6c2da2fee8b7bd71ec4c3dc4cc938 Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Thu, 1 Sep 2022 12:32:45 -0700 Subject: [PATCH] Remove property-based schema comparison APIs --- UPGRADE.md | 8 +- phpcs.xml.dist | 2 +- psalm.xml.dist | 13 -- src/Schema/ColumnDiff.php | 70 +++++----- src/Schema/Comparator.php | 99 -------------- .../Schema/SQLServerSchemaManagerTest.php | 5 - .../SchemaManagerFunctionalTestCase.php | 2 - .../AbstractMySQLPlatformTestCase.php | 12 -- tests/Platforms/AbstractPlatformTestCase.php | 51 ------- tests/Platforms/DB2PlatformTest.php | 73 ++++------- tests/Platforms/OraclePlatformTest.php | 14 -- tests/Platforms/PostgreSQLPlatformTest.php | 18 --- tests/Platforms/SQLServerPlatformTestCase.php | 41 ------ tests/Platforms/SQLitePlatformTest.php | 18 --- tests/Schema/ComparatorTest.php | 124 +++++------------- 15 files changed, 107 insertions(+), 443 deletions(-) diff --git a/UPGRADE.md b/UPGRADE.md index 95570e82982..aae5a83681e 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -537,9 +537,13 @@ Instead of returning an empty value, `Connection::lastInsertId()` throws an exce The method `Comparator::compareSchemas()` cannot be called statically anymore. -## Removed `Comparator::compare()` +## Removed `Comparator` methods -The method `Comparator::compare()` has been removed, use `Comparator::compareSchemas()` instead. +The `Comparator::compare()` and `::diffColumn()` methods have been removed. + +## Removed `ColumnDiff` methods + +The `ColumnDiff::hasChanged()` method has been removed. ## Removed `TableGenerator` component diff --git a/phpcs.xml.dist b/phpcs.xml.dist index c5292eae51e..9c1f13f8891 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -106,7 +106,7 @@ - src/Schema/Comparator.php + src/Schema/ColumnDiff.php - - - - - - - - -