<?php

declare(strict_types=1);

namespace External\PompoBundle\Resources\upgrade;

class StoresUpgrade extends \UpgradeNew
{
    public function check_StoresItemsLastSyncColumn(): bool
    {
        return $this->checkColumnExists('stores_items', 'last_sync');
    }

    /** add stores_items.last_sync column */
    public function upgrade_StoresItemsLastSyncColumn(): void
    {
        sqlQuery('ALTER TABLE stores_items ADD COLUMN last_sync DATETIME DEFAULT CURRENT_TIME');

        $this->upgradeOK();
    }
}
