migrations/Version20240607185010.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 Version20240607185010 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$alter = <<<SQL
CREATE TABLE thread
(
id INT AUTO_INCREMENT NOT NULL,
assistant_id INT NOT NULL,
session_id varchar(255),
run_id varchar(255) NOT NULL,
PRIMARY KEY (id),
INDEX (session_id),
FOREIGN KEY (assistant_id) REFERENCES assistant (id)
) DEFAULT CHARACTER SET utf8mb4
COLLATE `utf8mb4_unicode_ci`
ENGINE = InnoDB
SQL;
$this->addSql($alter);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}