diff --git a/docs/index.md b/docs/index.md index 63cbabffd..c716e3313 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 000000000..d70d6a00c --- /dev/null +++ b/docs/v3-to-v4-update.md @@ -0,0 +1,19 @@ +## Updating from v3 to v4 + +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. diff --git a/src/DatabaseDriver.php b/src/DatabaseDriver.php index 25b25677d..433d884f3 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. *