Tidb.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Matomo - free/libre analytics platform |
| 5 | * |
| 6 | * @link https://matomo.org |
| 7 | * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later |
| 8 | */ |
| 9 | namespace Piwik\Db\Schema; |
| 10 | |
| 11 | /** |
| 12 | * Mariadb schema |
| 13 | */ |
| 14 | class Tidb extends \Piwik\Db\Schema\Mysql |
| 15 | { |
| 16 | /** |
| 17 | * TiDB performs a sanity check before performing e.g. ALTER TABLE statements. If any of the used columns does not |
| 18 | * exist before the query fails. This also happens if the column would be added in the same query. |
| 19 | * |
| 20 | * @return bool |
| 21 | */ |
| 22 | public function supportsComplexColumnUpdates() : bool |
| 23 | { |
| 24 | return false; |
| 25 | } |
| 26 | public function getDefaultPort() : int |
| 27 | { |
| 28 | return 4000; |
| 29 | } |
| 30 | } |
| 31 |