mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-05 18:04:33 +08:00
Added indexes, Reduced queries on pages
This commit is contained in:
@ -23,6 +23,7 @@ $factory->define(BookStack\User::class, function ($faker) {
|
||||
$factory->define(BookStack\Book::class, function ($faker) {
|
||||
return [
|
||||
'name' => $faker->sentence,
|
||||
'slug' => str_random(10),
|
||||
'description' => $faker->paragraph
|
||||
];
|
||||
});
|
||||
@ -30,6 +31,7 @@ $factory->define(BookStack\Book::class, function ($faker) {
|
||||
$factory->define(BookStack\Chapter::class, function ($faker) {
|
||||
return [
|
||||
'name' => $faker->sentence,
|
||||
'slug' => str_random(10),
|
||||
'description' => $faker->paragraph
|
||||
];
|
||||
});
|
||||
@ -37,6 +39,7 @@ $factory->define(BookStack\Chapter::class, function ($faker) {
|
||||
$factory->define(BookStack\Page::class, function ($faker) {
|
||||
return [
|
||||
'name' => $faker->sentence,
|
||||
'slug' => str_random(10),
|
||||
'html' => '<p>' . implode('</p>', $faker->paragraphs(5)) . '</p>'
|
||||
];
|
||||
});
|
||||
|
Reference in New Issue
Block a user