Path: blob/1.0-develop/database/migrations/2016_02_07_172148_add_databases_tables.php
7460 views
<?php12use Illuminate\Support\Facades\Schema;3use Illuminate\Database\Schema\Blueprint;4use Illuminate\Database\Migrations\Migration;56class AddDatabasesTables extends Migration7{8/**9* Run the migrations.10*/11public function up(): void12{13Schema::create('databases', function (Blueprint $table) {14$table->increments('id');15$table->integer('server')->unsigned();16$table->integer('db_server')->unsigned();17$table->string('database')->unique();18$table->string('username')->unique();19$table->string('remote')->default('%');20$table->text('password');21$table->timestamps();22});23}2425/**26* Reverse the migrations.27*/28public function down(): void29{30Schema::drop('databases');31}32}333435