]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(comments): Reference ID column is now added on upgrade and therefore can be removed 42209/head
authorJoas Schilling <coding@schilljs.com>
Wed, 13 Dec 2023 12:38:31 +0000 (13:38 +0100)
committerJoas Schilling <coding@schilljs.com>
Thu, 14 Dec 2023 13:32:04 +0000 (14:32 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
core/Application.php

index 2ad8b9f2a301470944a40b0fa995470d90fe23c1..700fb3297afce2374ec8715796567aa56631c5fd 100644 (file)
@@ -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);