From 248eda9f7252dc7646493776cf9357160ed7598b Mon Sep 17 00:00:00 2001 From: Harald Leithner Date: Tue, 18 Mar 2025 19:57:28 +0100 Subject: [PATCH 1/3] Remove deprecated and incorrect working quoteNameStr method --- src/DatabaseDriver.php | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/DatabaseDriver.php b/src/DatabaseDriver.php index 25b25677..433d884f 100644 --- a/src/DatabaseDriver.php +++ b/src/DatabaseDriver.php @@ -1579,36 +1579,6 @@ protected function quoteNameString($name, $asSinglePart = false) return $q[0] . str_replace('.', "$q[1].$q[0]", $name) . $q[1]; } - /** - * Quote strings coming from quoteName call. - * - * @param array $strArr Array of strings coming from quoteName dot-explosion. - * - * @return string Dot-imploded string of quoted parts. - * - * @since 1.0 - * @deprecated 2.0 Use quoteNameString instead - */ - protected function quoteNameStr($strArr) - { - $parts = []; - $q = $this->nameQuote; - - foreach ($strArr as $part) { - if ($part === null) { - continue; - } - - if (\strlen($q) === 1) { - $parts[] = $q . $part . $q; - } else { - $parts[] = $q[0] . $part . $q[1]; - } - } - - return implode('.', $parts); - } - /** * This function replaces a string identifier with the configured table prefix. * From 76ee43ea01ec2d0aa050b4547cdd2b9e2693a284 Mon Sep 17 00:00:00 2001 From: Harald Leithner Date: Wed, 19 Mar 2025 10:44:59 +0100 Subject: [PATCH 2/3] Add documentation --- docs/index.md | 1 + docs/v3-to-v4-update.md | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 docs/v3-to-v4-update.md diff --git a/docs/index.md b/docs/index.md index 63cbabff..c716e331 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,2 +1,3 @@ * [Overview](overview.md) * [Updating from v1 to v2](v1-to-v2-update.md) +* [Updating from v3 to v4](v3-to-v4-update.md) diff --git a/docs/v3-to-v4-update.md b/docs/v3-to-v4-update.md new file mode 100644 index 00000000..8c4c9dcc --- /dev/null +++ b/docs/v3-to-v4-update.md @@ -0,0 +1,19 @@ +## Updating from v1 to v2 + +The following changes were made to the Database package between v3 and v4. + +### Minimum supported PHP version raised + +All Framework packages now require PHP 8.1 or newer. + +### Minimum supported database versions raised + +The following are the minimum supported database versions: + +- MySQL: 5.6 +- PostgreSQL: 9.2.0 +- MS SQL: 11.0.2100.60 (SQL Server 2012) + +### Removed quoteNameStr + +The deprecated method `quoteNameStr` has been removed. Use `quoteNameString` instead. From 5361bdf813c5edb85925cf2acff06ca9df0dadea Mon Sep 17 00:00:00 2001 From: Harald Leithner Date: Sat, 22 Mar 2025 15:19:47 +0100 Subject: [PATCH 3/3] Update docs/v3-to-v4-update.md Co-authored-by: Richard Fath --- docs/v3-to-v4-update.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/v3-to-v4-update.md b/docs/v3-to-v4-update.md index 8c4c9dcc..d70d6a00 100644 --- a/docs/v3-to-v4-update.md +++ b/docs/v3-to-v4-update.md @@ -1,4 +1,4 @@ -## Updating from v1 to v2 +## Updating from v3 to v4 The following changes were made to the Database package between v3 and v4.