Skip to content

Commit

Permalink
fix(metadata): revert wrongly renamed column
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <[email protected]>
  • Loading branch information
ArtificialOwl committed Aug 2, 2024
1 parent 5e11960 commit 726b7a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dav/lib/Migration/Version1031Date20240610134258.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
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 {
Expand All @@ -27,7 +27,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
$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,
Expand Down

0 comments on commit 726b7a6

Please sign in to comment.