From a60a912638a0f691275a290345c1b7ee251e445d Mon Sep 17 00:00:00 2001 From: Sergei Tigrov Date: Tue, 26 Sep 2023 13:18:37 +0700 Subject: [PATCH] Deprecate compositeForeignKey() (#755) Co-authored-by: Sergei Predvoditelev --- CHANGELOG.md | 7 ++++--- src/Schema/TableSchemaInterface.php | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 137af005f..bb84eb0d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,10 +3,11 @@ ## 1.1.2 under development - Bug #751: Fix collected debug actions (@xepozz) +- Chg #755: Deprecate `TableSchemaInterface::compositeForeignKey()` (@Tigrov) - Enh #756: Refactor `Quoter` (@Tigrov) -- Bug #756: Fix `quoteSql()` for SQL containing table with prefix (@Tigrov) -- Bug #756: Fix `getTableNameParts()` for cases when different quotes for tables and columns (@Tigrov) -- Bug #756: Fix `quoteTableName()` for sub-query with alias (@Tigrov) +- Bug #756: Fix `Quoter::quoteSql()` for SQL containing table with prefix (@Tigrov) +- Bug #756: Fix `Quoter::getTableNameParts()` for cases when different quotes for tables and columns (@Tigrov) +- Bug #756: Fix `Quoter::quoteTableName()` for sub-query with alias (@Tigrov) ## 1.1.1 August 16, 2023 diff --git a/src/Schema/TableSchemaInterface.php b/src/Schema/TableSchemaInterface.php index 1dd5d72d3..47fe0c107 100644 --- a/src/Schema/TableSchemaInterface.php +++ b/src/Schema/TableSchemaInterface.php @@ -210,6 +210,8 @@ public function foreignKey(string|int $id, array $to): void; * @param string $to The column name in foreign table. * * @throws NotSupportedException + * + * @deprecated will be removed in version 2.0.0 */ public function compositeForeignKey(int $id, string $from, string $to): void; }