migrations/Version20180821164525.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 Version20180821164525 extends AbstractMigration
  10. {
  11.     public function up(Schema $schema): void
  12.     {
  13.         // this up() migration is auto-generated, please modify it to your needs
  14.         $this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
  15.         $this->addSql('
  16.             CREATE TABLE config_interview_note_method (
  17.                 id INT AUTO_INCREMENT NOT NULL,
  18.                 name VARCHAR(255) NOT NULL,
  19.                 icon ENUM(\'check_circle\', \'comment_text\', \'phone\', \'calendar\', \'assignment\', \'chart\', \'accounts\', \'file_text\', \'comment_list\', \'comments\', \'view_web\', \'label_heart\', \'assignment_o\', \'headset\', \'share\', \'navigation\', \'notifications\', \'voicemail\', \'pin\', \'edit\', \'mail_send\', \'videocam\', \'play\', \'local_grocery_store\', \'mic\', \'camera_mic\', \'email\', \'scanner\', \'time\', \'portable_wifi\', \'receipt\', \'storage\', \'plus_circle_o\', \'view_list_alt\', \'alert_octagon\', \'mood_bad\', \'money\', \'flag\', \'book\', \'comment_outline\') DEFAULT NULL COMMENT \'(DC2Type:IconType)\',
  20.                 INDEX idx_name (name),
  21.                 PRIMARY KEY(id)
  22.             ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB
  23.         ');
  24.         $this->addSql('
  25.             INSERT INTO config_interview_note_method (id, name, icon)
  26.             VALUES
  27.                 (1, \'General\', NULL),
  28.                 (2, \'Lien/Levy\', \'flag\'),
  29.                 (3, \'Transcripts\', NULL),
  30.                 (4, \'Returns\', NULL),
  31.                 (5, \'Email\', \'email\'),
  32.                 (37, \'Text\', \'comment_outline\'),
  33.                 (6, \'Fax\', \'portable_wifi\'),
  34.                 (7, \'Mail\', \'mail_send\'),
  35.                 (8, \'Scan\', \'scanner\'),
  36.                 (35, \'Summary\', \'time\'),
  37.                 (9, \'433 A/B\', \'receipt\'),
  38.                 (10, \'843\', NULL),
  39.                 (11, \'9465\', NULL),
  40.                 (12, \'OIC\', NULL),
  41.                 (13, \'Info. Request\', NULL),
  42.                 (14, \'Case Review\', NULL),
  43.                 (15, \'Case Update\', NULL),
  44.                 (16, \'POA/8821\', NULL),
  45.                 (25, \'Storage\', \'storage\'),
  46.                 (26, \'Call\', \'phone\'),
  47.                 (36, \'Stage\', \'check_circle\'),
  48.                 (38, \'Chat\', \'comments\'),
  49.                 (18, \'Complaint\', \'mood_bad\'),
  50.                 (19, \'Goal\', \'chart\'),
  51.                 (20, \'% Complete\', NULL),
  52.                 (31, \'Alert\', \'alert_octagon\'),
  53.                 (21, \'Status\', \'view_list_alt\'),
  54.                 (22, \'Task\', \'plus_circle_o\'),
  55.                 (30, \'Reminder\', \'notifications\'),
  56.                 (23, \'Payment\', NULL),
  57.                 (24, \'Upsell Req.\', \'money\'),
  58.                 (32, \'File\', \'file_text\'),
  59.                 (33, \'Books\', \'book\'),
  60.                 (34, \'Storage\', \'storage\')
  61.         ');
  62.     }
  63.     public function down(Schema $schema): void
  64.     {
  65.         // this down() migration is auto-generated, please modify it to your needs
  66.         $this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
  67.         $this->addSql('DROP TABLE config_interview_note_method');
  68.     }
  69. }