migrations/Version20230922151249.php line 1
<?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 Version20230922151249 extends AbstractMigration
{
public function getDescription(): string
{
return 'add field rss for sale_upwork_bid';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE sale_upwork_bid ADD rss_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE sale_upwork_bid ADD CONSTRAINT FK_ABA33A3DA9D08426 FOREIGN KEY (rss_id) REFERENCES sale_upwork_rss (id)');
$this->addSql('CREATE INDEX IDX_ABA33A3DA9D08426 ON sale_upwork_bid (rss_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE sale_upwork_bid DROP FOREIGN KEY FK_ABA33A3DA9D08426');
$this->addSql('DROP INDEX IDX_ABA33A3DA9D08426 ON sale_upwork_bid');
$this->addSql('ALTER TABLE sale_upwork_bid DROP rss_id');
}
}