Fix for models with longer names

This commit is contained in:
Deon George 2019-11-15 22:02:09 +11:00
parent 135bf16879
commit 008e5eacc0

View File

@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ChangeModelPhoto extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::statement('ALTER TABLE photo CHANGE model model varchar(128) DEFAULT null;');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
DB::statement('ALTER TABLE photo CHANGE model model varchar(32) DEFAULT null;');
}
}