migrations/Version20221026094202.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 Version20221026094202 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $alter = <<<SQL
  18.         ALTER TABLE `template` MODIFY top_p double DEFAULT 1.0;
  19.         ALTER TABLE `template` MODIFY frequency_penalty double DEFAULT 0.0;
  20.         ALTER TABLE `template` MODIFY presence_penalty double DEFAULT 0.0;
  21.         ALTER TABLE `template` ADD COLUMN `n` INT DEFAULT 1;
  22.         ALTER TABLE `template` ADD COLUMN `best_of` INT DEFAULT 1;
  23. SQL;
  24.         $this->addSql($alter);
  25.     }
  26.     public function down(Schema $schema): void
  27.     {
  28.         // this down() migration is auto-generated, please modify it to your needs
  29.     }
  30. }