diff --git a/database/migrations/2019_12_14_095751_update_ip_field.php b/database/migrations/2019_12_14_095751_update_ip_field.php new file mode 100644 index 00000000..d4179814 --- /dev/null +++ b/database/migrations/2019_12_14_095751_update_ip_field.php @@ -0,0 +1,22 @@ +string('ip', 39)->change(); + }); + } + + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->string('ip', 32)->change(); + }); + } +} diff --git a/resources/misc/changelogs/en/5.0.0.md b/resources/misc/changelogs/en/5.0.0.md index 0c9b5ca0..162754a6 100644 --- a/resources/misc/changelogs/en/5.0.0.md +++ b/resources/misc/changelogs/en/5.0.0.md @@ -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 diff --git a/resources/misc/changelogs/zh_CN/5.0.0.md b/resources/misc/changelogs/zh_CN/5.0.0.md index f4c3ff74..80fa699a 100644 --- a/resources/misc/changelogs/zh_CN/5.0.0.md +++ b/resources/misc/changelogs/zh_CN/5.0.0.md @@ -23,6 +23,7 @@ - 使用 `install.lock` 文件来检测安装状态 - 插件系统:自动从 `lang/front-end.yml` 中加载前端多语言 - AdminLTE 升级到 v3 +- 将 `ip` 字段的长度增加到 39 以支持 IPv6 ## 修复