migrations/Version20240731135603.php line 1

Open in your IDE?
  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 Version20240731135603 extends AbstractMigration
  10. {
  11. public function getDescription(): string
  12. {
  13. return '';
  14. }
  15. public function isTransactional(): bool
  16. {
  17. return false;
  18. }
  19. public function up(Schema $schema): void
  20. {
  21. // this up() migration is auto-generated, please modify it to your needs
  22. $this->addSql('ALTER TABLE channel_sessions ADD count_hours_exam INT DEFAULT 0 NOT NULL');
  23. $this->addSql('ALTER TABLE channel_user_data CHANGE rqth rqth INT DEFAULT NULL');
  24. $this->addSql('ALTER TABLE channel_user_data_cursus CHANGE total_duration exam_duration INT DEFAULT NULL');
  25. $this->addSql('ALTER TABLE channel_user_data_cursus ADD internship_duration INT DEFAULT NULL');
  26. $this->addSql('ALTER TABLE channel_user_data_cursus_founder CHANGE amount amount NUMERIC(10, 2) NOT NULL');
  27. }
  28. public function down(Schema $schema): void
  29. {
  30. // this down() migration is auto-generated, please modify it to your needs
  31. $this->addSql('ALTER TABLE channel_sessions DROP count_hours_exam');
  32. $this->addSql('ALTER TABLE channel_user_data CHANGE rqth rqth TINYINT(1) DEFAULT NULL');
  33. $this->addSql('ALTER TABLE channel_user_data_cursus CHANGE exam_duration total_duration INT DEFAULT NULL');
  34. $this->addSql('ALTER TABLE channel_user_data_cursus DROP internship_duration');
  35. $this->addSql('ALTER TABLE channel_user_data_cursus_founder CHANGE amount amount INT NOT NULL');
  36. }
  37. }