<?php

namespace Application\Migrations;

use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;

/**
 * Auto-generated Migration: Please modify to your needs!
 */
class Version20170220202441 extends AbstractMigration
{
    /**
     * @param Schema $schema
     */
    public function up(Schema $schema)
    {
        $this->addSql("UPDATE menu SET class = 'red' WHERE class LIKE '%red%'");
        $this->addSql("UPDATE menu SET class = 'yellow' WHERE class LIKE '%yellow%'");
        $this->addSql("UPDATE menu SET class = 'green' WHERE class LIKE '%green%'");
        $this->addSql("UPDATE menu SET class = 'orange' WHERE class LIKE '%orange%'");
        $this->addSql("UPDATE menu SET class = 'kaki' WHERE class LIKE '%kaki%'");
        
        $this->addSql("UPDATE menu SET class = 'red' WHERE class LIKE '%action%' OR class LIKE '%partenaires%'");
        $this->addSql("UPDATE menu SET class = 'orange' WHERE class LIKE '%actualites%'");
    }

    /**
     * @param Schema $schema
     */
    public function down(Schema $schema)
    {
        // this down() migration is auto-generated, please modify it to your needs

    }
}
