Merge migrations

This commit is contained in:
Dane Everitt 2020-04-10 14:01:36 -07:00
parent b72a770ec9
commit fd8b7182e7
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 1 additions and 32 deletions

View file

@ -18,6 +18,7 @@ class AddTableServerTransfers extends Migration
Schema::create('server_transfers', function (Blueprint $table) {
$table->increments('id');
$table->integer('server_id')->unsigned();
$table->tinyInteger('successful')->unsigned()->default(0);
$table->integer('old_node')->unsigned();
$table->integer('new_node')->unsigned();
$table->integer('old_allocation')->unsigned();

View file

@ -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');
});
}
}