Lengthened ip field to support IPv6
This commit is contained in:
parent
759ea01146
commit
c6959ebc81
22
database/migrations/2019_12_14_095751_update_ip_field.php
Normal file
22
database/migrations/2019_12_14_095751_update_ip_field.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class UpdateIpField extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->string('ip', 39)->change();
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->string('ip', 32)->change();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -23,6 +23,7 @@
|
|||
- Use `install.lock` file to detect status of installation.
|
||||
- Load front end i18n text from `lang/front-end.yml` of a plugin automatically.
|
||||
- Upgraded AdminLTE to v3.
|
||||
- Lengthened `ip` field in order to support IPv6.
|
||||
|
||||
## Fixed
|
||||
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
- 使用 `install.lock` 文件来检测安装状态
|
||||
- 插件系统:自动从 `lang/front-end.yml` 中加载前端多语言
|
||||
- AdminLTE 升级到 v3
|
||||
- 将 `ip` 字段的长度增加到 39 以支持 IPv6
|
||||
|
||||
## 修复
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user