migrations/Version20221024103515.php line 1

  1. <?php declare(strict_types=1);
  2. namespace DoctrineMigrations;
  3. use Doctrine\DBAL\Schema\Schema;
  4. use Doctrine\Migrations\AbstractMigration;
  5. /**
  6. * Auto-generated Migration: Please modify to your needs!
  7. */
  8. final class Version20221024103515 extends AbstractMigration
  9. {
  10. public function getDescription(): string
  11. {
  12. return '';
  13. }
  14. public function up(Schema $schema): void
  15. {
  16. $alter = <<<'SQL'
  17. ALTER TABLE template DROP COLUMN api_key;
  18. ALTER TABLE template ADD COLUMN `stop` TEXT;
  19. ALTER TABLE template ADD COLUMN suffix TEXT;
  20. ALTER TABLE company ADD COLUMN openai_api_key VARCHAR(100) DEFAULT NULL;
  21. SQL;
  22. $this->addSql($alter);
  23. }
  24. public function down(Schema $schema): void {}
  25. }