move cleanup: seed bonus and seeding leeching time to job

This commit is contained in:
xiaomlove
2022-10-28 14:17:10 +08:00
parent 410aed39cf
commit a61d1b0900
19 changed files with 404 additions and 110 deletions

View File

@@ -17,9 +17,11 @@ return new class extends Migration
public function up()
{
foreach (self::$tables as $table) {
Schema::table($table, function (Blueprint $table) {
$table->integer('mode')->default(0);
});
if (!\Nexus\Database\NexusDB::hasColumn($table, 'mode')) {
Schema::table($table, function (Blueprint $table) {
$table->integer('mode')->default(0);
});
}
}
}

View File

@@ -13,9 +13,11 @@ return new class extends Migration
*/
public function up()
{
Schema::table('searchbox', function (Blueprint $table) {
$table->json('section_name')->after('name')->nullable(true);
});
if (!\Nexus\Database\NexusDB::hasColumn('searchbox', 'section_name')) {
Schema::table('searchbox', function (Blueprint $table) {
$table->json('section_name')->after('name')->nullable(true);
});
}
}
/**