forked from mirror/pixelfed
35 lines
803 B
PHP
35 lines
803 B
PHP
![]() |
<?php
|
||
|
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
|
||
|
class AddFiltersToMediaTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::table('media', function (Blueprint $table) {
|
||
|
$table->string('filter_name')->nullable()->after('orientation');
|
||
|
$table->string('filter_class')->nullable()->after('filter_name');
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::table('media', function (Blueprint $table) {
|
||
|
$table->dropColumn('filter_name');
|
||
|
$table->dropColumn('filter_class');
|
||
|
});
|
||
|
}
|
||
|
}
|