Increase PayU settings column sizes
All checks were successful
build-and-deploy / build-deploy (push) Successful in 35s

This commit is contained in:
androidlover5842
2026-01-30 06:12:10 +05:30
parent 9345930722
commit 10c24f265f
2 changed files with 10 additions and 4 deletions

View File

@@ -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")
}
}

View File

@@ -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)