database/migrations/2017_01_25_015949_create_chocolatey_users_photos_likes_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateChocolateyUsersPhotosLikesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('chocolatey_users_photos_likes', function (Blueprint $table) {
$table->increments('id');
$table->integer('photo_id');
$table->string('username', 255);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('chocolatey_users_photos_likes');
}
}