diff options
author | Joas Schilling <coding@schilljs.com> | 2018-01-17 11:35:20 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-01-17 11:37:36 +0100 |
commit | 4a5282ba2191059a356540165ac43dcb972eda8d (patch) | |
tree | bcf8e51b550f70f45bee4f652288ad00f57847f1 /lib/private/DB/MigrationService.php | |
parent | 6e95bd7a518f587836124e7cb3a3762fb4a62e8c (diff) | |
download | nextcloud-server-4a5282ba2191059a356540165ac43dcb972eda8d.tar.gz nextcloud-server-4a5282ba2191059a356540165ac43dcb972eda8d.zip |
Fix the type hints of migrations and correctly inject the wrapped schema into migrations
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/DB/MigrationService.php')
-rw-r--r-- | lib/private/DB/MigrationService.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/DB/MigrationService.php b/lib/private/DB/MigrationService.php index cbe5bd9b957..57283fbe8b5 100644 --- a/lib/private/DB/MigrationService.php +++ b/lib/private/DB/MigrationService.php @@ -423,7 +423,7 @@ class MigrationService { } $instance->preSchemaChange($this->output, function() { - return $this->connection->createSchema(); + return new SchemaWrapper($this->connection); }, ['tablePrefix' => $this->connection->getPrefix()]); $toSchema = $instance->changeSchema($this->output, function() { @@ -436,7 +436,7 @@ class MigrationService { } $instance->postSchemaChange($this->output, function() { - return $this->connection->createSchema(); + return new SchemaWrapper($this->connection); }, ['tablePrefix' => $this->connection->getPrefix()]); $this->markAsExecuted($version); |