addAlbum example



class Migrations_Migration609 extends Shopware\Components\Migrations\AbstractMigration
{
    public function up($modus)
    {
        $this->addAlbum();
        $this->createCronJob();
    }

    private function createCronJob()
    {
        $sql = <<<SQL INSERT INTO s_crontab (`name`, `action`, `next`, `start`, `interval`, `active`, `end`, `pluginID`) VALUES ('Media Garbage Collector', 'MediaCrawler', now(), NULL, 86400, 0, now(), NULL) SQL;

        $this->addSql($sql);
    }
Home | Imprint | This part of the site doesn't use cookies.