33 lines
649 B
PHP
33 lines
649 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class RemovePhotoRotation extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::table('photos', function (Blueprint $table) {
|
|
$table->dropColumn('rotation');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::table('photos', function (Blueprint $table) {
|
|
$table->integer('rotation')->nullable();
|
|
});
|
|
}
|
|
}
|