Skip to content

Commit

Permalink
Merge pull request #385 from NFDI4Chem/development
Browse files Browse the repository at this point in the history
v1.5.0-alpha - Merge Development to Main
  • Loading branch information
CS76 authored Aug 25, 2022
2 parents b95773b + cc31bc0 commit 11808b2
Show file tree
Hide file tree
Showing 6 changed files with 304 additions and 33 deletions.
2 changes: 0 additions & 2 deletions app/Http/Controllers/Admin/LicenseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ public function index(Request $request)
$licenses = Cache::rememberForever('licenses', function () {
return License::select('id', 'title', 'description')->get();
});

// $licenses = License::select('id','title')->get();
return $licenses;
}

Expand Down
1 change: 1 addition & 0 deletions app/Http/Resources/LicenseResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function toArray($request)
'html_url' => $this->html_url,
'permissions' => $this->permissions,
'description' => $this->description,
'body' => $this->body,
];
}
}
2 changes: 0 additions & 2 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,4 @@
'View' => Illuminate\Support\Facades\View::class,

],

'github_license_url' => env('GITHUB_LICENSE_URL', 'https://api.github.com/licenses'),
];
34 changes: 34 additions & 0 deletions database/migrations/2022_08_22_081209_update_license_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('licenses', function (Blueprint $table) {
$table->dropColumn('node_id');
$table->dropColumn('html_url');
$table->dropColumn('implementation');
$table->dropColumn('permissions');
$table->string('category')->nullable();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
};
Loading

0 comments on commit 11808b2

Please sign in to comment.