manga: add Light Novel support

This commit is contained in:
Irfan 2021-06-29 01:56:04 +05:00
parent e75c0c7a62
commit 4d2a880bdf
2 changed files with 3 additions and 2 deletions

View File

@ -17,12 +17,13 @@ class SearchQueryBuilderManga implements SearchQueryBuilderInterface
* schema="manga search query type",
* description="Manga Search Query Type",
* type="string",
* enum={"manga","novel","oneshot","doujin","manhwa","manhua"}
* enum={"manga","novel", "lightnovel", "oneshot","doujin","manhwa","manhua"}
* )
*/
const MAP_TYPES = [
'manga' => 'Manga',
'novel' => 'Novel',
'lightnovel' => 'Light Novel',
'oneshot' => 'One-shot',
'doujin' => 'Doujinshi',
'manhwa' => 'Manhwa',

View File

@ -21,7 +21,7 @@ class CreateMangaTable extends Migration
$table->index('title');
$table->index('title_english');
$table->index('title_japanese');
$table->enum('type', ['Manga', 'Novel', 'One-shot', 'Doujinshi', 'Manhwa', 'Manhua', 'OEL']);
$table->enum('type', ['Manga', 'Novel', 'Light Novel', 'One-shot', 'Doujinshi', 'Manhwa', 'Manhua', 'OEL']);
$table->integer('chapters')->index('chapters');
$table->integer('volumes')->index('volumes');
$table->string('status')->index();