feat: add type remiders

This commit is contained in:
2025-12-18 18:16:23 +03:30
parent fd3caed934
commit bf0cb80bd0
4 changed files with 47 additions and 0 deletions
@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use App\ReminderType;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('reminders', function (Blueprint $table) {
$table
->string('type')
->default(ReminderType::REMINDER->value)
->after('description');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('reminders', function (Blueprint $table) {
$table->dropColumn('type');
});
}
};