hegresphere/migrations/Version20250408091726.php
2025-04-08 11:41:15 +02:00

45 lines
1.1 KiB
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 Version20250408091726 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql(<<<'SQL'
ALTER TABLE intern ADD resume_name TEXT DEFAULT NULL
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE intern ALTER resume TYPE TEXT
SQL);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql(<<<'SQL'
CREATE SCHEMA public
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE intern DROP resume_name
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE intern ALTER resume TYPE VARCHAR(255)
SQL);
}
}