Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
schema_manager
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 1
6
0.00% covered (danger)
0.00%
0 / 1
 listTableDetails
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
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
14namespace phpbb\db\doctrine\oci8;
15
16use Doctrine\DBAL\Platforms\OraclePlatform;
17use Doctrine\DBAL\Schema\AbstractSchemaManager;
18use Doctrine\DBAL\Schema\OracleSchemaManager;
19use Doctrine\DBAL\Schema\Table;
20
21class 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}