Browse Source

Merge pull request #2479 from nosolored/sepe0002

Fix: SEPE plugin foreign key constraint fails
Julio Montoya 7 years ago
parent
commit
d513a7a8f0
1 changed files with 2 additions and 2 deletions
  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(