Skip to content

Commit

Permalink
Add migration to change webhook URL max length to 511 characters
Browse files Browse the repository at this point in the history
Fixes #76
  • Loading branch information
dsevillamartin committed Dec 30, 2024
1 parent 4a40427 commit 26fefed
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions migrations/2024_12_30_increase_webhook_url_length.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

/*
* This file is part of fof/webhooks.
*
* 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\Blueprint;
use Illuminate\Database\Schema\Builder;

return [
'up' => function (Builder $schema) {
$schema->table('webhooks', function (Blueprint $table) {
$table->string('url', 511)->change();
});
},
'down' => function (Builder $schema) {
// no need to revert this change
},
];

0 comments on commit 26fefed

Please sign in to comment.