Skip to content

Commit

Permalink
FriendsOfSymfony#71 last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zocimek committed Sep 19, 2012
1 parent e49ffd0 commit a98f2cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Command/MongoDBMigrateMetadataCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@ public function isEnabled()
protected function configure()
{
$this
->setName('ornicar:message:mongodb:migrate:metadata')
->setName('fos:message:mongodb:migrate:metadata')
->setDescription('Migrates document hash fields to embedded metadata and active/unread arrays')
->addArgument('participantClass', InputArgument::REQUIRED, 'Participant class')
->addOption('safe', null, InputOption::VALUE_OPTIONAL, 'Mongo update option', false)
->addOption('fsync', null, InputOption::VALUE_OPTIONAL, 'Mongo update option', false)
->setHelp(<<<'EOT'
The <info>ornicar:message:mongodb:migrate:metadata</info> command migrates old document hash
The <info>fos:message:mongodb:migrate:metadata</info> command migrates old document hash
fields to a new schema optimized for MongoDB queries. This command requires the
participant class to be provided as its first and only parameter:
<info>php app/console ornicar:message:mongodb:migrate:metadata "Acme\Document\User"</info>
<info>php app/console fos:message:mongodb:migrate:metadata "Acme\Document\User"</info>
The following hash fields will become obsolete after migration:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ MessageBundle supports threads, spam detection, soft deletion and messenging per
MessageBundle can be used with FOSUserBundle, but it is not required.

**Note:** PR #32 introduced significant schema changes for the MongoDB model
layer. The ``ornicar:message:mongodb:migrate:metadata`` console command may be
layer. The ``fos:message:mongodb:migrate:metadata`` console command may be
used to migrate your existing schema. Please refer to the command's help message
for additional information.

Expand Down
2 changes: 1 addition & 1 deletion Resources/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ recipient. This dependency is optional if you implement a custom form type for
new messages and specify your class in the `new_thread_form.type` config option.

**Note:** PR #32 introduced significant schema changes for the MongoDB model
layer. The ``ornicar:message:mongodb:migrate:metadata`` console command may be
layer. The ``fos:message:mongodb:migrate:metadata`` console command may be
used to migrate your existing schema. Please refer to the command's help message
for additional information.

Expand Down

0 comments on commit a98f2cc

Please sign in to comment.