rename migrations

This commit is contained in:
2018-10-15 19:39:15 +02:00
parent a08c93f650
commit 0ce7050828
2 changed files with 0 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');
}
}