migrations/Version20240324102852.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 Version20240324102852 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$query = <<<SQL
# ALTER TABLE `template` MODIFY COLUMN `type` enum('COMPLETE', 'EDIT', 'CHAT_COMPLETE') DEFAULT 'CHAT_COMPLETE';
ALTER TABLE `template` ADD session_id varchar(255);
ALTER TABLE `template_extension` DROP COLUMN `session_id`;
ALTER TABLE `template_extension` DROP COLUMN `parse`;
ALTER TABLE `template_extension` ADD COLUMN `extension_type` enum('DATA_SOURCE','CHAT_WITH_DATA', 'SEMANTIC_SEARCH') DEFAULT 'DATA_SOURCE';
SQL;
$this->addSql($query);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}