vmailadmin/database/migrations/2020_03_15_072650_create_tlspolicies_table.php

39 lines
865 B
PHP
Raw Permalink Normal View History

2020-05-23 15:20:01 +02:00
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTlspoliciesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tlspolicies', function (Blueprint $table) {
$table->increments('id');
$table->string('domain', 255);
$table->enum('policy', ['none', 'may', 'encrypt', 'dane', 'dane-only', 'fingerprint', 'verify', 'secure']);
$table->string('params', 255)->nullable();
$table->timestamps();
$table->unique(["domain"]);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tlspolicies');
}
}