aboutsummaryrefslogtreecommitdiffstats
path: root/core/Migrations/Version24000Date20220404230027.php
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2023-03-30 15:58:42 +0200
committerLouis Chemineau <louis@chmn.me>2023-04-03 14:06:28 +0200
commit1a6709cf434a6eeb7356254938b15c98d375a955 (patch)
tree998ecf3346c97092135193804d852d1247a25626 /core/Migrations/Version24000Date20220404230027.php
parent691aa8d0257e9361bbc5a64b09cd634435dbd40a (diff)
downloadnextcloud-server-1a6709cf434a6eeb7356254938b15c98d375a955.tar.gz
nextcloud-server-1a6709cf434a6eeb7356254938b15c98d375a955.zip
Migrate metadata as JSON to value as STRING
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'core/Migrations/Version24000Date20220404230027.php')
-rw-r--r--core/Migrations/Version24000Date20220404230027.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/core/Migrations/Version24000Date20220404230027.php b/core/Migrations/Version24000Date20220404230027.php
index d53a43af959..26af9a4c6cc 100644
--- a/core/Migrations/Version24000Date20220404230027.php
+++ b/core/Migrations/Version24000Date20220404230027.php
@@ -52,11 +52,15 @@ class Version24000Date20220404230027 extends SimpleMigrationStep {
'notnull' => true,
'length' => 50,
]);
- $table->addColumn('metadata', Types::JSON, [
- 'notnull' => true,
+ $table->addColumn('value', Types::TEXT, [
+ 'notnull' => false,
+ 'default' => '',
]);
$table->setPrimaryKey(['id', 'group_name'], 'file_metadata_idx');
+
+ return $schema;
}
- return $schema;
+
+ return null;
}
}