aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/DB/SchemaDiffTest.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-03-23 23:45:43 -0600
committerGitHub <noreply@github.com>2017-03-23 23:45:43 -0600
commit1397b84777b0507e2b2f9dcaebe2ca48698ebe74 (patch)
tree030970c8efb64bdd81d7da822e88012589a2c477 /tests/lib/DB/SchemaDiffTest.php
parentd197f609a896e6133797824fe700d9f92b2d1df8 (diff)
parent8a4466f9ae916b59a13c93ccabd2d01742e9597f (diff)
downloadnextcloud-server-1397b84777b0507e2b2f9dcaebe2ca48698ebe74.tar.gz
nextcloud-server-1397b84777b0507e2b2f9dcaebe2ca48698ebe74.zip
Merge pull request #3928 from nextcloud/downstream-17978
Adjust 4 byte MySQL code to upstream
Diffstat (limited to 'tests/lib/DB/SchemaDiffTest.php')
-rw-r--r--tests/lib/DB/SchemaDiffTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/DB/SchemaDiffTest.php b/tests/lib/DB/SchemaDiffTest.php
index 88c9abeb431..f74d800bfec 100644
--- a/tests/lib/DB/SchemaDiffTest.php
+++ b/tests/lib/DB/SchemaDiffTest.php
@@ -21,6 +21,7 @@
namespace Test\DB;
+use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Schema\SchemaDiff;
use OC\DB\MDB2SchemaManager;
use OC\DB\MDB2SchemaReader;
@@ -79,7 +80,8 @@ class SchemaDiffTest extends TestCase {
$this->manager->createDbFromStructure($schemaFile);
$schemaReader = new MDB2SchemaReader($this->config, $this->connection->getDatabasePlatform());
- $endSchema = $schemaReader->loadSchemaFromFile($schemaFile);
+ $toSchema = new Schema([], [], $this->connection->getSchemaManager()->createSchemaConfig());
+ $endSchema = $schemaReader->loadSchemaFromFile($schemaFile, $toSchema);
// get the diff
/** @var SchemaDiff $diff */