mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
move cleanup: seed bonus and seeding leeching time to job
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user