migrations/Version20230309101145.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 Version20230309101145 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         $this->addSql("ALTER TABLE `exams` DROP INDEX `content_code`;");
  19.         $this->addSql("INSERT INTO `exams` (`id`, `vendor_id`, `active`, `phonesystem_active`, `code`, `talCode`, `subject`, `alt1`, `alt2`, `alt3`, `cd_required`, `examLevel`, `secularNumber`, `secularTitle`, `secular`, `duration`, `credits`, `talFee`, `sortOrder`, `talGroupCode`, `content_code`, `group_code`, `program_content_code`, `allowed_resources`, `assignments`, `for_seminary_testing`, `createdOn`, `lastChange`, `lastChangeBy`) VALUES (NULL, '1', '1', '1', NULL, NULL, 'Ivris Elementary Course', NULL, NULL, NULL, '0', 'Lower', 'Hebrew 101:course', NULL, '0', '90', '8', NULL, '0', NULL, 'hebrew101', 'gheb101c', 'heb101c', 'Blank paper allowed, student may choose to write answers on this paper', NULL, '0', '2023-02-03', '2023-02-03', NULL);");}
  20.     public function down(Schema $schema): void
  21.     {
  22.         // this down() migration is auto-generated, please modify it to your needs
  23.         $this->addSql("ALTER TABLE `exams` DROP INDEX `content_code`;");
  24.     }
  25. }