diff --git a/classes/migration/install/CommonMigration.php b/classes/migration/install/CommonMigration.php index 97cb194db9e..4c66d1a395e 100644 --- a/classes/migration/install/CommonMigration.php +++ b/classes/migration/install/CommonMigration.php @@ -203,7 +203,7 @@ public function up(): void $table->foreign('user_id')->references('user_id')->on('users')->onDelete('cascade'); $table->index(['user_id'], 'notification_subscription_settings_user_id'); - $table->bigInteger('context'); + $table->bigInteger('context')->nullable(); $contextDao = Application::getContextDAO(); $table->foreign('context')->references($contextDao->primaryKeyColumn)->on($contextDao->tableName)->onDelete('cascade'); $table->index(['context'], 'notification_subscription_settings_context');