diff --git a/app/Console/Commands/NexusUpdate.php b/app/Console/Commands/NexusUpdate.php index 257b1a39..ff45e3a8 100644 --- a/app/Console/Commands/NexusUpdate.php +++ b/app/Console/Commands/NexusUpdate.php @@ -118,11 +118,13 @@ class NexusUpdate extends Command return 0; } if (!$mysqlInfo['match']) { - $this->doLog("Error: MySQL version: {$mysqlInfo['version']} is too low, please use the newest version of {$mysqlInfo['minVersion']} or above.", 'error'); + $minVersion = $mysqlInfo['minVersion'] ?? '5.7.8'; + $this->doLog("Error: MySQL version: {$mysqlInfo['version']} is too low, please use the newest version of {$minVersion} or above.", 'error'); return 0; } if (!$redisInfo['match']) { - $this->doLog("Error: Redis version: {$mysqlInfo['version']} is too low, please use {$mysqlInfo['minVersion']} or above.", 'error'); + $minVersion = $redisInfo['minVersion'] ?? '2.6.12'; + $this->doLog("Error: Redis version: {$mysqlInfo['version']} is too low, please use {$minVersion} or above.", 'error'); return 0; } if ($includeComposer) { diff --git a/app/Filament/Resources/Section/CategoryResource.php b/app/Filament/Resources/Section/CategoryResource.php index 062fde89..096fb9d6 100644 --- a/app/Filament/Resources/Section/CategoryResource.php +++ b/app/Filament/Resources/Section/CategoryResource.php @@ -95,7 +95,7 @@ class CategoryResource extends Resource Tables\Columns\TextColumn::make('icon.name')->label(__('label.search_box.taxonomy.icon_id')), Tables\Columns\TextColumn::make('image')->label(__('label.search_box.taxonomy.image')), Tables\Columns\TextColumn::make('class_name')->label(__('label.search_box.taxonomy.class_name')), - Tables\Columns\TextColumn::make('sort_index')->label(__('label.search_box.taxonomy.sort_index'))->sortable(), + Tables\Columns\TextColumn::make('sort_index')->label(__('label.priority'))->sortable(), ]) ->defaultSort('sort_index', 'desc') ->filters([ diff --git a/database/seeders/CategoriesTableSeeder.php b/database/seeders/CategoriesTableSeeder.php index f9fcad3c..5090658d 100644 --- a/database/seeders/CategoriesTableSeeder.php +++ b/database/seeders/CategoriesTableSeeder.php @@ -14,103 +14,103 @@ class CategoriesTableSeeder extends Seeder */ public function run() { - + \DB::table('categories')->delete(); - + \DB::table('categories')->insert(array ( - 0 => + 0 => array ( 'id' => 401, 'mode' => 4, 'class_name' => 'c_movies', 'name' => 'Movies', 'image' => 'catsprites.png', - 'sort_index' => 0, + 'sort_index' => 8, 'icon_id' => 1, ), - 1 => + 1 => array ( 'id' => 402, 'mode' => 4, 'class_name' => 'c_tvseries', 'name' => 'TV Series', 'image' => 'catsprites.png', - 'sort_index' => 3, + 'sort_index' => 7, 'icon_id' => 1, ), - 2 => + 2 => array ( 'id' => 403, 'mode' => 4, 'class_name' => 'c_tvshows', 'name' => 'TV Shows', 'image' => 'catsprites.png', - 'sort_index' => 4, + 'sort_index' => 6, 'icon_id' => 1, ), - 3 => + 3 => array ( 'id' => 404, 'mode' => 4, 'class_name' => 'c_doc', 'name' => 'Documentaries', 'image' => 'catsprites.png', - 'sort_index' => 1, + 'sort_index' => 5, 'icon_id' => 1, ), - 4 => + 4 => array ( 'id' => 405, 'mode' => 4, 'class_name' => 'c_anime', 'name' => 'Animations', 'image' => 'catsprites.png', - 'sort_index' => 2, + 'sort_index' => 4, 'icon_id' => 1, ), - 5 => + 5 => array ( 'id' => 406, 'mode' => 4, 'class_name' => 'c_mv', 'name' => 'Music Videos', 'image' => 'catsprites.png', - 'sort_index' => 5, + 'sort_index' => 3, 'icon_id' => 1, ), - 6 => + 6 => array ( 'id' => 407, 'mode' => 4, 'class_name' => 'c_sports', 'name' => 'Sports', 'image' => 'catsprites.png', - 'sort_index' => 6, + 'sort_index' => 2, 'icon_id' => 1, ), - 7 => + 7 => array ( 'id' => 408, 'mode' => 4, 'class_name' => 'c_hqaudio', 'name' => 'HQ Audio', 'image' => 'catsprites.png', - 'sort_index' => 8, + 'sort_index' => 1, 'icon_id' => 1, ), - 8 => + 8 => array ( 'id' => 409, 'mode' => 4, 'class_name' => 'c_misc', 'name' => 'Misc', 'image' => 'catsprites.png', - 'sort_index' => 7, + 'sort_index' => 0, 'icon_id' => 1, ), )); - - + + } -} \ No newline at end of file +} diff --git a/include/constants.php b/include/constants.php index 5bf8b292..e4b22807 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@