Update seeder and migration

This commit is contained in:
DariusIII
2025-05-06 11:51:34 +02:00
parent ecb4394ccf
commit f5562834b3
2 changed files with 9 additions and 10 deletions
@@ -12,7 +12,11 @@ return new class extends Migration
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('userseed');
// Check if the column exists before dropping it
if (Schema::hasColumn('users', 'userseed')) {
// Drop the column if it exists
$table->dropColumn('userseed');
}
});
}
@@ -22,7 +26,10 @@ return new class extends Migration
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->string('userseed')->nullable();
// Add the column back if it doesn't exist
if (!Schema::hasColumn('users', 'userseed')) {
$table->string('userseed')->nullable();
}
});
}
};
-8
View File
@@ -476,14 +476,6 @@ class SettingsTableSeeder extends Seeder
'name' => 'crap_timer',
'value' => '30',
],
176 => [
'name' => 'dehash',
'value' => '0',
],
177 => [
'name' => 'dehash_timer',
'value' => '30',
],
178 => [
'name' => 'fix_crap',
'value' => '0',