Increase PayU settings column sizes
All checks were successful
build-and-deploy / build-deploy (push) Successful in 35s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 35s
This commit is contained in:
@@ -48,5 +48,11 @@ class PayuSettingsSchemaFix(
|
||||
logger.info("Adding payu_settings.is_test column")
|
||||
jdbcTemplate.execute("alter table payu_settings add column is_test boolean not null default false")
|
||||
}
|
||||
|
||||
logger.info("Ensuring payu_settings text column sizes")
|
||||
jdbcTemplate.execute("alter table payu_settings alter column merchant_key type text")
|
||||
jdbcTemplate.execute("alter table payu_settings alter column salt_32 type text")
|
||||
jdbcTemplate.execute("alter table payu_settings alter column salt_256 type text")
|
||||
jdbcTemplate.execute("alter table payu_settings alter column base_url type text")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,16 +28,16 @@ class PayuSettings(
|
||||
@JoinColumn(name = "property_id", nullable = false)
|
||||
var property: Property,
|
||||
|
||||
@Column(name = "merchant_key", nullable = false)
|
||||
@Column(name = "merchant_key", nullable = false, columnDefinition = "text")
|
||||
var merchantKey: String,
|
||||
|
||||
@Column(name = "salt_32")
|
||||
@Column(name = "salt_32", columnDefinition = "text")
|
||||
var salt32: String? = null,
|
||||
|
||||
@Column(name = "salt_256")
|
||||
@Column(name = "salt_256", columnDefinition = "text")
|
||||
var salt256: String? = null,
|
||||
|
||||
@Column(name = "base_url", nullable = false)
|
||||
@Column(name = "base_url", nullable = false, columnDefinition = "text")
|
||||
var baseUrl: String = "https://secure.payu.in/_payment",
|
||||
|
||||
@Column(name = "is_test", nullable = false)
|
||||
|
||||
Reference in New Issue
Block a user