29 lines
738 B
PHP
29 lines
738 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace DoctrineMigrations;
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
use Doctrine\Migrations\AbstractMigration;
|
|
|
|
final class Version20261026160000 extends AbstractMigration
|
|
{
|
|
public function getDescription(): string
|
|
{
|
|
return 'Store patient and case identifiers from imported CSV files.';
|
|
}
|
|
|
|
public function up(Schema $schema): void
|
|
{
|
|
$this->addSql('ALTER TABLE contacts ADD pid VARCHAR(255) DEFAULT NULL');
|
|
$this->addSql('ALTER TABLE contacts ADD fallnr VARCHAR(255) DEFAULT NULL');
|
|
}
|
|
|
|
public function down(Schema $schema): void
|
|
{
|
|
$this->addSql('ALTER TABLE contacts DROP pid');
|
|
$this->addSql('ALTER TABLE contacts DROP fallnr');
|
|
}
|
|
}
|