/var/www/vhosts/ihelp.ro/_OLD/vendor/robmorgan/phinx/src/Phinx/Console/Command
NameSizeModeActions
AbstractCommand.php110940644editdlrm
Breakpoint.php39140644editdlrm
Create.php122870644editdlrm
Init.php51980644editdlrm
ListAliases.php24140644editdlrm
Migrate.php49790644editdlrm
Rollback.php61580644editdlrm
SeedCreate.php62960644editdlrm
SeedRun.php39160644editdlrm
Status.php28710644editdlrm
Test.php28490644editdlrm
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/robmorgan/phinx/src/Phinx/Console/Command/Breakpoint.php (3914B)
addOption('--environment', '-e', InputOption::VALUE_REQUIRED, 'The target environment.'); $this->setDescription('Manage breakpoints') ->addOption('--target', '-t', InputOption::VALUE_REQUIRED, 'The version number to target for the breakpoint') ->addOption('--set', '-s', InputOption::VALUE_NONE, 'Set the breakpoint') ->addOption('--unset', '-u', InputOption::VALUE_NONE, 'Unset the breakpoint') ->addOption('--remove-all', '-r', InputOption::VALUE_NONE, 'Remove all breakpoints') ->setHelp( <<breakpoint command allows you to toggle, set, or unset a breakpoint against a specific target to inhibit rollbacks beyond a certain target. If no target is supplied then the most recent migration will be used. You cannot specify un-migrated targets phinx breakpoint -e development phinx breakpoint -e development -t 20110103081132 phinx breakpoint -e development -r EOT ); } /** * Toggle the breakpoint. * * @param \Symfony\Component\Console\Input\InputInterface $input Input * @param \Symfony\Component\Console\Output\OutputInterface $output Output * * @throws \InvalidArgumentException * * @return int integer 0 on success, or an error code. */ protected function execute(InputInterface $input, OutputInterface $output) { $this->bootstrap($input, $output); $environment = $input->getOption('environment'); $version = (int)$input->getOption('target') ?: null; $removeAll = $input->getOption('remove-all'); $set = $input->getOption('set'); $unset = $input->getOption('unset'); if ($environment === null) { $environment = $this->getConfig()->getDefaultEnvironment(); $output->writeln('warning no environment specified, defaulting to: ' . $environment); } else { $output->writeln('using environment ' . $environment); } if (!$this->getConfig()->hasEnvironment($environment)) { $output->writeln(sprintf('The environment "%s" does not exist', $environment)); return self::CODE_ERROR; } if ($version && $removeAll) { throw new InvalidArgumentException('Cannot toggle a breakpoint and remove all breakpoints at the same time.'); } if (($set && $unset) || ($set && $removeAll) || ($unset && $removeAll)) { throw new InvalidArgumentException('Cannot use more than one of --set, --unset, or --remove-all at the same time.'); } if ($removeAll) { // Remove all breakpoints. $this->getManager()->removeBreakpoints($environment); } elseif ($set) { // Set the breakpoint. $this->getManager()->setBreakpoint($environment, $version); } elseif ($unset) { // Unset the breakpoint. $this->getManager()->unsetBreakpoint($environment, $version); } else { // Toggle the breakpoint. $this->getManager()->toggleBreakpoint($environment, $version); } return self::CODE_SUCCESS; } }