Explorar el Código

Merge pull request #2479 from nosolored/sepe0002

Fix: SEPE plugin foreign key constraint fails
Julio Montoya hace 7 años
padre
commit
d513a7a8f0
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      plugin/sepe/database.php

+ 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(