migrations/Version20230906133207.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;/*** Auto-generated Migration: Please modify to your needs!*/final class Version20230906133207 extends AbstractMigration{public function getDescription(): string{return 'add author to sale_woodpecker_query';}public function up(Schema $schema): void{// this up() migration is auto-generated, please modify it to your needs$this->addSql('ALTER TABLE sale_woodpecker_query ADD author_id INT DEFAULT NULL');$this->addSql('ALTER TABLE sale_woodpecker_query ADD CONSTRAINT FK_61EBD0CEF675F31B FOREIGN KEY (author_id) REFERENCES user (id)');$this->addSql('CREATE INDEX IDX_61EBD0CEF675F31B ON sale_woodpecker_query (author_id)');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('ALTER TABLE sale_woodpecker_query DROP FOREIGN KEY FK_61EBD0CEF675F31B');$this->addSql('DROP INDEX IDX_61EBD0CEF675F31B ON sale_woodpecker_query');$this->addSql('ALTER TABLE sale_woodpecker_query DROP author_id');}}