fix: change music duration to int

This commit is contained in:
2026-05-22 21:36:34 +03:30
parent f3685d4ca9
commit e314f95656
3 changed files with 35 additions and 7 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('music', function (Blueprint $table) {
$table->integer('duration')->nullable()->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('music', function (Blueprint $table) {
$table->string('duration')->nullable()->change();
});
}
};