diff options
author | Vitor Mattos <vitor@php.rio> | 2022-01-11 13:31:32 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-01-21 08:37:07 -0300 |
commit | 9a2736bbc9826ac66c90a315769d2d16c4c8b0d9 (patch) | |
tree | 0f5e5d447122f4dd64ba366f7e63b1655d9d964c /core/Migrations | |
parent | b6d9e0542df4524b79e94a941663c57b2968ef7e (diff) | |
download | nextcloud-server-9a2736bbc9826ac66c90a315769d2d16c4c8b0d9.tar.gz nextcloud-server-9a2736bbc9826ac66c90a315769d2d16c4c8b0d9.zip |
Fix column size to work with Oracle. Add unit tests
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'core/Migrations')
-rw-r--r-- | core/Migrations/Version24000Date20211222112246.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/Migrations/Version24000Date20211222112246.php b/core/Migrations/Version24000Date20211222112246.php index 3a5bb2712b0..a265bebcd86 100644 --- a/core/Migrations/Version24000Date20211222112246.php +++ b/core/Migrations/Version24000Date20211222112246.php @@ -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'); |