mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 00:01:21 +00:00
Update seeder and migration
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user