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:
parent
a14df81f27
commit
a10e235beb
@ -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(
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user