Resources/contao/classes/C4GMigration.php
public function generate()
    {
        if (\Input::get('act') != '') {
            $this->action = \Input::get('act');
        } else {
            $this->action = 'init';
        }

        switch( $this->action )
        {
            case 'exec':
                $this->migrate();
                break;
            case 'back':
                \Controller::redirect( \Environment::get('script') . '?do=c4g_core' );
            case 'dbupdate':
                \Controller::redirect( \Environment::get('script') . '?do=repository_manager&update=database' );
            case 'uninstall':
                \Controller::redirect( \Environment::get('script') . '?do=repository_manager&uninstall=cfs_' . $this->module );
            case 'init':
            default:
                $this->output[] = sprintf($GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['MIGRATION']['INTRO'], $this->module);
                $this->output[] = '<span class="c4g_error">' . sprintf($GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['MIGRATION']['INTROWARN'], $this->module) . '</span>';
                if ($this->checkMod()) {
                    $this->buttons[] = array(
                        action  => 'exec',
                        label   => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['BTN']['MIGRATE']
                    );
                    $this->buttons[] = array(
                        action  => 'back',
                        label   => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['CANCEL']
                    );
                } else {
                    $this->buttons[] = array(
                        action  => 'back',
                        label   => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['BACK']
                    );
                }
                break;
        }


        return parent::generate();
    }
public function generate()
    {
        if (\Input::get('act') != '') {
            $this->action = \Input::get('act');
        } else {
            $this->action = 'init';
        }

        switch( $this->action )
        {
            case 'exec':
                $this->migrate();
                break;
            case 'back':
                \Controller::redirect( \Environment::get('script') . '?do=c4g_core' );
            case 'dbupdate':
                \Controller::redirect( \Environment::get('script') . '?do=repository_manager&update=database' );
            case 'uninstall':
                \Controller::redirect( \Environment::get('script') . '?do=repository_manager&uninstall=cfs_' . $this->module );
            case 'init':
            default:
                $this->output[] = sprintf($GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['MIGRATION']['INTRO'], $this->module);
                $this->output[] = '<span class="c4g_error">' . sprintf($GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['MIGRATION']['INTROWARN'], $this->module) . '</span>';
                if ($this->checkMod()) {
                    $this->buttons[] = array(
                        action  => 'exec',
                        label   => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['BTN']['MIGRATE']
                    );
                    $this->buttons[] = array(
                        action  => 'back',
                        label   => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['CANCEL']
                    );
                } else {
                    $this->buttons[] = array(
                        action  => 'back',
                        label   => $GLOBALS['TL_LANG']['MSC']['C4G_BE_INFO']['BACK']
                    );
                }
                break;
        }


        return parent::generate();
    }
Generate the module
@return string