<?php
/* @noinspection PhpUnused */
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240605113649 extends AbstractMigration
{
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
public function getDescription(): string
{
return
"- Seeding of work attempt unsuccessful reasons tables.\n" .
"- Seeding of work attempt unsuccessful reasons localizations with German and English.";
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$created = time();
$this->addSql(
'
INSERT INTO job_lab_work_attempt_unsuccessful_reason
(id, created, active)
VALUES
(1, :createdTimeStamp, 1),
(2, :createdTimeStamp, 1),
(3, :createdTimeStamp, 1),
(4, :createdTimeStamp, 1),
(5, :createdTimeStamp, 1),
(6, :createdTimeStamp, 1),
(7, :createdTimeStamp, 1),
(8, :createdTimeStamp, 1),
(9, :createdTimeStamp, 1),
(10, :createdTimeStamp, 1),
(11, :createdTimeStamp, 1),
(12, :createdTimeStamp, 1),
(13, :createdTimeStamp, 1)
;
',
['createdTimeStamp' => $created]
);
$this->addSql(
'
INSERT INTO job_lab_work_attempt_unsuccessful_reason_l10n
(language_id, parent_entity_id, name)
VALUES
(\'de\', 1, \'Arbeitsplatz nicht geeignet für Fähigkeiten / gesundheitliche Probleme am ' .
'Arbeitsplatz-Toleranz ist nicht ausreichend.\'),
(\'de\', 2, \'Arbeitsplatz nicht geeignet für Fähigkeiten / gesundheitliche Probleme am ' .
'Arbeitsplatz-Aus Sicht des Mitarbeiters nicht geeignet.\'),
(\'de\', 3, \'Qualität - Fehlerquote trotz Qualifizierung zu hoch.\'),
(\'de\', 4, \'Qualifikation - Erforderliche Qualifikation kann nicht erreicht werden.\'),
(\'de\', 5, \'Quantität - Mitarbeiter erfüllt nicht die Produktionsziele.\'),
(\'de\', 6, \'Fortdauernde hohe Fehlzeiten oder weitere Erkrankungen - keine positive Auswirkung ' .
'auf die Integrationsfähigkeit\'),
(\'de\', 7, \'Mangelnde Teamkompatibilität oder Konflikte mit Vorgesetzten\'),
(\'de\', 8, \'Wegfall des Arbeitsplatzes (selten)\'),
(\'de\', 9, \'Austritt des Mitarbeiters (EU-Rente, Altersrente, Tod, Ausscheidensvereinbarung, ' .
'etc.)\'),
(\'de\', 10, \'Ablehnung durch den Mitarbeiter\'),
(\'de\', 11, \'Besser geeigneter Arbeitsplatz gefunden\'),
(\'de\', 12, \'Fehlende Zustimmung des Betriebsrats (Versetzungen sind zustimmungspflichtig)\'),
(\'de\', 13, \'Fehlende Mitarbeit, keine Motivation, private Gründe (z.B. Schichtarbeit führt ' .
'zum Wegfall der Fahrgemeinschaft, etc.)\'),
(\'en\', 1, \'Workplace not suitable for abilities / health issues at the workplace-Tolerance is ' .
'not adequate\'),
(\'en\', 2, \'Workplace not suitable for abilities / health issues at the workplace-Not suitable ' .
'from the employee’s perspective\'),
(\'en\', 3, \'Quality - Error rate is too high despite qualification\'),
(\'en\', 4, \'Qualification - Required qualification cannot be achieved\'),
(\'en\', 5, \'Quantity - Employee does not meet the production target\'),
(\'en\', 6, \'Continuing high absenteeism or further illnesses - no positive impact on ' .
'integration ability\'),
(\'en\', 7, \'Lack of team compatibility or conflicts with superiors\'),
(\'en\', 8, \'Elimination of the workplace (rare)\'),
(\'en\', 9, \'Employee exit (EU pension, retirement, death, resignation agreement, etc.)\'),
(\'en\', 10, \'Rejection by the employee\'),
(\'en\', 11, \'A better-suited position has been found\'),
(\'en\', 12, \'Lack of approval from the works council (transfers require approval)\'),
(\'en\', 13, \'Lack of cooperation, no motivation, personal reasons (e.g., shift work leading to ' .
'loss of carpool, etc.)\')
;
'
);
}
}