share-lt/database/migrations/2026_02_15_192829_create_changes_table.php

31 lines
663 B
PHP
Raw Permalink Normal View History

<?php
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::create('changes', function (Blueprint $table) {
$table->id();
$table->string('note');
$table->integer('user_id');
$table->string('type')->default('general');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('changes');
}
};