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 27, 2023
1 parent c30b8f1 commit cfee6e2
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,20 @@
* 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('posts', function (Blueprint $table) {
'up' => function (Builder $schema) {
$schema->table('posts', function (Blueprint $table) {
$table->index('ip_address');
$table->index(['user_id', 'ip_address']);
});
},
'down' => function (Builder $schema) {
},
'down' => function (Builder $schema) {
$schema->table('posts', function (Blueprint $table) {
$table->dropIndex(['ip_address']);
$table->dropIndex(['user_id', 'ip_address']);
});
},
},
];

0 comments on commit cfee6e2

Please sign in to comment.