diff --git a/database/migrations/2023_04_26_185850_change_vminfo_vmw_vm_guest_o_s_nullable.php b/database/migrations/2023_04_26_185850_change_vminfo_vmw_vm_guest_o_s_nullable.php new file mode 100644 index 000000000000..1f9f6b80c258 --- /dev/null +++ b/database/migrations/2023_04_26_185850_change_vminfo_vmw_vm_guest_o_s_nullable.php @@ -0,0 +1,32 @@ +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(); + }); + } +}; diff --git a/misc/db_schema.yaml b/misc/db_schema.yaml index aeb77b926a4f..c5decc5917ca 100644 --- a/misc/db_schema.yaml +++ b/misc/db_schema.yaml @@ -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: '' }