migrations/Version20250714123635.php line 1

Open in your IDE?
  1. <?php
  2. /* @noinspection PhpUnused */
  3. declare(strict_types=1);
  4. namespace DoctrineMigrations;
  5. use Doctrine\DBAL\Schema\Schema;
  6. use Doctrine\Migrations\AbstractMigration;
  7. /**
  8.  * Auto-generated Migration: Please modify to your needs!
  9.  *
  10.  * @package API
  11.  * @author
  12.  * @internal
  13.  */
  14. final class Version20250714123635 extends AbstractMigration
  15. {
  16.     public function down(Schema $schema): void
  17.     {
  18.         // this down() migration is auto-generated, please modify it to your needs
  19.     }
  20.     public function getDescription(): string
  21.     {
  22.         return
  23.             "- Seeding of SOB event type table.";
  24.     }
  25.     public function up(Schema $schema): void
  26.     {
  27.         // this up() migration is auto-generated, please modify it to your needs
  28.         $created time();
  29.         $this->addSql(
  30.             '
  31.                 INSERT INTO sob_event_type
  32.                     (id, created, active)
  33.                 VALUES
  34.                     (1, :createdTimeStamp, 1),
  35.                     (2, :createdTimeStamp, 1),
  36.                     (3, :createdTimeStamp, 1),
  37.                     (4, :createdTimeStamp, 1),
  38.                     (5, :createdTimeStamp, 1),
  39.                     (6, :createdTimeStamp, 1),
  40.                     (7, :createdTimeStamp, 1),
  41.                     (8, :createdTimeStamp, 1),
  42.                     (9, :createdTimeStamp, 1),
  43.                     (10, :createdTimeStamp, 1),
  44.                     (11, :createdTimeStamp, 1)
  45.                 ;
  46.             ',
  47.             ['createdTimeStamp' => $created]
  48.         );
  49.         $this->addSql(
  50.             '
  51.                 INSERT INTO sob_event_type_l10n
  52.                     (language_id, parent_entity_id, name)
  53.                 VALUES
  54.                     (\'de\', 1, \'Erstgespräch\'),
  55.                     (\'de\', 2, \'Beratungsgespräch Mitarbeiter\'),
  56.                     (\'de\', 3, \'Beratungsgespräch Führungskraft\'),
  57.                     (\'de\', 4, \'Gespräch mit Führungskraft\'),
  58.                     (\'de\', 5, \'Gespräch mit Personalabteilung\'),
  59.                     (\'de\', 6, \'Gespräch mit Externen\'),
  60.                     (\'de\', 7, \'Information\'),
  61.                     (\'de\', 8, \'Gespräch\'),
  62.                     (\'de\', 9, \'Gesprächsrunde\'),
  63.                     (\'de\', 10, \'Telefonat\'),
  64.                     (\'de\', 11, \'E-Mail/Nachricht/Briefverkehr\'),
  65.                     (\'en\', 1, \'Initial consultation\'),
  66.                     (\'en\', 2, \'Employee consulting\'),
  67.                     (\'en\', 3, \'Manager consulting\'),
  68.                     (\'en\', 4, \'Conversation with line manager\'),
  69.                     (\'en\', 5, \'Conversation with HR\'),
  70.                     (\'en\', 6, \'Conversation with external parties\'),
  71.                     (\'en\', 7, \'Information\'),
  72.                     (\'en\', 8, \'Conversation\'),
  73.                     (\'en\', 9, \'Meeting (multiple participants)\'),
  74.                     (\'en\', 10, \'Phone call\'),
  75.                     (\'en\', 11, \'Email/message/correspondence\')
  76.                 ;
  77.             '
  78.         );
  79.     }
  80. }