Add MediaBlocklist feature

This commit is contained in:
Daniel Supernault 2020-07-26 22:05:52 -06:00
parent c2d194af1d
commit ba1f7e7e2c
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
7 changed files with 206 additions and 44 deletions

View file

@ -0,0 +1,37 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMediaBlocklistsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('media_blocklists', function (Blueprint $table) {
$table->id();
$table->string('sha256')->nullable()->unique()->index();
$table->string('sha512')->nullable()->unique()->index();
$table->string('name')->nullable();
$table->text('description')->nullable();
$table->boolean('active')->default(true)->index();
$table->json('metadata')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('media_blocklists');
}
}