<?php

/**
 * Created by PhpStorm.
 * User: ondra
 * Date: 4.12.17
 * Time: 15:09.
 */

namespace KupShop\OrderingBundle\Resources\upgrade;

class InvoiceNoteUpgrade extends \UpgradeNew
{
    public function check_NoteInvoice()
    {
        return $this->checkColumnExists('orders', 'note_invoice');
    }

    /** Add note_invoice column in table orders */
    public function upgrade_NoteInvoice()
    {
        sqlQuery('ALTER TABLE orders ADD COLUMN note_invoice MEDIUMTEXT DEFAULT NULL ');

        $this->upgradeOK();
    }
}
