Cleanup migration
This commit is contained in:
parent
fd8b7182e7
commit
568328596a
1 changed files with 1 additions and 5 deletions
|
@ -13,8 +13,6 @@ class AddTableServerTransfers extends Migration
|
||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::dropIfExists('server_transfers');
|
|
||||||
|
|
||||||
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();
|
||||||
|
@ -26,10 +24,8 @@ class AddTableServerTransfers extends Migration
|
||||||
$table->string('old_additional_allocations')->nullable();
|
$table->string('old_additional_allocations')->nullable();
|
||||||
$table->string('new_additional_allocations')->nullable();
|
$table->string('new_additional_allocations')->nullable();
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
|
||||||
|
|
||||||
Schema::table('server_transfers', function (Blueprint $table) {
|
$table->foreign('server_id')->references('id')->on('servers')->onDelete('cascade');
|
||||||
$table->foreign('server_id')->references('id')->on('servers');
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue