Fix for models with longer names
This commit is contained in:
parent
135bf16879
commit
008e5eacc0
28
database/migrations/2019_11_15_214900_change_model_photo.php
Normal file
28
database/migrations/2019_11_15_214900_change_model_photo.php
Normal 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;');
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user