migrations/Version20220303211313.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 Version20220303211313 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $this->addSql("DELETE FROM exam_study_materials WHERE exam_id in (212, 268, 267)");
  18.         $this->addSql("INSERT INTO exam_study_materials(exam_id, url) values (267,'https://talprograms.org/new/wp-content/uploads/2019/05/ShabbosElemSP-v01.pdf'), (267,'https://talprograms.org/new/wp-content/uploads/2019/05/Shabbos-Reader-Tasting-Eternity.pdf')");
  19.         $this->addSql("INSERT INTO exam_study_materials(exam_id, url) values (268,'https://talprograms.org/new/wp-content/uploads/2019/05/ShabbosAdvSP-v01.pdf'), (268,'https://talprograms.org/new/wp-content/uploads/2019/05/Shabbos-Reader-I-adv.pdf'), (268,'https://talprograms.org/new/wp-content/uploads/2019/05/Shabbos-Reader-II.pdf')");
  20.         $this->addSql("INSERT INTO exam_study_materials(exam_id, url) values (212,'https://talprograms.org/new/wp-content/uploads/2019/05/JewishMusicSP-v01.pdf'), (212,'https://talprograms.org/new/wp-content/uploads/2019/05/JewishMusicReader.pdf'), (212,'https://talprograms.org/new/wp-content/uploads/2019/05/Music-songs-SP.zip ')");
  21.     }
  22.     public function down(Schema $schema): void
  23.     {
  24.         // this down() migration is auto-generated, please modify it to your needs
  25.     }
  26. }