pixelfed/database/migrations/2018_06_11_030049_add_filte...

34 wiersze
772 B
PHP
Czysty Zwykły widok Historia

2018-06-13 23:14:44 +00:00
<?php
use Illuminate\Database\Migrations\Migration;
2018-08-28 03:07:36 +00:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2018-06-13 23:14:44 +00:00
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) {
2021-06-01 05:26:40 +00:00
$table->dropColumn(['filter_name','filter_class']);
2018-06-13 23:14:44 +00:00
});
}
}