migrations/Version20220113001352.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 Version20220113001352 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("DELETE FROM music_style");
  19.         $this->addSql("INSERT INTO `music_style` (`id`, `name`) VALUES
  20.             (1, 'Rock'),
  21.             (2, 'Jazz'),
  22.             (3, 'Funk'),
  23.             (4, 'Metal'),
  24.             (5, 'Pop'),
  25.             (6, 'R\'nB'),
  26.             (7, 'Electro'),
  27.             (8, 'Reggae'),
  28.             (9, 'Blues'),
  29.             (10, 'Classique'),
  30.             (11, 'Latino'),
  31.             (13, 'Dub'),
  32.             (15, 'Hardcore'),
  33.             (16, 'Jazz Manouche'),
  34.             (17, 'Rock psychédélique'),
  35.             (19, 'Soul'),
  36.             (20, 'Disco'),
  37.             (21, 'Rap'),
  38.             (22, 'Acoustique'),
  39.             (23, 'Hip Hop'),
  40.             (24, 'Punk rock'),
  41.             (25, 'Black Métal'),
  42.             (26, 'Country'),
  43.             (27, 'Folk'),
  44.             (28, 'Heavy Metal'),
  45.             (29, 'Salsa'),
  46.             (30, 'Posé'),
  47.             (31, 'House'),
  48.             (32, 'Techno'),
  49.             (33, 'Hardtek'),
  50.             (35, 'Variété')
  51.         ");
  52.     }
  53.     public function down(Schema $schema) : void
  54.     {
  55.     }
  56. }