for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the G.L.S.R. Apps package.
*
* (c) Dev-Int Création <[email protected]>.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Infrastructure\DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
final class Version20201216205143 extends AbstractMigration
{
public function getDescription(): string
return 'Update Company table.';
}
public function up(Schema $schema): void
// this up() migration is auto-generated, please modify it to your needs
$this->addSql(
'ALTER TABLE company ' .
'ADD zip_code VARCHAR(255) NOT NULL, ' .
'ADD town VARCHAR(255) NOT NULL, ' .
'ADD country VARCHAR(255) NOT NULL'
);
public function down(Schema $schema): void
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE company DROP zip_code, DROP town, DROP country');