migrations/Version20240605113649.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. final class Version20240605113649 extends AbstractMigration
  11. {
  12.     public function down(Schema $schema): void
  13.     {
  14.         // this down() migration is auto-generated, please modify it to your needs
  15.     }
  16.     public function getDescription(): string
  17.     {
  18.         return
  19.             "- Seeding of work attempt unsuccessful reasons tables.\n" .
  20.             "- Seeding of work attempt unsuccessful reasons localizations with German and English.";
  21.     }
  22.     public function up(Schema $schema): void
  23.     {
  24.         // this up() migration is auto-generated, please modify it to your needs
  25.         $created time();
  26.         $this->addSql(
  27.             '
  28.                 INSERT INTO job_lab_work_attempt_unsuccessful_reason
  29.                     (id, created, active)
  30.                 VALUES
  31.                     (1, :createdTimeStamp, 1),
  32.                     (2, :createdTimeStamp, 1),
  33.                     (3, :createdTimeStamp, 1),
  34.                     (4, :createdTimeStamp, 1),
  35.                     (5, :createdTimeStamp, 1),
  36.                     (6, :createdTimeStamp, 1),
  37.                     (7, :createdTimeStamp, 1),
  38.                     (8, :createdTimeStamp, 1),
  39.                     (9, :createdTimeStamp, 1),
  40.                     (10, :createdTimeStamp, 1),
  41.                     (11, :createdTimeStamp, 1),
  42.                     (12, :createdTimeStamp, 1),
  43.                     (13, :createdTimeStamp, 1)
  44.                 ;
  45.             ',
  46.             ['createdTimeStamp' => $created]
  47.         );
  48.         $this->addSql(
  49.             '
  50.                 INSERT INTO job_lab_work_attempt_unsuccessful_reason_l10n
  51.                     (language_id, parent_entity_id, name)
  52.                 VALUES
  53.                     (\'de\', 1, \'Arbeitsplatz nicht geeignet für Fähigkeiten / gesundheitliche Probleme am ' .
  54.             'Arbeitsplatz-Toleranz ist nicht ausreichend.\'),
  55.                     (\'de\', 2, \'Arbeitsplatz nicht geeignet für Fähigkeiten / gesundheitliche Probleme am ' .
  56.             'Arbeitsplatz-Aus Sicht des Mitarbeiters nicht geeignet.\'),
  57.                     (\'de\', 3, \'Qualität - Fehlerquote trotz Qualifizierung zu hoch.\'),
  58.                     (\'de\', 4, \'Qualifikation - Erforderliche Qualifikation kann nicht erreicht werden.\'),
  59.                     (\'de\', 5, \'Quantität - Mitarbeiter erfüllt nicht die Produktionsziele.\'),
  60.                     (\'de\', 6, \'Fortdauernde hohe Fehlzeiten oder weitere Erkrankungen - keine positive Auswirkung ' .
  61.             'auf die Integrationsfähigkeit\'),
  62.                     (\'de\', 7, \'Mangelnde Teamkompatibilität oder Konflikte mit Vorgesetzten\'),
  63.                     (\'de\', 8, \'Wegfall des Arbeitsplatzes (selten)\'),
  64.                     (\'de\', 9, \'Austritt des Mitarbeiters (EU-Rente, Altersrente, Tod, Ausscheidensvereinbarung, ' .
  65.             'etc.)\'),
  66.                     (\'de\', 10, \'Ablehnung durch den Mitarbeiter\'),
  67.                     (\'de\', 11, \'Besser geeigneter Arbeitsplatz gefunden\'),
  68.                     (\'de\', 12, \'Fehlende Zustimmung des Betriebsrats (Versetzungen sind zustimmungspflichtig)\'),
  69.                     (\'de\', 13, \'Fehlende Mitarbeit, keine Motivation, private Gründe (z.B. Schichtarbeit führt ' .
  70.             'zum Wegfall der Fahrgemeinschaft, etc.)\'),
  71.                     (\'en\', 1, \'Workplace not suitable for abilities / health issues at the workplace-Tolerance is ' .
  72.             'not adequate\'),
  73.                     (\'en\', 2, \'Workplace not suitable for abilities / health issues at the workplace-Not suitable ' .
  74.             'from the employee’s perspective\'),
  75.                     (\'en\', 3, \'Quality - Error rate is too high despite qualification\'),
  76.                     (\'en\', 4, \'Qualification - Required qualification cannot be achieved\'),
  77.                     (\'en\', 5, \'Quantity - Employee does not meet the production target\'),
  78.                     (\'en\', 6, \'Continuing high absenteeism or further illnesses - no positive impact on ' .
  79.             'integration ability\'),
  80.                     (\'en\', 7, \'Lack of team compatibility or conflicts with superiors\'),
  81.                     (\'en\', 8, \'Elimination of the workplace (rare)\'),
  82.                     (\'en\', 9, \'Employee exit (EU pension, retirement, death, resignation agreement, etc.)\'),
  83.                     (\'en\', 10, \'Rejection by the employee\'),
  84.                     (\'en\', 11, \'A better-suited position has been found\'),
  85.                     (\'en\', 12, \'Lack of approval from the works council (transfers require approval)\'),
  86.                     (\'en\', 13, \'Lack of cooperation, no motivation, personal reasons (e.g., shift work leading to ' .
  87.             'loss of carpool, etc.)\')
  88.                 ;
  89.             '
  90.         );
  91.     }
  92. }