Skip to content

Commit a10e235

Browse files
committed
revert accidental changes to migrations
1 parent a14df81 commit a10e235

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

database/migrations/2016_08_30_213301_modify_ip_storage_method.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function up()
2424
[
2525
'ip' => $server->ip,
2626
'port' => $server->port,
27-
'node' => $server->node_id,
27+
'node' => $server->node,
2828
]
2929
);
3030

@@ -61,7 +61,7 @@ public function down()
6161
// Find the allocations and reset the servers...
6262
$servers = DB::select('SELECT id, allocation FROM servers');
6363
foreach ($servers as $server) {
64-
$allocation = DB::select('SELECT * FROM allocations WHERE id = :alocid', ['alocid' => $server->allocation_id]);
64+
$allocation = DB::select('SELECT * FROM allocations WHERE id = :alocid', ['alocid' => $server->allocation]);
6565

6666
if (isset($allocation[0])) {
6767
DB::update(

database/migrations/2016_09_17_194246_add_docker_image_column.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function up()
2222
$servers = DB::table('servers')->select(
2323
'servers.id',
2424
'service_options.docker_image as s_optionImage'
25-
)->join('service_options', 'service_options.id', '=', 'servers.option_id')->get();
25+
)->join('service_options', 'service_options.id', '=', 'servers.option')->get();
2626

2727
foreach ($servers as $server) {
2828
$server->image = $server->s_optionImage;

0 commit comments

Comments
 (0)