Skip to content

Commit

Permalink
Add migration to officially change type of column to plain text
Browse files Browse the repository at this point in the history
  • Loading branch information
Anahkiasen committed Jul 10, 2024
1 parent f85a362 commit 74221e0
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

declare(strict_types=1);

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class () extends Migration {
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('organizers', function (Blueprint $table) {
$table->char('organizer_id', 36)->change();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('organizers', function (Blueprint $table) {
$table->uuid('organizer_id')->change();
});
}
};

0 comments on commit 74221e0

Please sign in to comment.