Skip to content

Commit

Permalink
Remove the extra migration that broke things
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoLouwerse committed Nov 12, 2024
1 parent e3f688c commit 693fa3d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 67 deletions.
15 changes: 11 additions & 4 deletions lib/Migration/Version1Date20241111144800.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,17 @@ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array
&& $table->hasColumn('source_id') === true && $table->hasColumn('source_hash') === true
) {
$this->connection->executeQuery("
UPDATE openconnector_synchronization_contracts
SET origin_id = source_id, origin_hash = source_hash
WHERE source_id IS NOT NULL
");
UPDATE openconnector_synchronization_contracts
SET origin_id = source_id, origin_hash = source_hash
WHERE source_id IS NOT NULL
");
}

if ($table->hasColumn('source_id') === true) {
$table->dropColumn('source_id');
}
if ($table->hasColumn('source_hash') === true) {
$table->dropColumn('source_hash');
}
}
}
63 changes: 0 additions & 63 deletions lib/Migration/Version1Date20241112143200.php

This file was deleted.

0 comments on commit 693fa3d

Please sign in to comment.