Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
chore(migrations): shrink `merchant_id` column of `merchant_key_store` to 64 characters (#1476)
Sanchith Hegde0fdd6ecd4ac4
diff --git a/crates/storage_models/src/schema.rs b/crates/storage_models/src/schema.rsindex 91005970f4..fe60718cbd 100644--- a/crates/storage_models/src/schema.rs+++ b/crates/storage_models/src/schema.rs@@ -367,7 +367,7 @@ diesel::table! {use crate::enums::diesel_exports::*;merchant_key_store (merchant_id) {- #[max_length = 255]+ #[max_length = 64]merchant_id -> Varchar,key -> Bytea,created_at -> Timestamp,diff --git a/migrations/2023-06-19-071300_merchant_key_store_shrink_merchant_id/down.sql b/migrations/2023-06-19-071300_merchant_key_store_shrink_merchant_id/down.sqlnew file mode 100644index 0000000000..82a3ced219--- /dev/null+++ b/migrations/2023-06-19-071300_merchant_key_store_shrink_merchant_id/down.sql@@ -0,0 +1,2 @@+ALTER TABLE merchant_key_store+ALTER COLUMN merchant_id TYPE VARCHAR(255);diff --git a/migrations/2023-06-19-071300_merchant_key_store_shrink_merchant_id/up.sql b/migrations/2023-06-19-071300_merchant_key_store_shrink_merchant_id/up.sqlnew file mode 100644index 0000000000..9c3ce7dd21--- /dev/null+++ b/migrations/2023-06-19-071300_merchant_key_store_shrink_merchant_id/up.sql@@ -0,0 +1,2 @@+ALTER TABLE merchant_key_store+ALTER COLUMN merchant_id TYPE VARCHAR(64);