summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-08-02 13:19:27 +0200
committerBart Visscher <bartv@thisnet.nl>2013-08-02 13:19:27 +0200
commit59c5529a2ba966b49622706eddce43f04b4a25b4 (patch)
treec9466205199a3aeda39a1000df185c4f773a1dfe
parent943288542804996687d41c548acf25800d270a49 (diff)
downloadnextcloud-server-59c5529a2ba966b49622706eddce43f04b4a25b4.tar.gz
nextcloud-server-59c5529a2ba966b49622706eddce43f04b4a25b4.zip
Rename \OC\DB\Schema to \OC\DB\MDB2SchemaManager
-rw-r--r--lib/db.php12
-rw-r--r--lib/db/mdb2schemamanager.php (renamed from lib/db/schema.php)2
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/db.php b/lib/db.php
index a618e8ebb94..b92f7820f31 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -397,7 +397,7 @@ class OC_DB {
*/
public static function getDbStructure( $file, $mode=MDB2_SCHEMA_DUMP_STRUCTURE) {
self::connectDoctrine();
- $schema = new \OC\DB\Schema(self::$connection);
+ $schema = new \OC\DB\MDB2SchemaManager(self::$connection);
return $schema->getDbStructure($file);
}
@@ -410,7 +410,7 @@ class OC_DB {
*/
public static function createDbFromStructure( $file ) {
self::connectDoctrine();
- $schema = new \OC\DB\Schema(self::$connection);
+ $schema = new \OC\DB\MDB2SchemaManager(self::$connection);
$result = $schema->createDbFromStructure($file);
return $result;
}
@@ -423,7 +423,7 @@ class OC_DB {
*/
public static function updateDbFromStructure($file) {
self::connectDoctrine();
- $schema = new \OC\DB\Schema(self::$connection);
+ $schema = new \OC\DB\MDB2SchemaManager(self::$connection);
try {
$result = $schema->updateDbFromStructure($file);
} catch (Exception $e) {
@@ -605,7 +605,7 @@ class OC_DB {
*/
public static function dropTable($tableName) {
self::connectDoctrine();
- $schema = new \OC\DB\Schema(self::$connection);
+ $schema = new \OC\DB\MDB2SchemaManager(self::$connection);
$schema->dropTable($tableName);
}
@@ -615,7 +615,7 @@ class OC_DB {
*/
public static function removeDBStructure($file) {
self::connectDoctrine();
- $schema = new \OC\DB\Schema(self::$connection);
+ $schema = new \OC\DB\MDB2SchemaManager(self::$connection);
$schema->removeDBStructure($file);
}
@@ -625,7 +625,7 @@ class OC_DB {
*/
public static function replaceDB( $file ) {
self::connectDoctrine();
- $schema = new \OC\DB\Schema(self::$connection);
+ $schema = new \OC\DB\MDB2SchemaManager(self::$connection);
$schema->replaceDB($file);
}
diff --git a/lib/db/schema.php b/lib/db/mdb2schemamanager.php
index b2dd982e8ea..2f828beb824 100644
--- a/lib/db/schema.php
+++ b/lib/db/mdb2schemamanager.php
@@ -8,7 +8,7 @@
namespace OC\DB;
-class Schema {
+class MDB2SchemaManager {
/**
* @var \Doctrine\DBAL\Connection $conn
*/