Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Nov 3, 2024
1 parent 9d98876 commit 24735f9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions migrations/2024_11_03_000000_migrate_settings_keys.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
<?php

/*
* This file is part of blomstra/flarum-gdpr
*
* Copyright (c) 2021 Blomstra Ltd
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

use Illuminate\Database\Schema\Builder;

$settingsKeys = [
'allow-anonymization',
'allow-deletion',
'default-erasure',
'default-anonymous-username'
'default-anonymous-username',
];

return [
Expand All @@ -17,7 +26,7 @@
$db->table('settings')
->where('key', "blomstra-gdpr.$setting")
->update(['key' => "flarum-gdpr.$setting"]);
}
}
},
'down' => function (Builder $schema) use ($settingsKeys) {
$db = $schema->getConnection();
Expand Down

0 comments on commit 24735f9

Please sign in to comment.