Skip to content

Commit

Permalink
fix(comments): Reference ID column is now added on upgrade and theref…
Browse files Browse the repository at this point in the history
…ore can be removed

Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Dec 14, 2023
1 parent 6056928 commit 226134a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions core/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@
use OCP\AppFramework\App;
use OCP\AppFramework\Http\Events\BeforeLoginTemplateRenderedEvent;
use OCP\AppFramework\Http\Events\BeforeTemplateRenderedEvent;
use OCP\DB\Events\AddMissingColumnsEvent;
use OCP\DB\Events\AddMissingIndicesEvent;
use OCP\DB\Events\AddMissingPrimaryKeyEvent;
use OCP\DB\Types;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\User\Events\BeforeUserDeletedEvent;
use OCP\User\Events\UserDeletedEvent;
Expand Down Expand Up @@ -300,18 +298,6 @@ public function __construct() {
);
});

$eventDispatcher->addListener(AddMissingColumnsEvent::class, function (AddMissingColumnsEvent $event) {
$event->addMissingColumn(
'comments',
'reference_id',
Types::STRING,
[
'notnull' => false,
'length' => 64,
]
);
});

$eventDispatcher->addServiceListener(BeforeTemplateRenderedEvent::class, BeforeTemplateRenderedListener::class);
$eventDispatcher->addServiceListener(BeforeLoginTemplateRenderedEvent::class, BeforeTemplateRenderedListener::class);
$eventDispatcher->addServiceListener(RemoteWipeStarted::class, RemoteWipeActivityListener::class);
Expand Down

0 comments on commit 226134a

Please sign in to comment.