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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();
});
}
};

View File

@ -28,7 +28,7 @@ access_points:
- { Field: numasoclients, Type: smallint, 'Null': false, Extra: '', Default: '0' }
- { Field: nummonclients, Type: smallint, 'Null': false, Extra: '', Default: '0' }
- { Field: numactbssid, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: nummonbssid, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: nummonbssid, Type: int, 'Null': false, Extra: '', Default: '0' }
- { Field: interference, Type: 'tinyint unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [accesspoint_id], Unique: true, Type: BTREE }