Change entPhysical table column defaults (#16199)

* Change entPhysical table column defaults

* Update db_schema.yaml

* Restore unrelated db_schema change
This commit is contained in:
Tony Murray
2024-07-14 11:17:10 -05:00
committed by GitHub
parent bc82473f8a
commit e7dec574ce
26 changed files with 2480 additions and 2438 deletions
@@ -0,0 +1,42 @@
<?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('entPhysical', function (Blueprint $table) {
$table->text('entPhysicalDescr')->nullable()->change();
$table->text('entPhysicalClass')->nullable()->change();
$table->text('entPhysicalName')->nullable()->change();
$table->text('entPhysicalModelName')->nullable()->change();
$table->text('entPhysicalSerialNum')->nullable()->change();
$table->integer('entPhysicalContainedIn')->default(0)->change();
$table->integer('entPhysicalParentRelPos')->default(-1)->change();
$table->text('entPhysicalMfgName')->nullable()->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('entPhysical', function (Blueprint $table) {
$table->text('entPhysicalDescr')->change();
$table->text('entPhysicalClass')->change();
$table->text('entPhysicalName')->change();
$table->text('entPhysicalModelName')->change();
$table->text('entPhysicalSerialNum')->change();
$table->integer('entPhysicalContainedIn')->change();
$table->integer('entPhysicalParentRelPos')->change();
$table->text('entPhysicalMfgName')->change();
});
}
};