-
-
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.
fix: increase length of email field (#4118)
- Loading branch information
1 parent
7cfa560
commit 49064f6
Showing
3 changed files
with
111 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_of_users.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(); | ||
}); | ||
} | ||
]; |
25 changes: 25 additions & 0 deletions
25
framework/core/migrations/2024_11_22_000000_increase_email_field_length_in_email_tokens.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('email_tokens', function (Blueprint $table) { | ||
$table->string('email', 254)->change(); | ||
}); | ||
}, | ||
|
||
'down' => function (Builder $schema) { | ||
$schema->table('email_tokens', 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