]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(metadata): revert wrongly renamed column 46974/head
authorMaxence Lange <maxence@artificial-owl.com>
Fri, 2 Aug 2024 19:37:37 +0000 (18:37 -0100)
committerMaxence Lange <maxence@artificial-owl.com>
Fri, 2 Aug 2024 19:37:37 +0000 (18:37 -0100)
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
apps/dav/lib/Migration/Version1031Date20240610134258.php

index cf288dfac6980d68c639e24e40aff3b024bad55c..c1242ceb7db585c1c6f13673dfc17a2046aa823b 100644 (file)
@@ -17,7 +17,7 @@ use OCP\Migration\Attributes\ColumnType;
 use OCP\Migration\IOutput;
 use OCP\Migration\SimpleMigrationStep;
 
-#[AddColumn(table: 'dav_absence', name: 'dav_absence', type: ColumnType::STRING)]
+#[AddColumn(table: 'dav_absence', name: 'replacement_user_id', type: ColumnType::STRING)]
 #[AddColumn(table: 'dav_absence', name: 'replacement_user_display_name', type:  ColumnType::STRING)]
 class Version1031Date20240610134258 extends SimpleMigrationStep {
        public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
@@ -27,7 +27,7 @@ class Version1031Date20240610134258 extends SimpleMigrationStep {
                $tableDavAbsence = $schema->getTable('dav_absence');
 
                if (!$tableDavAbsence->hasColumn('replacement_user_id')) {
-                       $tableDavAbsence->addColumn('dav_absence', Types::STRING, [
+                       $tableDavAbsence->addColumn('replacement_user_id', Types::STRING, [
                                'notnull' => false,
                                'default' => '',
                                'length' => 64,