feat: add is_premium

This commit is contained in:
2025-11-30 14:26:30 +03:30
parent 23cd9c7b38
commit be69e5cfda
3 changed files with 34 additions and 2 deletions
@@ -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::table('media', function (Blueprint $table) {
$table->boolean('is_premium')->default(false);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('media', function (Blueprint $table) {
$table->dropColumn('is_premium');
});
}
};