ufutx.dma/database/migrations/2023_11_24_141508_change_table_china.php
2026-03-04 14:42:40 +08:00

35 lines
734 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('china', function (Blueprint $table) {
$table->integer('id')->nullable()->change();
$table->integer('pid')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('china', function (Blueprint $table) {
$table->dropColumn('id');
$table->dropColumn('pid');
});
}
};