Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| schema_manager | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
| listTableDetails | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
6 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * |
| 4 | * This file is part of the phpBB Forum Software package. |
| 5 | * |
| 6 | * @copyright (c) phpBB Limited <https://www.phpbb.com> |
| 7 | * @license GNU General Public License, version 2 (GPL-2.0) |
| 8 | * |
| 9 | * For full copyright and license information, please see |
| 10 | * the docs/CREDITS.txt file. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | namespace phpbb\db\middleware\oracle; |
| 15 | |
| 16 | use Doctrine\DBAL\Platforms\OraclePlatform; |
| 17 | use Doctrine\DBAL\Schema\AbstractSchemaManager; |
| 18 | use Doctrine\DBAL\Schema\OracleSchemaManager; |
| 19 | use Doctrine\DBAL\Schema\Table; |
| 20 | |
| 21 | class schema_manager extends OracleSchemaManager |
| 22 | { |
| 23 | /** |
| 24 | * {@inheritdoc} |
| 25 | * |
| 26 | * Copied from upstream to lowercase 'COMMENTS' |
| 27 | */ |
| 28 | public function listTableDetails($name): Table |
| 29 | { |
| 30 | $table = AbstractSchemaManager::listTableDetails($name); |
| 31 | |
| 32 | $platform = $this->_platform; |
| 33 | assert($platform instanceof OraclePlatform); |
| 34 | $sql = $platform->getListTableCommentsSQL($name); |
| 35 | |
| 36 | $tableOptions = $this->_conn->fetchAssociative($sql); |
| 37 | |
| 38 | if ($tableOptions !== false) |
| 39 | { |
| 40 | $table->addOption('comment', $tableOptions['comments']); |
| 41 | } |
| 42 | |
| 43 | return $table; |
| 44 | } |
| 45 | } |