Эх сурвалжийг харах

Merge pull request #2479 from nosolored/sepe0002

Fix: SEPE plugin foreign key constraint fails
Julio Montoya 7 жил өмнө
parent
commit
d513a7a8f0

+ 2 - 2
plugin/sepe/database.php

@@ -470,12 +470,12 @@ $sepeParticipantsTable->addColumn(
 $sepeParticipantsTable->addColumn(
     'company_tutor_id',
     \Doctrine\DBAL\Types\Type::INTEGER,
-    ['unsigned' => true]
+    ['unsigned' => true, 'notnull' => false]
 );
 $sepeParticipantsTable->addColumn(
     'training_tutor_id',
     \Doctrine\DBAL\Types\Type::INTEGER,
-    ['unsigned' => true]
+    ['unsigned' => true, 'notnull' => false]
 );
 $sepeParticipantsTable->setPrimaryKey(['id']);
 $sepeParticipantsTable->addForeignKeyConstraint(