<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateLmsFilesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('lms_files', function (Blueprint $table) {
$table->id();
$table->integer('fileable_id')->unsigned();
$table->string('fileable_type');
$table->string('file_title')->nullable();
$table->string('file_name');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('lms_files');
}
}