aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-09 18:40:56 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-09 18:40:56 +0100
commit263e008d7b0df17071a9d8ef915586d0cb5abab3 (patch)
treeddac2505e3c55a36f5a3917355933cb175cca1f4 /lib/public
parentd4b3c50f7d14877cbf0bf9fd87807181e51ce93b (diff)
parent6984fa8a19f09fe8e3c9ac8c48225dd40b1cc94c (diff)
downloadnextcloud-server-263e008d7b0df17071a9d8ef915586d0cb5abab3.tar.gz
nextcloud-server-263e008d7b0df17071a9d8ef915586d0cb5abab3.zip
Merge pull request #12695 from owncloud/db-drop-table
Add dropTable to IDBConnection
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/idbconnection.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/public/idbconnection.php b/lib/public/idbconnection.php
index ce17d293e86..32310fe755f 100644
--- a/lib/public/idbconnection.php
+++ b/lib/public/idbconnection.php
@@ -158,4 +158,19 @@ interface IDBConnection {
* @return \Doctrine\DBAL\Platforms\AbstractPlatform The database platform.
*/
public function getDatabasePlatform();
+
+ /**
+ * Drop a table from the database if it exists
+ *
+ * @param string $table table name without the prefix
+ */
+ public function dropTable($table);
+
+ /**
+ * Check if a table exists
+ *
+ * @param string $table table name without the prefix
+ * @return bool
+ */
+ public function tableExists($table);
}