mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-09 23:07:50 +00:00
Cleaned up DB usage in migration
This commit is contained in:
parent
7d9de23a25
commit
0e7166f7f6
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class AddExportRolePermission extends Migration
|
||||
{
|
||||
|
@ -13,7 +14,7 @@ class AddExportRolePermission extends Migration
|
|||
public function up()
|
||||
{
|
||||
// Create new templates-manage permission and assign to admin role
|
||||
$roles = \Illuminate\Support\Facades\DB::table('roles')->get('id');
|
||||
$roles = DB::table('roles')->get('id');
|
||||
$permissionId = DB::table('role_permissions')->insertGetId([
|
||||
'name' => 'content-export',
|
||||
'display_name' => 'Export Content',
|
||||
|
|
Loading…
Add table
Reference in a new issue