<?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 Version20221128212020 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('CREATE TABLE opid_technology_offer_profile (id INT AUTO_INCREMENT NOT NULL, technology_username_id INT DEFAULT NULL, technology_title LONGTEXT DEFAULT NULL, technology_previous_expertise LONGTEXT DEFAULT NULL, technology_contributions LONGTEXT DEFAULT NULL, technology_sectors LONGTEXT DEFAULT NULL, technology_general VARCHAR(255) DEFAULT NULL, technology_etid VARCHAR(255) DEFAULT NULL, technology_eda VARCHAR(255) DEFAULT NULL, technology_further_detail LONGTEXT DEFAULT NULL, technology_key_words LONGTEXT DEFAULT NULL, INDEX IDX_B013F5ABCC1F2D88 (technology_username_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE opid_technology_offer_profile ADD CONSTRAINT FK_B013F5ABCC1F2D88 FOREIGN KEY (technology_username_id) REFERENCES user (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE opid_technology_offer_profile');
}
}