<?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 Version20220310075644 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("ALTER TABLE vendors ADD COLUMN `college_code` VARCHAR(255) DEFAULT NULL AFTER `program_code`;");
$this->addSql("UPDATE vendors SET college_code = '3536270' WHERE id = 1");
$this->addSql("UPDATE vendors SET college_code = '4718426' WHERE id = 4");
}
public function down(Schema $schema): void
{
$this->addSql("ALTER TABLE vendors DROP COLUMN `college_code`;");
}
}