Merge migrations
This commit is contained in:
parent
b72a770ec9
commit
fd8b7182e7
|
@ -18,6 +18,7 @@ class AddTableServerTransfers extends Migration
|
||||||
Schema::create('server_transfers', function (Blueprint $table) {
|
Schema::create('server_transfers', function (Blueprint $table) {
|
||||||
$table->increments('id');
|
$table->increments('id');
|
||||||
$table->integer('server_id')->unsigned();
|
$table->integer('server_id')->unsigned();
|
||||||
|
$table->tinyInteger('successful')->unsigned()->default(0);
|
||||||
$table->integer('old_node')->unsigned();
|
$table->integer('old_node')->unsigned();
|
||||||
$table->integer('new_node')->unsigned();
|
$table->integer('new_node')->unsigned();
|
||||||
$table->integer('old_allocation')->unsigned();
|
$table->integer('old_allocation')->unsigned();
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Schema;
|
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
|
||||||
|
|
||||||
class AddSuccessfulColumnToServerTransfers extends Migration
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Run the migrations.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function up()
|
|
||||||
{
|
|
||||||
Schema::table('server_transfers', function (Blueprint $table) {
|
|
||||||
$table->tinyInteger('successful')->unsigned()->default(0);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Reverse the migrations.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function down()
|
|
||||||
{
|
|
||||||
Schema::table('server_transfers', function (Blueprint $table) {
|
|
||||||
$table->dropColumn('successful');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue