Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
50.00% |
2 / 4 |
|
50.00% |
2 / 4 |
CRAP | |
0.00% |
0 / 1 |
| common_persistence_sql_dbal_SchemaManager | |
50.00% |
2 / 4 |
|
50.00% |
2 / 4 |
6.00 | |
0.00% |
0 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getSchemaManager | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getIndexAlreadyExistsErrorCode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getColumnNotFoundErrorCode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | use Doctrine\DBAL\Schema\AbstractSchemaManager; |
| 4 | |
| 5 | /** |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License |
| 8 | * as published by the Free Software Foundation; under version 2 |
| 9 | * of the License (non-upgradable). |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 19 | * |
| 20 | * Copyright (c) 2014 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT); |
| 21 | * |
| 22 | * @author "Lionel Lecaque, <lionel@taotesting.com>" |
| 23 | * @license GPLv2 |
| 24 | * @package generis |
| 25 | * |
| 26 | */ |
| 27 | class common_persistence_sql_dbal_SchemaManager extends common_persistence_sql_SchemaManager |
| 28 | { |
| 29 | private $dbalSchemaManager; |
| 30 | |
| 31 | |
| 32 | /** |
| 33 | * @author "Lionel Lecaque, <lionel@taotesting.com>" |
| 34 | * @param AbstractSchemaManager $dbalSchemaManager |
| 35 | */ |
| 36 | public function __construct($dbalSchemaManager) |
| 37 | { |
| 38 | $this->dbalSchemaManager = $dbalSchemaManager; |
| 39 | } |
| 40 | |
| 41 | |
| 42 | /** |
| 43 | * @author "Lionel Lecaque, <lionel@taotesting.com>" |
| 44 | * @return AbstractSchemaManager |
| 45 | */ |
| 46 | protected function getSchemaManager() |
| 47 | { |
| 48 | return $this->dbalSchemaManager; |
| 49 | } |
| 50 | |
| 51 | |
| 52 | /** |
| 53 | * Short description of method getIndexAlreadyExistsErrorCode |
| 54 | * |
| 55 | * @access public |
| 56 | * @author Jerome Bogaerts, <jerome@taotesting.com> |
| 57 | * @return string |
| 58 | */ |
| 59 | public function getIndexAlreadyExistsErrorCode() |
| 60 | { |
| 61 | return '42P07'; |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * Short description of method getIndexAlreadyExistsErrorCode |
| 66 | * |
| 67 | * @access public |
| 68 | * @author Jerome Bogaerts, <jerome@taotesting.com> |
| 69 | * @return string |
| 70 | */ |
| 71 | public function getColumnNotFoundErrorCode() |
| 72 | { |
| 73 | return '42703'; |
| 74 | } |
| 75 | } |