-
-
Notifications
You must be signed in to change notification settings - Fork 835
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[1.x] fix: change length of email field (#4117)
* test: write failing tests for email length * style: formatting * style: formatting * fix: change length of email field * test: write test for email with too long local part * style: formatting * chore: remove unnecessary tests
- Loading branch information
1 parent
8eb56b1
commit 6c89f81
Showing
2 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
framework/core/migrations/2024_11_18_000000_increase_email_field_length.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Flarum. | ||
* | ||
* For detailed 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('users', function (Blueprint $table) { | ||
$table->string('email', 254)->change(); | ||
}); | ||
}, | ||
|
||
'down' => function (Builder $schema) { | ||
$schema->table('users', function (Blueprint $table) { | ||
$table->string('email', 150)->change(); | ||
}); | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters