photo/database/migrations/2019_11_15_214900_change_model_photo.php

29 lines
574 B
PHP
Raw Normal View History

2019-11-15 11:02:09 +00:00
<?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;');
}
}