diff --git a/CHANGELOG.md b/CHANGELOG.md index b4240a354612b25d9f8d2d623efa76cb0478b656..bc7213d3684ff7c36001d2505fa6714fd3b25de2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,9 @@ This is a changelog for Piwik platform developers. All changes for our HTTP API' * Add your own SMS/Text provider by creating a new class in the `SMSProvider` directory of your plugin. The class has to extend `Piwik\Plugins\MobileMessaging\SMSProvider` and implement the required methods. * Segments can now be composed by a union of multiple segments. To do this set an array of segments that shall be used for that segment `$segment->setUnionOfSegments(array('outlinkUrl', 'downloadUrl'))` instead of defining a SQL column. +### Deprecations + * The method `DB::tableExists` was un-used and has been removed. + ## Piwik 2.15.0 ### New commands diff --git a/core/Db.php b/core/Db.php index 387f9c7a4de6697225d97d3bc7dbbc6e3d8ebaf5..a4b114d634990369867d6ec3f28fa0f6cec26e81 100644 --- a/core/Db.php +++ b/core/Db.php @@ -631,17 +631,6 @@ class Db } } - /** - * Returns `true` if a table in the database, `false` if otherwise. - * - * @param string $tableName The name of the table to check for. Must be prefixed. - * @return bool - */ - public static function tableExists($tableName) - { - return self::query("SHOW TABLES LIKE ?", $tableName)->rowCount() > 0; - } - /** * Attempts to get a named lock. This function uses a timeout of 1s, but will * retry a set number of times. diff --git a/plugins/CoreConsole/Commands/ManagePlugin.php b/plugins/CoreConsole/Commands/ManagePlugin.php index 1c2a4de0b7c26962b51bb2e67aead772ba330a82..3f07918f7c64ba1c733d04defff086c2ce939cf7 100644 --- a/plugins/CoreConsole/Commands/ManagePlugin.php +++ b/plugins/CoreConsole/Commands/ManagePlugin.php @@ -41,7 +41,7 @@ class ManagePlugin extends ConsoleCommand } /** - * Execute command like: ./console cloudadmin:plugin activate CustomAlerts --piwik-domain=testcustomer.piwik.pro + * Execute command like: ./console core:plugin activate CustomAlerts --piwik-domain=testcustomer.piwik.pro */ protected function execute(InputInterface $input, OutputInterface $output) { diff --git a/tests/PHPUnit/Integration/DbTest.php b/tests/PHPUnit/Integration/DbTest.php index 67b6709796e5243d2c7c931a3aa2af9ad7838158..e30de8a062951068a7a74c29f638bf7ae2914196 100644 --- a/tests/PHPUnit/Integration/DbTest.php +++ b/tests/PHPUnit/Integration/DbTest.php @@ -85,12 +85,6 @@ class DbTest extends IntegrationTestCase Db::destroyDatabaseObject(); } - public function test_tableExists() - { - $this->assertFalse(Db::tableExists('noTExistIngTable')); - $this->assertTrue(Db::tableExists(Common::prefixTable('log_visit'))); - } - public function getDbAdapter() { return array(