Skip to content

Commit

Permalink
<fix>[conf]: modify memory,power to Long type
Browse files Browse the repository at this point in the history
modify param memory,power to Long type
in BareMetal2ChassisGpuDeviceVO

Resolves: ZSTAC-69588

Change-Id: I7a676d727a6a65716f75776f637267786c746563
  • Loading branch information
shenjin committed Sep 5, 2024
1 parent dafeae6 commit e5d286e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion conf/db/upgrade/V5.2.0__schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,7 @@ BEGIN
SELECT CURTIME();
END $$
DELIMITER ;
CALL upgradeIpInLongColumn();
CALL upgradeIpInLongColumn();

ALTER TABLE BareMetal2ChassisGpuDeviceVO MODIFY COLUMN memory bigint unsigned NULL, MODIFY COLUMN power bigint unsigned NULL;
ALTER TABLE GpuDeviceVO MODIFY COLUMN memory bigint unsigned NULL, MODIFY COLUMN power bigint unsigned NULL;
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ public java.lang.String getSerialNumber() {
return this.serialNumber;
}

public java.lang.String memory;
public void setMemory(java.lang.String memory) {
public java.lang.Long memory;
public void setMemory(java.lang.Long memory) {
this.memory = memory;
}
public java.lang.String getMemory() {
public java.lang.Long getMemory() {
return this.memory;
}

public java.lang.String power;
public void setPower(java.lang.String power) {
public java.lang.Long power;
public void setPower(java.lang.Long power) {
this.power = power;
}
public java.lang.String getPower() {
public java.lang.Long getPower() {
return this.power;
}

Expand Down

0 comments on commit e5d286e

Please sign in to comment.