Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -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)
19 changes: 19 additions & 0 deletions docs/v3-to-v4-update.md
Original file line number Diff line number Diff line change
@@ -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.
30 changes: 0 additions & 30 deletions src/DatabaseDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down