Browse Source
fix(comments): Reference ID column is now added on upgrade and therefore can be removed
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/42209/head
Joas Schilling
3 years ago
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
1 changed files with
0 additions and
14 deletions
-
core/Application.php
|
|
|
@ -48,10 +48,8 @@ use OC\TagManager; |
|
|
|
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; |
|
|
|
@ -300,18 +298,6 @@ class Application extends App { |
|
|
|
); |
|
|
|
}); |
|
|
|
|
|
|
|
$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); |
|
|
|
|