32 lines
869 B
PHP
32 lines
869 B
PHP
<?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 Version20260709133922 extends AbstractMigration
|
|
{
|
|
public function getDescription(): string
|
|
{
|
|
return 'Drop manual sorting column from board_service/additional_service; they are now ordered by dateFrom then label.';
|
|
}
|
|
|
|
public function up(Schema $schema): void
|
|
{
|
|
$this->addSql('ALTER TABLE additional_service DROP sorting');
|
|
$this->addSql('ALTER TABLE board_service DROP sorting');
|
|
}
|
|
|
|
public function down(Schema $schema): void
|
|
{
|
|
$this->addSql('ALTER TABLE additional_service ADD sorting INT NOT NULL');
|
|
$this->addSql('ALTER TABLE board_service ADD sorting INT NOT NULL');
|
|
}
|
|
}
|