Web frontend work
This commit is contained in:
@@ -14,12 +14,13 @@ class CreateZones extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('zones', function (Blueprint $table) {
|
||||
$table->integer('id')->primary();
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
|
||||
$table->integer('zone_id');
|
||||
$table->string('description')->nullable();
|
||||
$table->boolean('active')->default(TRUE);
|
||||
$table->boolean('active');
|
||||
$table->string('notes')->nullable();
|
||||
$table->boolean('public')->default(TRUE);
|
||||
|
||||
$table->ipAddress('ipv4')->nullable();
|
||||
@@ -33,6 +34,8 @@ class CreateZones extends Migration
|
||||
|
||||
$table->binary('zt_id',10)->nullable()->unique();
|
||||
$table->foreign('zt_id')->references('id')->on('zt');
|
||||
|
||||
$table->unique(['zone_id','domain_id']);
|
||||
});
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user