Skip to content

Commit

Permalink
modif config et taille instance lb
Browse files Browse the repository at this point in the history
  • Loading branch information
khergalant committed Jul 18, 2024
1 parent 6815b7b commit 2ab996d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class Configuration implements Serializable {
@Column(name = "cod_config")
private String codConfig;

@Column(name = "val_config")
@Column(name = "val_config", columnDefinition = "TEXT")
private String valConfig;

public Configuration() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
* The primary key class for the load_balancing_reload_run database table.
*/
@Data
@EqualsAndHashCode(of = {"datLastCheckLbReloadRun", "instanceIdLbReloadRun"})
@EqualsAndHashCode(of = { "datLastCheckLbReloadRun", "instanceIdLbReloadRun" })
@Embeddable
@ToString(of = {"datLastCheckLbReloadRun", "instanceIdLbReloadRun"})
@ToString(of = { "datLastCheckLbReloadRun", "instanceIdLbReloadRun" })
@SuppressWarnings("serial")
public class LoadBalancingReloadRunPK implements Serializable {
// default serial version id, required for serializable classes.
Expand All @@ -45,7 +45,7 @@ public class LoadBalancingReloadRunPK implements Serializable {
@NotNull
private LocalDateTime datLastCheckLbReloadRun;

@Column(name = "instance_id_lb_reload_run", unique = true, nullable = false, length = 20)
@Column(name = "instance_id_lb_reload_run", unique = true, nullable = false, length = 100)
@NotNull
private String instanceIdLbReloadRun;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CREATE TABLE `configuration` (
`cod_config` VARCHAR(50) NOT NULL,
`val_config` VARCHAR(1000) NOT NULL,
`val_config` LONGTEXT NOT NULL,
PRIMARY KEY (`cod_config`)
)
COMMENT='table de configuration'
Expand All @@ -14,3 +14,5 @@ CREATE TABLE `inscription_ind` (
)
COMMENT='table des inscriptions des individus'
ENGINE=InnoDB;

ALTER TABLE `load_balancing_reload_run` CHANGE COLUMN `instance_id_lb_reload_run` `instance_id_lb_reload_run` VARCHAR(100) NOT NULL COMMENT 'id de l''instance' AFTER `dat_last_check_lb_reload_run`;

0 comments on commit 2ab996d

Please sign in to comment.