Skip to content

Commit

Permalink
remove settings based censors key
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Jun 12, 2024
1 parent 414acd5 commit 23e0992
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions migrations/2024_06_12_remove_settings_based_censors.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

/*
* This file is part of fof/filter.
*
* Copyright (c) FriendsOfFlarum.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

use Illuminate\Database\Schema\Builder;

return [
'up' => function (Builder $schema) {
$db = $schema->getConnection();
$db->table('settings')->where('key', 'fof-filter.censors')->delete();

},
'down' => function (Builder $schema) {
// Nothing
},
];

0 comments on commit 23e0992

Please sign in to comment.