Lengthened ip field to support IPv6

This commit is contained in:
Pig Fang 2019-12-14 10:03:11 +08:00
parent 759ea01146
commit c6959ebc81
3 changed files with 24 additions and 0 deletions

View 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();
});
}
}

View File

@ -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

View File

@ -23,6 +23,7 @@
- 使用 `install.lock` 文件来检测安装状态
- 插件系统:自动从 `lang/front-end.yml` 中加载前端多语言
- AdminLTE 升级到 v3
- 将 `ip` 字段的长度增加到 39 以支持 IPv6
## 修复