Skip to content

Commit

Permalink
Merge pull request #988 from MarJose123/master
Browse files Browse the repository at this point in the history
[11.x] Fix UUID Drop on migration rollback
  • Loading branch information
rez1dent3 authored Aug 25, 2024
2 parents 81fdab6 + e0b4c2f commit eab9257
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion database/2021_11_02_202021_update_wallets_uuid_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ public function up(): void

public function down(): void
{
Schema::dropColumns($this->table(), ['uuid']);
Schema::table($this->table(), function (Blueprint $table) {
if (Schema::hasColumn($this->table(), 'uuid')) {
$table->dropIndex('wallets_uuid_unique');
$table->dropColumn('uuid');
}
});
}

private function table(): string
Expand Down

0 comments on commit eab9257

Please sign in to comment.