Add MediaBlocklist feature
This commit is contained in:
parent
c2d194af1d
commit
ba1f7e7e2c
7 changed files with 206 additions and 44 deletions
|
@ -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');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue