Skip to content

Commit

Permalink
Update TableAction.php
Browse files Browse the repository at this point in the history
  • Loading branch information
parsgit committed Nov 22, 2023
1 parent 9342b0c commit 9ef3473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TableAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected function configure()
{
Directory::initDefaultStructure();
$this->addArgument('action', InputArgument::REQUIRED);
$this->addArgument('table_name', InputArgument::REQUIRED);
$this->addArgument('table_name', InputArgument::OPTIONAL);
}

protected function execute(InputInterface $input, OutputInterface $output)
Expand Down Expand Up @@ -55,7 +55,7 @@ private function showAllTableColumns($output, $name)
}

public function dropTable($input, $output){
$name = $input->getArgument('table');
$name = $input->getArgument('table_name');

$helper = $this->getHelper('question');
$question = new ConfirmationQuestion('<question>Are you sure you want to delete the "<error>'.$name.'</error>" tables?(Type yes to continue):</question>', false);
Expand Down

0 comments on commit 9ef3473

Please sign in to comment.