]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix column size to work with Oracle. Add unit tests
authorVitor Mattos <vitor@php.rio>
Tue, 11 Jan 2022 16:31:32 +0000 (13:31 -0300)
committerVitor Mattos <vitor@php.rio>
Fri, 21 Jan 2022 11:37:07 +0000 (08:37 -0300)
Signed-off-by: Vitor Mattos <vitor@php.rio>
core/Migrations/Version24000Date20211222112246.php

index 3a5bb2712b0f0cae94c0db3b06da8bd8d49f9e3a..a265bebcd86cad376269a99837e34b9fd1ce5650 100644 (file)
@@ -71,19 +71,19 @@ class Version24000Date20211222112246 extends SimpleMigrationStep {
                                'length' => 11,
                                'unsigned' => true,
                        ]);
-                       $table->addColumn('actor_type', 'string', [
+                       $table->addColumn('actor_type', Types::STRING, [
                                'notnull' => true,
                                'length' => 64,
                                'default' => '',
                        ]);
-                       $table->addColumn('actor_id', 'string', [
+                       $table->addColumn('actor_id', Types::STRING, [
                                'notnull' => true,
-                               'length' => 255,
+                               'length' => 64,
                                'default' => '',
                        ]);
                        $table->addColumn('reaction', Types::STRING, [
                                'notnull' => true,
-                               'length' => 2,
+                               'length' => 32,
                        ]);
                        $table->setPrimaryKey(['id']);
                        $table->addIndex(['reaction'], 'comment_reaction');