Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Add missing DiffCommand fromEmptySchema parameter (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvoPereira authored Oct 25, 2022
1 parent 2371e43 commit c888c70
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Command/Doctrine/DiffCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ protected function configure(): void
InputOption::VALUE_NONE,
'Do not throw an exception when no changes are detected.'
)
->addOption(
'from-empty-schema',
null,
InputOption::VALUE_NONE,
'Generate a full migration as if the current database was empty.'
)
->addOption('em', null, InputOption::VALUE_REQUIRED, 'Name of the Entity Manager to handle.')
;
}
Expand All @@ -72,6 +78,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
'--line-length' => $input->getOption('line-length'),
'--check-database-platform' => $input->getOption('check-database-platform'),
'--allow-empty-diff' => $input->getOption('allow-empty-diff'),
'--from-empty-schema' => $input->getOption('from-empty-schema'),
];

if ('' !== (string) $input->getOption('namespace')) {
Expand Down

0 comments on commit c888c70

Please sign in to comment.