3 use Illuminate\Support\Facades\Schema;
4 use Illuminate\Database\Schema\Blueprint;
5 use Illuminate\Database\Migrations\Migration;
7 class CreateFilesTable extends Migration
16 Schema::create('files', function (Blueprint $table) {
17 $table->increments('id');
18 $table->string('name');
19 $table->string('path');
20 $table->integer('uploaded_to');
22 $table->boolean('external');
23 $table->integer('order');
25 $table->integer('created_by');
26 $table->integer('updated_by');
28 $table->index('uploaded_to');
34 * Reverse the migrations.
38 public function down()
40 Schema::dropIfExists('files');