migrations/2024/03/Version20240329082935.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;final class Version20240329082935 extends AbstractMigration{public function up(Schema $schema): void{$this->addSql('ALTER TABLE app_car ADD seller_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:contact_id)\', ADD country_of_origin VARCHAR(2) DEFAULT NULL, ADD custom_reference_number VARCHAR(255) DEFAULT NULL, ADD butterfly_number VARCHAR(255) DEFAULT NULL');$this->addSql('ALTER TABLE app_car ADD CONSTRAINT FK_594F555A8DE820D9 FOREIGN KEY (seller_id) REFERENCES contact (id)');$this->addSql('CREATE INDEX IDX_594F555A8DE820D9 ON app_car (seller_id)');}public function down(Schema $schema): void{$this->addSql('ALTER TABLE app_car DROP FOREIGN KEY FK_594F555A8DE820D9');$this->addSql('DROP INDEX IDX_594F555A8DE820D9 ON app_car');$this->addSql('ALTER TABLE app_car DROP seller_id, DROP country_of_origin, DROP custom_reference_number, DROP butterfly_number');}}