<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220704195034 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql("ALTER TABLE vendors ADD COLUMN `institute_code` VARCHAR(255) NULL DEFAULT NULL AFTER `program_code`;");
$this->addSql("UPDATE `vendors` SET `program_code` = NULL, `institute_code` = '4083187' WHERE (`id` = '1')");
$this->addSql("UPDATE `vendors` SET `institute_code` = '4881482' WHERE (`id` = '3')");
$this->addSql("UPDATE `vendors` SET `program_code` = '4993583', `institute_code` = '4881482' WHERE (`id` = '4')");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("ALTER TABLE vendors drop COLUMN `institute_code`");
}
}