Add migration

This commit is contained in:
Daniel Supernault 2020-12-27 18:19:07 -07:00
parent a2ad176020
commit 95cea65d39
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddSkipOptimizeToMediaTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('media', function (Blueprint $table) {
$table->boolean('skip_optimize')->nullable()->index();
$table->timestamp('replicated_at')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('media', function (Blueprint $table) {
$table->dropColumn('skip_optimize');
$table->dropColumn('replicated_at');
});
}
}