mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 05:11:04 +03:30
fix migrations
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateMediasTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('medias', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->integer('model_id')->nullable();
|
||||
$table->string('model_type')->nullable();
|
||||
$table->string('file_name')->nullable();
|
||||
$table->string('batch_id')->nullable();
|
||||
$table->string('path');
|
||||
$table->integer('user_id');
|
||||
$table->string('file_type')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('medias');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user