39 lines
865 B
PHP
39 lines
865 B
PHP
|
|
||
|
|
||
|
<?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');
|
||
|
}
|
||
|
}
|
||
|
|