aboutsummaryrefslogtreecommitdiffstats
path: root/core/Migrations
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-10-29 17:43:05 +0100
committerskjnldsv <skjnldsv@protonmail.com>2024-10-29 17:43:08 +0100
commitd5475e9d05b126fb868de693a31e715da45f70c9 (patch)
tree2e3823e5f19fdcfc562ed33c4d9367aa3ff0035a /core/Migrations
parent2d5060d1e3161aadfafb11d3690bc337b9092d31 (diff)
downloadnextcloud-server-d5475e9d05b126fb868de693a31e715da45f70c9.tar.gz
nextcloud-server-d5475e9d05b126fb868de693a31e715da45f70c9.zip
chore(systemtags): add missing migration attributesfeat/systemtags-missing-attrs
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'core/Migrations')
-rw-r--r--core/Migrations/Version31000Date20241018063111.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/Migrations/Version31000Date20241018063111.php b/core/Migrations/Version31000Date20241018063111.php
index eefda981dcb..ce4c42df159 100644
--- a/core/Migrations/Version31000Date20241018063111.php
+++ b/core/Migrations/Version31000Date20241018063111.php
@@ -12,12 +12,18 @@ namespace OC\Core\Migrations;
use Closure;
use Doctrine\DBAL\Types\Types;
use OCP\DB\ISchemaWrapper;
+use OCP\Migration\Attributes\AddColumn;
+use OCP\Migration\Attributes\AddIndex;
+use OCP\Migration\Attributes\ColumnType;
+use OCP\Migration\Attributes\IndexType;
use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
/**
* Add objecttype index to systemtag_object_mapping
*/
+#[AddColumn(table: 'systemtag', name: 'etag', type: ColumnType::STRING, description: 'Adding etag for systemtag table to prevent conflicts')]
+#[AddIndex(table: 'systemtag_object_mapping', type: IndexType::INDEX, description: 'Adding objecttype index to systemtag_object_mapping')]
class Version31000Date20241018063111 extends SimpleMigrationStep {
/**