Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
our_own_cloud_project
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
8e8de953
Commit
8e8de953
authored
Mar 30, 2017
by
Vincent Petry
Committed by
GitHub
Mar 30, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #27536 from owncloud/write-mirgation-output-to-console-for-occ-commands
Use ConsoleOutput in migration occ commands
parents
c7a1255b
9851fc5c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
core/Command/Db/Migrations/ExecuteCommand.php
core/Command/Db/Migrations/ExecuteCommand.php
+2
-1
core/Command/Db/Migrations/GenerateCommand.php
core/Command/Db/Migrations/GenerateCommand.php
+2
-1
core/Command/Db/Migrations/MigrateCommand.php
core/Command/Db/Migrations/MigrateCommand.php
+2
-1
core/Command/Db/Migrations/StatusCommand.php
core/Command/Db/Migrations/StatusCommand.php
+2
-1
No files found.
core/Command/Db/Migrations/ExecuteCommand.php
View file @
8e8de953
...
...
@@ -23,6 +23,7 @@ namespace OC\Core\Command\Db\Migrations;
use
OC\DB\MigrationService
;
use
OC\Migration\ConsoleOutput
;
use
OCP\IDBConnection
;
use
Symfony\Component\Console\Command\Command
;
use
Symfony\Component\Console\Input\InputArgument
;
...
...
@@ -57,7 +58,7 @@ class ExecuteCommand extends Command {
public
function
execute
(
InputInterface
$input
,
OutputInterface
$output
)
{
$appName
=
$input
->
getArgument
(
'app'
);
$ms
=
new
MigrationService
(
$appName
,
$this
->
connection
);
$ms
=
new
MigrationService
(
$appName
,
$this
->
connection
,
new
ConsoleOutput
(
$output
)
);
$version
=
$input
->
getArgument
(
'version'
);
$ms
->
executeStep
(
$version
);
...
...
core/Command/Db/Migrations/GenerateCommand.php
View file @
8e8de953
...
...
@@ -23,6 +23,7 @@ namespace OC\Core\Command\Db\Migrations;
use
OC\DB\MigrationService
;
use
OC\Migration\ConsoleOutput
;
use
OCP\IConfig
;
use
OCP\IDBConnection
;
use
Symfony\Component\Console\Command\Command
;
...
...
@@ -113,7 +114,7 @@ class Version<version> implements ISqlMigration {
public
function
execute
(
InputInterface
$input
,
OutputInterface
$output
)
{
$appName
=
$input
->
getArgument
(
'app'
);
$ms
=
new
MigrationService
(
$appName
,
$this
->
connection
);
$ms
=
new
MigrationService
(
$appName
,
$this
->
connection
,
new
ConsoleOutput
(
$output
)
);
$kind
=
$input
->
getArgument
(
'kind'
);
$version
=
date
(
'YmdHis'
);
...
...
core/Command/Db/Migrations/MigrateCommand.php
View file @
8e8de953
...
...
@@ -23,6 +23,7 @@ namespace OC\Core\Command\Db\Migrations;
use
OC\DB\MigrationService
;
use
OC\Migration\ConsoleOutput
;
use
OCP\IDBConnection
;
use
Symfony\Component\Console\Command\Command
;
use
Symfony\Component\Console\Input\InputArgument
;
...
...
@@ -54,7 +55,7 @@ class MigrateCommand extends Command {
public
function
execute
(
InputInterface
$input
,
OutputInterface
$output
)
{
$appName
=
$input
->
getArgument
(
'app'
);
$ms
=
new
MigrationService
(
$appName
,
$this
->
connection
);
$ms
=
new
MigrationService
(
$appName
,
$this
->
connection
,
new
ConsoleOutput
(
$output
)
);
$version
=
$input
->
getArgument
(
'version'
);
$ms
->
migrate
(
$version
);
...
...
core/Command/Db/Migrations/StatusCommand.php
View file @
8e8de953
...
...
@@ -22,6 +22,7 @@
namespace
OC\Core\Command\Db\Migrations
;
use
OC\DB\MigrationService
;
use
OC\Migration\ConsoleOutput
;
use
OCP\IDBConnection
;
use
Symfony\Component\Console\Command\Command
;
use
Symfony\Component\Console\Input\InputArgument
;
...
...
@@ -50,7 +51,7 @@ class StatusCommand extends Command {
public
function
execute
(
InputInterface
$input
,
OutputInterface
$output
)
{
$appName
=
$input
->
getArgument
(
'app'
);
$ms
=
new
MigrationService
(
$appName
,
$this
->
connection
);
$ms
=
new
MigrationService
(
$appName
,
$this
->
connection
,
new
ConsoleOutput
(
$output
)
);
$infos
=
$this
->
getMigrationsInfos
(
$ms
);
foreach
(
$infos
as
$key
=>
$value
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment