Skip to content

Commit

Permalink
fix: missing index on uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Nov 23, 2024
1 parent c05a8e0 commit 039544d
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

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

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\Builder;

return [
'up' => function (Builder $schema) {
$schema->table('fof_upload_files', function (Blueprint $table) {
$table->index(['uuid']);
});
},
'down' => function (Builder $schema) {
$schema->table('fof_upload_files', function (Blueprint $table) {
$table->dropIndex(['uuid']);
});
},
];

0 comments on commit 039544d

Please sign in to comment.