clrghouz/database/migrations/2019_04_16_090345_create_domains.php

37 lines
691 B
PHP
Raw Normal View History

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateDomains extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('domains', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->string('name',8)->unique();
$table->string('dnsdomain')->nullable();
2021-05-13 12:40:21 +00:00
$table->string('notes')->nullable();
2021-04-01 10:59:15 +00:00
$table->boolean('default')->default(FALSE);
2021-05-13 12:40:21 +00:00
$table->boolean('active');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('domains');
}
}