Skip to content

Commit

Permalink
Make vmwVmGuestOS nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
murrant committed Apr 27, 2023
1 parent 812139c commit e1ccf59
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?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('vminfo', function (Blueprint $table) {
$table->string('vmwVmGuestOS', 128)->nullable()->change();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('vminfo', function (Blueprint $table) {
$table->string('vmwVmGuestOS', 128)->nullable(false)->change();
});
}
};
2 changes: 1 addition & 1 deletion misc/db_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2108,7 +2108,7 @@ vminfo:
- { Field: vm_type, Type: varchar(16), 'Null': false, Extra: '', Default: vmware }
- { Field: vmwVmVMID, Type: int, 'Null': false, Extra: '' }
- { Field: vmwVmDisplayName, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: vmwVmGuestOS, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: vmwVmGuestOS, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: vmwVmMemSize, Type: int, 'Null': false, Extra: '' }
- { Field: vmwVmCpus, Type: int, 'Null': false, Extra: '' }
- { Field: vmwVmState, Type: 'smallint unsigned', 'Null': false, Extra: '' }
Expand Down

0 comments on commit e1ccf59

Please sign in to comment.