<?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 Version20221128201213 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_investigation_results (id INT AUTO_INCREMENT NOT NULL, opid_username_id INT DEFAULT NULL, opid_area VARCHAR(255) DEFAULT NULL, opid_type VARCHAR(255) DEFAULT NULL, opid_authors LONGTEXT DEFAULT NULL, opid_title LONGTEXT DEFAULT NULL, opid_source LONGTEXT DEFAULT NULL, opid_quartile VARCHAR(255) DEFAULT NULL, opid_volume LONGTEXT DEFAULT NULL, opid_pages VARCHAR(255) DEFAULT NULL, opid_isbn VARCHAR(255) DEFAULT NULL, opid_year VARCHAR(255) DEFAULT NULL, opid_link VARCHAR(511) DEFAULT NULL, INDEX IDX_4A0DCD97993AF1C (opid_username_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE opid_investigation_results ADD CONSTRAINT FK_4A0DCD97993AF1C FOREIGN KEY (opid_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_investigation_results');
}
}