chill-bundles/src/Bundle/ChillMainBundle/migrations/Version20211213112628.php
2021-12-13 12:35:17 +01:00

30 lines
614 B
PHP

<?php
declare(strict_types=1);
namespace Chill\Migrations\Main;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Add order to civility
*/
final class Version20211213112628 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add order to civility';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE chill_main_civility ADD "order" INT DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE chill_main_civility DROP "order"');
}
}