migrations/Version20240324102852.php line 1

  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20240324102852 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $query = <<<SQL
  18. # ALTER TABLE `template` MODIFY COLUMN `type` enum('COMPLETE', 'EDIT', 'CHAT_COMPLETE') DEFAULT 'CHAT_COMPLETE';
  19. ALTER TABLE `template` ADD session_id varchar(255);
  20. ALTER TABLE `template_extension` DROP COLUMN `session_id`;
  21. ALTER TABLE `template_extension` DROP COLUMN `parse`;
  22. ALTER TABLE `template_extension` ADD COLUMN `extension_type` enum('DATA_SOURCE','CHAT_WITH_DATA', 'SEMANTIC_SEARCH') DEFAULT 'DATA_SOURCE';
  23. SQL;
  24.         $this->addSql($query);
  25.     }
  26.     public function down(Schema $schema): void
  27.     {
  28.         // this down() migration is auto-generated, please modify it to your needs
  29.     }
  30. }