From b66a48181f4947c4beb7d75c1c4192c6e872dbf5 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Tue, 10 Mar 2020 14:59:50 +0800 Subject: [PATCH] add migration for lengthening ip field --- .../2020_03_10_145738_lengthen_ip_field.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 database/migrations/2020_03_10_145738_lengthen_ip_field.php diff --git a/database/migrations/2020_03_10_145738_lengthen_ip_field.php b/database/migrations/2020_03_10_145738_lengthen_ip_field.php new file mode 100644 index 00000000..5173eaa4 --- /dev/null +++ b/database/migrations/2020_03_10_145738_lengthen_ip_field.php @@ -0,0 +1,22 @@ +string('ip', 45)->change(); + }); + } + + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->string('ip', 39)->change(); + }); + } +}