blessing-skin-server/database/migrations/2019_12_14_095751_update_ip_field.php
2019-12-14 10:03:11 +08:00

23 lines
496 B
PHP

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