1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-22 17:12:30 +01:00

revert accidental changes to migrations

This commit is contained in:
Jakob Schrettenbrunner 2017-02-12 17:38:15 +01:00
parent a14df81f27
commit a10e235beb
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ class ModifyIpStorageMethod extends Migration
[
'ip' => $server->ip,
'port' => $server->port,
'node' => $server->node_id,
'node' => $server->node,
]
);
@ -61,7 +61,7 @@ class ModifyIpStorageMethod extends Migration
// Find the allocations and reset the servers...
$servers = DB::select('SELECT id, allocation FROM servers');
foreach ($servers as $server) {
$allocation = DB::select('SELECT * FROM allocations WHERE id = :alocid', ['alocid' => $server->allocation_id]);
$allocation = DB::select('SELECT * FROM allocations WHERE id = :alocid', ['alocid' => $server->allocation]);
if (isset($allocation[0])) {
DB::update(

View File

@ -22,7 +22,7 @@ class AddDockerImageColumn extends Migration
$servers = DB::table('servers')->select(
'servers.id',
'service_options.docker_image as s_optionImage'
)->join('service_options', 'service_options.id', '=', 'servers.option_id')->get();
)->join('service_options', 'service_options.id', '=', 'servers.option')->get();
foreach ($servers as $server) {
$server->image = $server->s_optionImage;