diff options
Diffstat (limited to 'lib/private/db/mdb2schemamanager.php')
-rw-r--r-- | lib/private/db/mdb2schemamanager.php | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/lib/private/db/mdb2schemamanager.php b/lib/private/db/mdb2schemamanager.php index 1e90c8bda5c..4208dbd18f4 100644 --- a/lib/private/db/mdb2schemamanager.php +++ b/lib/private/db/mdb2schemamanager.php @@ -95,19 +95,6 @@ class MDB2SchemaManager { } /** - * drop a table - * @param string $tableName the table to drop - */ - public function dropTable($tableName) { - $sm = $this->conn->getSchemaManager(); - $fromSchema = $sm->createSchema(); - $toSchema = clone $fromSchema; - $toSchema->dropTable($tableName); - $sql = $fromSchema->getMigrateToSql($toSchema, $this->conn->getDatabasePlatform()); - $this->conn->executeQuery($sql); - } - - /** * remove all tables defined in a database structure xml file * @param string $file the xml file describing the tables */ @@ -125,27 +112,6 @@ class MDB2SchemaManager { } /** - * replaces the ownCloud tables with a new set - * @param string $file path to the MDB2 xml db export file - */ - public function replaceDB( $file ) { - $apps = \OC_App::getAllApps(); - $this->conn->beginTransaction(); - // Delete the old tables - $this->removeDBStructure( \OC::$SERVERROOT . '/db_structure.xml' ); - - foreach($apps as $app) { - $path = \OC_App::getAppPath($app).'/appinfo/database.xml'; - if(file_exists($path)) { - $this->removeDBStructure( $path ); - } - } - - // Create new tables - $this->conn->commit(); - } - - /** * @param \Doctrine\DBAL\Schema\Schema $schema * @return bool */ |