Update source into github
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?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_ip_address',function (Blueprint $table) {
|
||||
$table->id()->autoIncrement();
|
||||
$table->string('vm_name',255)->nullable();
|
||||
$table->bigInteger('module_host_id')->default(0)->index();
|
||||
$table->bigInteger('module_network_id')->default(0)->index();
|
||||
$table->string('ip',100)->nullable();
|
||||
$table->string('gateway',100)->nullable();
|
||||
$table->string('netmask',100)->nullable();
|
||||
$table->string('dns',100)->nullable();
|
||||
$table->tinyInteger('status')->default(0)->comment('1: assign;0: free');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('module_ip_address');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user