public function actionUpdateAll(): int
    {
        $tables = $this->removeExcludedTables($this->db->schema->getTableNames());

        if (!$tables) {
            $this->stdout(' > Your database does not contain any tables yet.', Console::FG_YELLOW);

            return ExitCode::OK;
        }

        if ($this->confirm(' > Are you sure you want to potentially generate ' . count($tables) . ' migrations?')) {
            return $this->actionUpdate(implode(',', $tables));
        }

        $this->stdout(" Operation cancelled by user.\n\n", Console::FG_YELLOW);

        return ExitCode::OK;
    }
public function actionUpdateAll(): int
    {
        $tables = $this->removeExcludedTables($this->db->schema->getTableNames());

        if (!$tables) {
            $this->stdout(' > Your database does not contain any tables yet.', Console::FG_YELLOW);

            return ExitCode::OK;
        }

        if ($this->confirm(' > Are you sure you want to potentially generate ' . count($tables) . ' migrations?')) {
            return $this->actionUpdate(implode(',', $tables));
        }

        $this->stdout(" Operation cancelled by user.\n\n", Console::FG_YELLOW);

        return ExitCode::OK;
    }
public function actionUpdateAll ( ) : int { $ tables = $ this -> removeExcludedTables ( $ this -> db -> schema -> getTableNames ( ) ) ; if ( ! $ tables ) { $ this -> stdout ( ' > Your database does not contain any tables yet.' , Console :: FG_YELLOW ) ; return ExitCode :: OK ; } if ( $ this -> confirm ( ' > Are you sure you want to potentially generate ' . count ( $ tables ) . ' migrations?' ) ) { return $ this -> actionUpdate ( implode ( ',' , $ tables ) ) ; } $ this -> stdout ( " Operation cancelled by user.\n\n" , Console :: FG_YELLOW ) ; return ExitCode :: OK ; }
Creates new update migrations for every table in database.
Since 3.0.0 migration history table is skipped.
@return int
@throws ErrorException
@throws DbException
@since 2.1
Creates new update migrations for every table in database . Since 3 . 0 . 0 migration history table is skipped .