33 lines
675 B
PHP
33 lines
675 B
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
||
|
return new class() extends Migration {
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::create('maildispatchers', function (Blueprint $table) {
|
||
|
$table->uuid('id');
|
||
|
$table->string('name');
|
||
|
$table->uuid('gateway_id');
|
||
|
$table->json('filter');
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::dropIfExists('maildispatchers');
|
||
|
}
|
||
|
};
|