38 lines
983 B
PHP
38 lines
983 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('module_host',function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('name',100)->nullable();
|
|
$table->string('host_id',255)->nullable();
|
|
$table->string('template',255)->nullable();
|
|
$table->foreignId('module_datacenter_id')->nullable()->constrained('module_datacenter', 'id', 'fk_mod_host_mod_dc');
|
|
$table->string('console',255)->nullable();
|
|
$table->string('iso_path',255)->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('module_host');
|
|
}
|
|
};
|