protected function showAlterations()
    {
        $alters = $this->app['schema.comparator']->getAlters();
        if ($alters) {
            $this->io->section('Tables to be altered:');

            $tableCount = count($alters);
            foreach ($alters as $tableName => $sql) {
                $this->io->comment($tableName);
                foreach ($sql as $query) {
                    $this->io->text(SqlFormatter::highlight($query));
                }

                if (--$tableCount) {
                    $this->io->writeln('');
                }
            }
        }
    }
protected function showAlterations()
    {
        $alters = $this->app['schema.comparator']->getAlters();
        if ($alters) {
            $this->io->section('Tables to be altered:');

            $tableCount = count($alters);
            foreach ($alters as $tableName => $sql) {
                $this->io->comment($tableName);
                foreach ($sql as $query) {
                    $this->io->text(SqlFormatter::highlight($query));
                }

                if (--$tableCount) {
                    $this->io->writeln('');
                }
            }
        }
    }
protected function showAlterations ( ) { $ alters = $ this -> app [ 'schema.comparator' ] -> getAlters ( ) ; if ( $ alters ) { $ this -> io -> section ( 'Tables to be altered:' ) ; $ tableCount = count ( $ alters ) ; foreach ( $ alters as $ tableName => $ sql ) { $ this -> io -> comment ( $ tableName ) ; foreach ( $ sql as $ query ) { $ this -> io -> text ( SqlFormatter :: highlight ( $ query ) ) ; } if ( -- $ tableCount ) { $ this -> io -> writeln ( '' ) ; } } } }
Display a section of tables to be altered.
Display a section of tables to be altered .