fix : 테이블 추가 및 수정 신규로 작성 (generator 설치)

composer require --dev kitloong/laravel-migrations-generator
php artisan migrate:generate
This commit is contained in:
2025-07-26 05:22:58 +09:00
parent f5534e437b
commit b436b635c2
64 changed files with 1158 additions and 557 deletions

View File

@@ -0,0 +1,28 @@
<?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('cache', function (Blueprint $table) {
$table->string('key')->primary();
$table->mediumText('value');
$table->integer('expiration');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('cache');
}
};