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 /core/Migrations/Version13000Date20170919121250.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 'core/Migrations/Version13000Date20170919121250.php')
-rw-r--r-- | core/Migrations/Version13000Date20170919121250.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/Migrations/Version13000Date20170919121250.php b/core/Migrations/Version13000Date20170919121250.php index 0857d6d5ceb..6bdd79cf672 100644 --- a/core/Migrations/Version13000Date20170919121250.php +++ b/core/Migrations/Version13000Date20170919121250.php @@ -23,7 +23,7 @@ */ namespace OC\Core\Migrations; -use Doctrine\DBAL\Schema\Schema; +use OCP\DB\ISchemaWrapper; use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; @@ -34,7 +34,7 @@ class Version13000Date20170919121250 extends SimpleMigrationStep { /** * @param IOutput $output - * @param \Closure $schemaClosure The `\Closure` returns a `Schema` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param array $options * @since 13.0.0 */ @@ -43,13 +43,13 @@ class Version13000Date20170919121250 extends SimpleMigrationStep { /** * @param IOutput $output - * @param \Closure $schemaClosure The `\Closure` returns a `Schema` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param array $options - * @return null|Schema + * @return null|ISchemaWrapper * @since 13.0.0 */ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) { - /** @var Schema $schema */ + /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); $table = $schema->getTable('jobs'); @@ -115,7 +115,7 @@ class Version13000Date20170919121250 extends SimpleMigrationStep { /** * @param IOutput $output - * @param \Closure $schemaClosure The `\Closure` returns a `Schema` + * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param array $options * @since 13.0.0 */ |