/** * {@inheritdoc} */ public function createTable(Table $table) { if (isset($this->allowedCreateTables[$table->getName()])) { if ($this->allowedCreateTables[$table->getName()] === 1) { return parent::createTable($table); } elseif (is_array($this->allowedCreateTables[$table->getName()])) { foreach (['add', 'change', 'remove'] as $mode) { if (isset($this->allowedCreateTables[$table->getName()][$mode])) { $this->migrateTable($mode, $table, $this->allowedCreateTables[$table->getName()][$mode]); } } foreach (['refresh_idx', 'refresh_fk'] as $mode) { if (isset($this->allowedCreateTables[$table->getName()][$mode])) { $this->migrateKeys($mode, $table); } } } } if ($this->verbosity >= OutputInterface::VERBOSITY_VERY_VERBOSE) { $this->output->writeln('<comment>Table ' . $table->getName() . ' not allowed!</comment>'); } return null; }