]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
7d9de23
)
Cleaned up DB usage in migration
2899/head
author
Dan Brown
<redacted>
Sat, 28 Aug 2021 20:55:04 +0000
(21:55 +0100)
committer
Dan Brown
<redacted>
Sat, 28 Aug 2021 20:55:04 +0000
(21:55 +0100)
database/migrations/2021_08_28_161743_add_export_role_permission.php
patch
|
blob
|
history
diff --git
a/database/migrations/2021_08_28_161743_add_export_role_permission.php
b/database/migrations/2021_08_28_161743_add_export_role_permission.php
index 184c24ecf533bde7aa0647e24735095085b664d5..1da6076557d95e345ab0788352c33e84c2407c6f 100644
(file)
--- a/
database/migrations/2021_08_28_161743_add_export_role_permission.php
+++ b/
database/migrations/2021_08_28_161743_add_export_role_permission.php
@@
-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',