mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Fix avatar upload
This commit is contained in:
@@ -22,8 +22,7 @@ class CreateMediaTable extends Migration
|
||||
{
|
||||
Schema::create($this->tableName, function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('mediable_id')->integer();
|
||||
$table->integer('mediable_type')->string();
|
||||
$table->morphs('mediable');
|
||||
$table->string('value');
|
||||
$table->timestamps();
|
||||
});
|
||||
@@ -38,4 +37,4 @@ class CreateMediaTable extends Migration
|
||||
{
|
||||
Schema::dropIfExists($this->tableName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user