TDoG-Skin/database/migrations/2019_12_14_095751_update_ip_field.php
2024-08-17 19:13:54 +08:00

23 lines
496 B
PHP
Executable File

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