Skip to content

Commit

Permalink
Add new migration for fixing user settings after v2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Kovah committed Feb 16, 2025
1 parent d8900d0 commit b42290f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions database/settings/2025_02_16_092049_fix_bluesky_share_method.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

use Spatie\LaravelSettings\Migrations\SettingsMigration;

return new class extends SettingsMigration
{
public function up(): void
{
foreach (DB::table('users')->pluck('id') as $userId) {
$id = 'user-' . $userId;
$this->migrator->delete($id . '.shareAdd_bluesky');
$this->migrator->add($id . '.share_bluesky', false);
}
}
};

0 comments on commit b42290f

Please sign in to comment.