mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-11-27 05:39:55 +08:00
add migration for lengthening ip field
This commit is contained in:
parent
31c56e9121
commit
b66a48181f
22
database/migrations/2020_03_10_145738_lengthen_ip_field.php
Normal file
22
database/migrations/2020_03_10_145738_lengthen_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 LengthenIpField extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->string('ip', 45)->change();
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->string('ip', 39)->change();
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user