photo/database/migrations/2019_11_15_214900_change_model_photo.php
2019-11-15 22:02:09 +11:00

29 lines
574 B
PHP

<?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;');
}
}