<?php

/**
 * Created by PhpStorm.
 * User: ondra
 * Date: 8.1.18
 * Time: 14:20.
 */

namespace KupShop\I18nBundle\Resources\upgrade;

class DiscountsUpgrade extends \UpgradeNew
{
    public function check_discountsTable()
    {
        return false;
    }

    /** Add languages column into 'discounts' table */
    public function upgrade_discountsTable()
    {
        sqlQuery('ALTER TABLE discounts ADD COLUMN languages MEDIUMTEXT DEFAULT NULL');

        $this->upgradeOK();
    }
}
