summaryrefslogtreecommitdiffstats
path: root/lib/public/idbconnection.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/idbconnection.php')
-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);
}