mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
move cleanup: seed bonus and seeding leeching time to job
This commit is contained in:
@@ -19,6 +19,7 @@ use App\Models\UserBanLog;
|
||||
use App\Repositories\AttendanceRepository;
|
||||
use App\Repositories\BonusRepository;
|
||||
use App\Repositories\ExamRepository;
|
||||
use App\Repositories\SearchBoxRepository;
|
||||
use App\Repositories\TagRepository;
|
||||
use App\Repositories\ToolRepository;
|
||||
use Carbon\Carbon;
|
||||
@@ -255,6 +256,18 @@ class Update extends Install
|
||||
]]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 1.8.0
|
||||
*/
|
||||
if (!NexusDB::hasColumn('searchbox', 'section_name')) {
|
||||
$this->runMigrate('database/migrations/2022_09_05_230532_add_mode_to_section_related.php');
|
||||
$this->runMigrate('database/migrations/2022_09_06_004318_add_section_name_to_searchbox_table.php');
|
||||
$this->runMigrate('database/migrations/2022_09_06_030324_change_searchbox_field_extra_to_json.php');
|
||||
$searchBoxRep = new SearchBoxRepository();
|
||||
$searchBoxRep->migrateToModeRelated();
|
||||
$this->doLog("[MIGRATE_TAXONOMY_TO_MODE_RELATED]");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function runExtraMigrate()
|
||||
|
||||
Reference in New Issue
Block a user