diff options
Diffstat (limited to 'lib/db/schema.php')
-rw-r--r-- | lib/db/schema.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/db/schema.php b/lib/db/schema.php index ca90e300e0d..231b8068af0 100644 --- a/lib/db/schema.php +++ b/lib/db/schema.php @@ -18,11 +18,10 @@ class OC_DB_Schema { * * TODO: write more documentation */ - public static function getDbStructure( $conn, $file ,$mode=MDB2_SCHEMA_DUMP_STRUCTURE) { + public static function getDbStructure( $conn, $file, $mode=MDB2_SCHEMA_DUMP_STRUCTURE) { $sm = $conn->getSchemaManager(); - $fromSchema = $sm->createSchema(); - return OC_DB_MDB2SchemaWriter::saveSchemaToFile($file); + return OC_DB_MDB2SchemaWriter::saveSchemaToFile($file, $sm); } /** |