Merge branch 'develop' into feature/service-changes

This commit is contained in:
Dane Everitt 2017-01-12 13:15:37 -05:00
commit 6bd9663f59
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
136 changed files with 2470 additions and 1737 deletions

View file

@ -0,0 +1,40 @@
<?php
use Illuminate\Database\Migrations\Migration;
class FixMisnamedOptionTag extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::transaction(function () {
DB::table('service_options')->where([
['name', 'Sponge (SpongeVanilla)'],
['tag', 'spigot'],
['docker_image', 'quay.io/pterodactyl/minecraft:sponge'],
])->update([
'tag' => 'sponge',
]);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
DB::table('service_options')->where([
['name', 'Sponge (SpongeVanilla)'],
['tag', 'sponge'],
['docker_image', 'quay.io/pterodactyl/minecraft:sponge'],
])->update([
'tag' => 'spigot',
]);
}
}

View file

@ -0,0 +1,35 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateNodeConfigurationTokensTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('node_configuration_tokens', function (Blueprint $table) {
$table->increments('id');
$table->char('token', 32);
$table->timestamp('expires_at');
$table->integer('node')->unsigned();
$table->foreign('node')->references('id')->on('nodes');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('node_configuration_tokens');
}
}