summaryrefslogtreecommitdiffstats
path: root/core/Command/Db
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command/Db')
-rw-r--r--core/Command/Db/Migrations/GenerateCommand.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/Command/Db/Migrations/GenerateCommand.php b/core/Command/Db/Migrations/GenerateCommand.php
index f8a992940f9..4db82d6eff4 100644
--- a/core/Command/Db/Migrations/GenerateCommand.php
+++ b/core/Command/Db/Migrations/GenerateCommand.php
@@ -38,7 +38,7 @@ class GenerateCommand extends Command {
protected static $_templateSimple =
'<?php
-namespace <namespace>;
+namespace {{<namespace}};
use Doctrine\DBAL\Schema\Schema;
use OCP\Migration\SimpleMigrationStep;
@@ -47,7 +47,7 @@ use OCP\Migration\IOutput;
/**
* Auto-generated migration step: Please modify to your needs!
*/
-class <classname> extends SimpleMigrationStep {
+class {{classname}} extends SimpleMigrationStep {
/**
* @param IOutput $output
@@ -66,7 +66,7 @@ class <classname> extends SimpleMigrationStep {
* @since 13.0.0
*/
public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
-<schemabody>
+{{schemabody}}
}
/**
@@ -133,9 +133,9 @@ class <classname> extends SimpleMigrationStep {
$placeHolders = [
- '<namespace>',
- '<classname>',
- '<schemabody>',
+ '{{namespace}}',
+ '{{classname}}',
+ '{{schemabody}}',
];
$replacements = [
$ms->getMigrationsNamespace(),