Skip to content

Commit

Permalink
schema: allow for VMs with 256+ cores
Browse files Browse the repository at this point in the history
fixes #555
  • Loading branch information
Thomas-Gelf committed Oct 11, 2024
1 parent f093fd7 commit a700003
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions schema/mysql-migrations/upgrade_61.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ALTER TABLE virtual_machine
MODIFY COLUMN hardware_numcpu SMALLINT UNSIGNED NULL DEFAULT NULL;

INSERT INTO vspheredb_schema_migration
(schema_version, migration_time)
VALUES (61, NOW());
4 changes: 2 additions & 2 deletions schema/mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ CREATE TABLE virtual_machine (
uuid VARBINARY(16) NOT NULL,
vcenter_uuid VARBINARY(16) NOT NULL,
hardware_memorymb INT UNSIGNED NULL DEFAULT NULL,
hardware_numcpu TINYINT UNSIGNED NULL DEFAULT NULL,
hardware_numcpu SMALLINT UNSIGNED NULL DEFAULT NULL,
hardware_numcorespersocket TINYINT UNSIGNED NULL DEFAULT 1,
template ENUM('y', 'n') NULL DEFAULT NULL, -- TODO: drop and skip templates? Or separate table?
instance_uuid VARCHAR(64) DEFAULT NULL, -- 5004890e-8edd-fe5f-d116-d5704b2043e4
Expand Down Expand Up @@ -956,4 +956,4 @@ CREATE TABLE counter_300x5 (

INSERT INTO vspheredb_schema_migration
(schema_version, migration_time)
VALUES (60, NOW());
VALUES (61, NOW());

0 comments on commit a700003

Please sign in to comment.