Skip to content
Snippets Groups Projects
Select Git revision
  • 7d9d375d9acb0b73e98cc2deb1fad551366730ea
  • master default protected
  • release_4.0.0
  • laminas_migration
  • 4.0.0
  • 3.0.3
  • 3.0.2
  • 3.0.1
  • 3.0.0
  • 1.2.15
  • 1.2.14
  • 1.2.13
  • 1.2.12
  • 1.2.11
  • 1.2.10
  • 1.2.9
  • 1.2.8
  • 1.2.7
  • 1.2.6
  • 1.2.5
  • 1.2.4
  • 1.2.3
  • 1.2.2
  • 1.2.1
24 results

DataService.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    UpdateDdlCommand.php 712 B
    <?php
    
    namespace Unicaen\BddAdmin\Command;
    
    use Symfony\Component\Console\Command\Command;
    use Symfony\Component\Console\Input\InputInterface;
    use Symfony\Component\Console\Output\OutputInterface;
    use Symfony\Component\Console\Style\SymfonyStyle;
    use Unicaen\BddAdmin\BddAwareTrait;
    
    /**
     * Description of UpdateDdlCommand
     *
     * @author Laurent Lécluse <laurent.lecluse at unicaen.fr>
     */
    class UpdateDdlCommand extends Command
    {
        use BddAwareTrait;
    
        protected function execute(InputInterface $input, OutputInterface $output): int
        {
            $io  = new SymfonyStyle($input, $output);
            $bdd = $this->getBdd()->setLogger($io);
    
            $bdd->updateDdl();
    
            return Command::SUCCESS;
        }
    }