<?php

class Waindigo_MultipleChoice_Install_Controller extends Waindigo_Install
{

    protected $_resourceManagerUrl = 'https://xenforo.com/community/resources/multiple-choice-fields-by-waindigo.3825/';

    protected $_minVersionId = 1020000;

    protected $_minVersionString = '1.2.0';

    protected function _getTableChanges()
    {
        return array(
            'xf_user_field' => array(
                'multiple_choice_waindigo' => 'tinyint UNSIGNED NOT NULL DEFAULT 0', /* END 'multiple_choice_waindigo' */
            ), /* END 'xf_user_field' */
            'xf_resource_field' => array(
                'multiple_choice_waindigo' => 'tinyint UNSIGNED NOT NULL DEFAULT 0', /* END 'multiple_choice_waindigo' */
            ), /* END 'xf_resource_field' */
        );
    } /* END _getTableChanges */

    protected function _getAddOnTableChanges()
    {
        return array(
            'Waindigo_CustomFields' => array(
                'xf_social_forum_field' => array(
                    'multiple_choice_waindigo' => 'tinyint UNSIGNED NOT NULL DEFAULT 0', /* END 'multiple_choice_waindigo' */
                ), /* END 'xf_social_forum_field' */
                'xf_thread_field' => array(
                    'multiple_choice_waindigo' => 'tinyint UNSIGNED NOT NULL DEFAULT 0', /* END 'multiple_choice_waindigo' */
                ), /* END 'xf_thread_field' */
            ), /* END 'Waindigo_CustomFields' */
            'Waindigo_PostFields' => array(
                'xf_post_field' => array(
                    'multiple_choice_waindigo' => 'tinyint UNSIGNED NOT NULL DEFAULT 0', /* END 'multiple_choice_waindigo' */
                ), /* END 'xf_post_field' */
            ), /* END 'Waindigo_PostFields' */
        );
    } /* END _getAddOnTableChanges */
}