Skip to content

Commit

Permalink
Remove column and remove size limits
Browse files Browse the repository at this point in the history
  • Loading branch information
wweellddeerr committed Jan 8, 2025
1 parent ba8325e commit c640cb8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class SAPWorkload {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@Column(name = "system_id")
@Column(name = "sap_system_id")
private String systemIdSAP;

@Column(name = "instance_type")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
table="suseMinionInfo">
<key column="server_id"/>
<property name="minionId" column="minion_id" />
<property name="uname" column="uname" type="string" length="255" />
<property name="containerRuntime" column="container_runtime" type="string" length="20" />
<property name="uname" column="uname" type="string" />
<property name="containerRuntime" column="container_runtime" type="string" />
<property name="rebootRequiredAfter" column="reboot_required_after" type="timestamp" />
<property name="osFamily" column="os_family" type="string" length="32" />
<property name="kernelLiveVersion" column="kernel_live_version" type="string" length="255" />
Expand Down
4 changes: 2 additions & 2 deletions schema/spacewalk/common/tables/suseMinionInfo.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ CREATE TABLE suseMinionInfo
kernel_live_version VARCHAR(255),
ssh_push_port NUMERIC,
reboot_required_after TIMESTAMPTZ,
uname VARCHAR(255),
container_runtime VARCHAR(20),
uname VARCHAR,
container_runtime VARCHAR,
created TIMESTAMPTZ
DEFAULT (current_timestamp) NOT NULL,
modified TIMESTAMPTZ
Expand Down
4 changes: 2 additions & 2 deletions schema/spacewalk/common/tables/suseServerSAPWorkload.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

CREATE TABLE suseServerSAPWorkload (
id BIGINT CONSTRAINT suse_sap_workload_id_pk PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
system_id VARCHAR(5) NOT NULL,
instance_type VARCHAR(128) NOT NULL,
sap_system_id VARCHAR NOT NULL,
instance_type VARCHAR NOT NULL,
server_id NUMERIC NOT NULL REFERENCES rhnServer(id) ON DELETE CASCADE
);
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

CREATE TABLE IF NOT EXISTS suseServerSAPWorkload (
id BIGINT CONSTRAINT suse_sap_workload_id_pk PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
system_id VARCHAR(5) NOT NULL,
instance_type VARCHAR(128) NOT NULL,
sap_system_id VARCHAR NOT NULL,
instance_type VARCHAR NOT NULL,
server_id NUMERIC NOT NULL REFERENCES rhnServer(id) ON DELETE CASCADE
);
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
--

ALTER TABLE suseMinionInfo ADD COLUMN IF NOT EXISTS
container_runtime VARCHAR(20);
container_runtime VARCHAR;

ALTER TABLE suseMinionInfo ADD COLUMN IF NOT EXISTS
uname VARCHAR(255);
uname VARCHAR;

0 comments on commit c640cb8

Please sign in to comment.