Skip to content

Commit 162e5cf

Browse files
committed
storage_ip_address in host table can be NULL
1 parent c5bc16e commit 162e5cf

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎setup/db/create-schema.sql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ CREATE TABLE `cloud`.`host` (
664664
`private_ip_address` char(40) NOT NULL,
665665
`private_netmask` varchar(15),
666666
`private_mac_address` varchar(17),
667-
`storage_ip_address` char(40) NOT NULL,
667+
`storage_ip_address` char(40),
668668
`storage_netmask` varchar(15),
669669
`storage_mac_address` varchar(17),
670670
`storage_ip_address_2` char(40),

‎setup/db/db/schema-2211to2212.sql‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ INSERT IGNORE INTO configuration VALUES ('Advanced', 'DEFAULT', 'management-serv
1818

1919
update `cloud`.`vm_template` set hypervisor_type='XenServer' where unique_name='xs-tools.iso';
2020

21+
ALTER TABLE `cloud`.`host` MODIFY COLUMN `storage_ip_address` char(40);
22+

0 commit comments

Comments
 (0)