Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-06-07 14:51:54 +0300
committerMorris Jobke <hey@morrisjobke.de>2017-07-05 14:01:19 +0300
commit5d9d1b1cb5c4c301e7c60f58225e9a85168eafbe (patch)
treebaac8378b873cc0518c664100b71288f953355bd /core/Command/Db/Migrations
parent817783e4c7e93fc7bf3bdb50a014966415e19605 (diff)
Allow to check the schema in pre and post as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Command/Db/Migrations')
-rw-r--r--core/Command/Db/Migrations/GenerateCommand.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/core/Command/Db/Migrations/GenerateCommand.php b/core/Command/Db/Migrations/GenerateCommand.php
index 92d8e15b66c..b6e1a17d683 100644
--- a/core/Command/Db/Migrations/GenerateCommand.php
+++ b/core/Command/Db/Migrations/GenerateCommand.php
@@ -51,26 +51,31 @@ class <classname> extends SimpleMigrationStep {
/**
* @param IOutput $output
+ * @param \Closure $schemaClosure The `\Closure` returns a `Schema`
+ * @param array $options
* @since 13.0.0
*/
- public function preSchemaChange(IOutput $output) {
+ public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) {
}
/**
- * @param \Closure $schema The `\Closure` returns a `Schema`
+ * @param IOutput $output
+ * @param \Closure $schemaClosure The `\Closure` returns a `Schema`
* @param array $options
* @return null|Schema
* @since 13.0.0
*/
- public function changeSchema(\Closure $schema, array $options) {
+ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
return null;
}
/**
* @param IOutput $output
+ * @param \Closure $schemaClosure The `\Closure` returns a `Schema`
+ * @param array $options
* @since 13.0.0
*/
- public function postSchemaChange(IOutput $output) {
+ public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) {
}
}
';