This commit is contained in:
Cassandre Cantet
2017-10-04 00:11:25 +02:00
commit 95885c790e
12 changed files with 539 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateImagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('images', function (Blueprint $table) {
$table->integer('id', true);
$table->string('filename');
$table->dateTime('created_at');
$table->dateTime('updated_at');
$table->unique('filename');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('images');
}
}