dealhub/database/migrations/2026_01_22_083544_add_view_interaction.php

28 lines
607 B
PHP

<?php
use App\Enums\InteractionType;
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('interactions', function (Blueprint $table) {
$table->enum('type', InteractionType::values())->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('interactions', function (Blueprint $table) {});
}
};