Update the type of nummonbssid column in the access_points table (#15647)

* Update the type of nummonbssid field in the access_points table
* Update 2023_12_15_105529_access_points_nummonbssid_integer.php
Fix format errors
This commit is contained in:
amyjohn000
2023-12-15 16:16:46 +08:00
committed by GitHub
parent 66cc34dbd2
commit a8480e5e0a
2 changed files with 29 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('access_points', function (Blueprint $table) {
$table->integer('nummonbssid')->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('access_points', function (Blueprint $table) {
$table->tinyInteger('nummonbssid')->change();
});
}
};