for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateFilesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('files', function (Blueprint $table) {
$table->engine = 'InnoDb';
$table->string('hash', 64)->primary();
$table->string('disk', 64)->default('localhost');
$table->string('path', 1024);
$table->string('mime', 255);
$table->bigInteger('size');
$table->text('metadata');
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::drop('files');