Skip to content

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

364 B
Raw Blame
/*
 We could have added the `hash_key` column with a default of the plaintext key
 used for hashing API keys, but we don't do that as it is a hassle to update
 this migration with the plaintext hash key.
 */
TRUNCATE TABLE api_keys;

ALTER TABLE api_keys
ADD COLUMN hash_key VARCHAR(64) NOT NULL;

ALTER TABLE api_keys DROP CONSTRAINT api_keys_hashed_api_key_key;