From fb4d8f6ba984f27cedc8275f52abb84ef9fb340a Mon Sep 17 00:00:00 2001 From: Tigrov Date: Sat, 23 Sep 2023 12:46:07 +0700 Subject: [PATCH 1/3] Deprecate compositeForeignKey() https://github.com/yiisoft/db-sqlite/pull/268#pullrequestreview-1564079720 --- src/Schema/TableSchemaInterface.php | 2 ++ 1 file changed, 2 insertions(+) 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; } From 2ef11cbdd739aabf2f6428ef866a737f8cda7fe3 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Tue, 26 Sep 2023 08:41:18 +0700 Subject: [PATCH 2/3] Add line to CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3af0daf3b..553157420 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 1.1.2 under development - Bug #751: Fix collected debug actions (@xepozz) +- Chg #755: Deprecate `compositeForeignKey()` (@Tigrov) ## 1.1.1 August 16, 2023 From 1433c4cec99b45cdcf7f0c435f1e47e93fe60d91 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Tue, 26 Sep 2023 09:17:54 +0300 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1166e015a..bb84eb0d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## 1.1.2 under development - Bug #751: Fix collected debug actions (@xepozz) -- Chg #755: Deprecate `compositeForeignKey()` (@Tigrov) +- Chg #755: Deprecate `TableSchemaInterface::compositeForeignKey()` (@Tigrov) - Enh #756: Refactor `Quoter` (@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)