Files

34 lines
841 B
PHP
Raw Permalink Normal View History

2016-02-08 18:03:02 -05:00
<?php
2024-10-21 19:18:20 -06:00
use Illuminate\Support\Facades\Schema;
2016-02-08 18:03:02 -05:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddDatabasesTables extends Migration
{
/**
* Run the migrations.
*/
2024-10-21 19:18:20 -06:00
public function up(): void
2016-02-08 18:03:02 -05:00
{
Schema::create('databases', function (Blueprint $table) {
$table->increments('id');
$table->integer('server')->unsigned();
$table->integer('db_server')->unsigned();
$table->string('database')->unique();
$table->string('username')->unique();
$table->string('remote')->default('%');
$table->text('password');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
2024-10-21 19:18:20 -06:00
public function down(): void
2016-02-08 18:03:02 -05:00
{
Schema::drop('databases');
}
}