repo
stringclasses
4 values
file_path
stringlengths
6
193
extension
stringclasses
23 values
content
stringlengths
0
1.73M
token_count
int64
0
724k
__index_level_0__
int64
0
10.8k
hyperswitch
migrations/2025-01-14-832737_add_charges_to_payment_attempt/up.sql
.sql
ALTER TABLE payment_attempt ADD COLUMN charges JSONB DEFAULT NULL;
14
200
hyperswitch
migrations/2025-01-14-832737_add_charges_to_payment_attempt/down.sql
.sql
ALTER TABLE payment_attempt DROP COLUMN charges;
9
201
hyperswitch
migrations/2024-09-26-113912_add-auto-retries-configs-in-profile/up.sql
.sql
-- Your SQL goes here -- Add is_auto_retries_enabled column in business_profile table ALTER TABLE business_profile ADD COLUMN IF NOT EXISTS is_auto_retries_enabled BOOLEAN; -- Add max_auto_retries_enabled column in business_profile table ALTER TABLE business_profile ADD COLUMN IF NOT EXISTS max_auto_retries_enabled SM...
65
202
hyperswitch
migrations/2024-09-26-113912_add-auto-retries-configs-in-profile/down.sql
.sql
-- This file should undo anything in `up.sql` -- Drop is_auto_retries_enabled column from business_profile table ALTER TABLE business_profile DROP COLUMN IF EXISTS is_auto_retries_enabled; -- Drop max_auto_retries_enabled column from business_profile table ALTER TABLE business_profile DROP COLUMN IF EXISTS max_auto_re...
65
203
hyperswitch
migrations/2024-07-19-044034_change_primary_key_for_refund/up.sql
.sql
-- Your SQL goes here -- The below query will lock the refund table -- Running this query is not necessary on higher environments -- as the application will work fine without these queries being run -- This query should be run after the new version of application is deployed ALTER TABLE refund DROP CONSTRAINT refund_pk...
118
204
hyperswitch
migrations/2024-07-19-044034_change_primary_key_for_refund/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE refund DROP CONSTRAINT refund_pkey; ALTER TABLE refund ADD PRIMARY KEY (id);
30
205
hyperswitch
migrations/2024-04-12-100925_mca_additional_merchant_data/up.sql
.sql
-- Your SQL goes here ALTER TABLE merchant_connector_account ADD COLUMN IF NOT EXISTS additional_merchant_data BYTEA DEFAULT NULL;
25
206
hyperswitch
migrations/2024-04-12-100925_mca_additional_merchant_data/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE merchant_connector_account DROP COLUMN IF EXISTS additional_merchant_data;
25
207
hyperswitch
migrations/2023-11-29-063030_add-incremental_authorization_allowed-in-payment-intent/up.sql
.sql
-- Your SQL goes here ALTER TABLE payment_intent ADD COLUMN IF NOT EXISTS incremental_authorization_allowed BOOLEAN;
21
208
hyperswitch
migrations/2023-11-29-063030_add-incremental_authorization_allowed-in-payment-intent/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE payment_intent DROP COLUMN IF EXISTS incremental_authorization_allowed;
24
209
hyperswitch
migrations/2023-11-08-144951_drop_connector_response_table/up.sql
.sql
-- Your SQL goes here DROP TABLE connector_response; --NOT to run in deployment envs
19
210
hyperswitch
migrations/2023-11-08-144951_drop_connector_response_table/down.sql
.sql
-- This file should undo anything in `up.sql` CREATE TABLE connector_response ( id SERIAL PRIMARY KEY, payment_id VARCHAR(255) NOT NULL, merchant_id VARCHAR(255) NOT NULL, txn_id VARCHAR(255) NOT NULL, created_at TIMESTAMP NOT NULL DEFAULT now()::TIMESTAMP, modified_at TIMESTAMP NOT NULL DEFAULT...
267
211
hyperswitch
migrations/2023-10-19-124023_add_connector_id_to_other_tables/up.sql
.sql
-- Your SQL goes here ALTER TABLE file_metadata ADD COLUMN IF NOT EXISTS merchant_connector_id VARCHAR(32); ALTER TABLE refund ADD COLUMN IF NOT EXISTS merchant_connector_id VARCHAR(32); ALTER TABLE payout_attempt ADD COLUMN IF NOT EXISTS merchant_connector_id VARCHAR(32); ALTER TABLE dispute ADD COLUMN IF NOT EXIST...
93
212
hyperswitch
migrations/2023-10-19-124023_add_connector_id_to_other_tables/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE file_metadata DROP COLUMN IF EXISTS merchant_connector_id; ALTER TABLE refund DROP COLUMN IF EXISTS merchant_connector_id; ALTER TABLE payout_attempt DROP COLUMN IF EXISTS merchant_connector_id; ALTER TABLE dispute DROP COLUMN IF EXISTS merchant_connector_id;...
68
213
hyperswitch
migrations/2024-07-30-124102_add_entity_type_to_roles/up.sql
.sql
-- Your SQL goes here ALTER TABLE roles ADD COLUMN entity_type VARCHAR(64);
18
214
hyperswitch
migrations/2024-07-30-124102_add_entity_type_to_roles/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE roles DROP COLUMN entity_type;
19
215
hyperswitch
migrations/2023-02-28-072631_ang-currency/up.sql
.sql
-- Your SQL goes here ALTER TYPE "Currency" ADD VALUE 'ANG' after 'AMD';
20
216
hyperswitch
migrations/2023-02-28-072631_ang-currency/down.sql
.sql
SELECT 1;
4
217
hyperswitch
migrations/2023-03-26-163105_add_unresolved_status/up.sql
.sql
ALTER TYPE "AttemptStatus" ADD VALUE IF NOT EXISTS 'unresolved'; ALTER TYPE "IntentStatus" ADD VALUE IF NOT EXISTS 'requires_merchant_action' after 'requires_customer_action'; ALTER TYPE "EventType" ADD VALUE IF NOT EXISTS 'action_required'; ALTER TYPE "EventType" ADD VALUE IF NOT EXISTS 'payment_processing';
66
218
hyperswitch
migrations/2023-03-26-163105_add_unresolved_status/down.sql
.sql
DELETE FROM pg_enum WHERE enumlabel = 'unresolved' AND enumtypid = ( SELECT oid FROM pg_type WHERE typname = 'AttemptStatus' ); DELETE FROM pg_enum WHERE enumlabel = 'requires_merchant_action' AND enumtypid = ( SELECT oid FROM pg_type WHERE typname = 'IntentStatus' ); DELETE FROM pg_enum WHERE enumlabel = 'action_r...
136
219
hyperswitch
migrations/2024-06-10-084722_create_user_authentication_methods_table/up.sql
.sql
-- Your SQL goes here CREATE TABLE IF NOT EXISTS user_authentication_methods ( id VARCHAR(64) PRIMARY KEY, auth_id VARCHAR(64) NOT NULL, owner_id VARCHAR(64) NOT NULL, owner_type VARCHAR(64) NOT NULL, auth_type VARCHAR(64) NOT NULL, private_config bytea, public_config JSONB, allow_signup...
140
220
hyperswitch
migrations/2024-06-10-084722_create_user_authentication_methods_table/down.sql
.sql
-- This file should undo anything in `up.sql` DROP INDEX IF EXISTS auth_id_index; DROP INDEX IF EXISTS owner_id_index; DROP TABLE IF EXISTS user_authentication_methods;
35
221
hyperswitch
migrations/2024-12-03-072318_platform_merchant_account/up.sql
.sql
-- Your SQL goes here ALTER TABLE merchant_account ADD COLUMN IF NOT EXISTS is_platform_account BOOL NOT NULL DEFAULT FALSE; ALTER TABLE payment_intent ADD COLUMN IF NOT EXISTS platform_merchant_id VARCHAR(64);
42
222
hyperswitch
migrations/2024-12-03-072318_platform_merchant_account/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE merchant_account DROP COLUMN IF EXISTS is_platform_account; ALTER TABLE payment_intent DROP COLUMN IF EXISTS platform_merchant_id;
36
223
hyperswitch
migrations/2023-05-08-141907_rename_dispute_cols/up.sql
.sql
-- Your SQL goes here ALTER TABLE dispute RENAME COLUMN dispute_created_at TO connector_created_at; ALTER TABLE dispute RENAME COLUMN updated_at TO connector_updated_at;
35
224
hyperswitch
migrations/2023-05-08-141907_rename_dispute_cols/down.sql
.sql
ALTER TABLE dispute RENAME COLUMN connector_created_at TO dispute_created_at; ALTER TABLE dispute RENAME COLUMN connector_updated_at TO updated_at;
29
225
hyperswitch
migrations/2024-04-24-104042_add_capture_method_in_fraud_check_table/up.sql
.sql
ALTER TABLE fraud_check ADD COLUMN IF NOT EXISTS payment_capture_method "CaptureMethod" NULL;
19
226
hyperswitch
migrations/2024-04-24-104042_add_capture_method_in_fraud_check_table/down.sql
.sql
ALTER TABLE fraud_check DROP COLUMN IF EXISTS payment_capture_method;
13
227
hyperswitch
migrations/2024-02-29-082737_update_payouts_for_analytics/up.sql
.sql
ALTER TABLE PAYOUTS ADD COLUMN profile_id VARCHAR(64); UPDATE PAYOUTS AS PO SET profile_id = POA.profile_id FROM PAYOUT_ATTEMPT AS POA WHERE PO.payout_id = POA.payout_id; ALTER TABLE PAYOUTS ALTER COLUMN profile_id SET NOT NULL; ALTER TABLE PAYOUTS ADD COLUMN status "PayoutStatus"; UPDATE PA...
168
228
hyperswitch
migrations/2024-02-29-082737_update_payouts_for_analytics/down.sql
.sql
ALTER TABLE PAYOUTS DROP COLUMN status; ALTER TABLE PAYOUTS DROP COLUMN profile_id;
23
229
hyperswitch
migrations/2024-12-13-080558_entity-id-backfill-for-user-roles/up.sql
.sql
-- Your SQL goes here UPDATE user_roles SET entity_id = CASE WHEN role_id = 'org_admin' THEN org_id ELSE merchant_id END WHERE version = 'v1' AND entity_id IS NULL;
55
230
hyperswitch
migrations/2024-12-13-080558_entity-id-backfill-for-user-roles/down.sql
.sql
-- This file should undo anything in `up.sql` UPDATE user_roles SET entity_id = NULL WHERE version = 'v1';
26
231
hyperswitch
migrations/2024-05-24-093318_add_more_currencies/up.sql
.sql
ALTER TYPE "Currency" ADD VALUE IF NOT EXISTS 'AOA'; ALTER TYPE "Currency" ADD VALUE IF NOT EXISTS 'BAM'; ALTER TYPE "Currency" ADD VALUE IF NOT EXISTS 'BGN'; ALTER TYPE "Currency" ADD VALUE IF NOT EXISTS 'BYN'; ALTER TYPE "Currency" ADD VALUE IF NOT EXISTS 'CVE'; ALTER TYPE "Currency" ADD VALUE IF NOT EXISTS 'FKP'; AL...
347
232
hyperswitch
migrations/2024-05-24-093318_add_more_currencies/down.sql
.sql
SELECT 1;
4
233
hyperswitch
migrations/2023-08-25-094551_add_recon_status_in_merchant_account/up.sql
.sql
-- Your SQL goes here CREATE TYPE "ReconStatus" AS ENUM ('requested','active', 'disabled','not_requested'); ALTER TABLE merchant_account ADD recon_status "ReconStatus" NOT NULL DEFAULT "ReconStatus"('not_requested');
50
234
hyperswitch
migrations/2023-08-25-094551_add_recon_status_in_merchant_account/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE merchant_account DROP COLUMN recon_status; DROP TYPE "ReconStatus";
27
235
hyperswitch
migrations/2023-07-07-091223_create_captures_table/up.sql
.sql
CREATE TYPE "CaptureStatus" AS ENUM ( 'started', 'charged', 'pending', 'failed' ); ALTER TYPE "IntentStatus" ADD VALUE If NOT EXISTS 'partially_captured' AFTER 'requires_capture'; CREATE TABLE captures( capture_id VARCHAR(64) NOT NULL PRIMARY KEY, payment_id VARCHAR(64) NOT NULL, merchant_i...
267
236
hyperswitch
migrations/2023-07-07-091223_create_captures_table/down.sql
.sql
DROP INDEX captures_merchant_id_payment_id_authorized_attempt_id_index; DROP INDEX captures_connector_transaction_id_index; DROP TABLE captures; DROP TYPE "CaptureStatus"; DELETE FROM pg_enum WHERE enumlabel = 'partially_captured' AND enumtypid = ( SELECT oid FROM pg_type WHERE typname = 'IntentStatus' ); ALTER T...
80
237
hyperswitch
migrations/2024-05-28-054439_connector_wallets_details/up.sql
.sql
-- Your SQL goes here ALTER TABLE merchant_connector_account ADD COLUMN IF NOT EXISTS connector_wallets_details BYTEA DEFAULT NULL;
25
238
hyperswitch
migrations/2024-05-28-054439_connector_wallets_details/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE merchant_connector_account DROP COLUMN IF EXISTS connector_wallets_details;
25
239
hyperswitch
migrations/2024-04-03-090257_add_profile_id_in_authentication_table/up.sql
.sql
-- Your SQL goes here ALTER TABLE authentication ADD COLUMN profile_id VARCHAR(64) NOT NULL;
21
240
hyperswitch
migrations/2024-04-03-090257_add_profile_id_in_authentication_table/down.sql
.sql
ALTER TABLE authentication DROP COLUMN IF EXISTS profile_id;
10
241
hyperswitch
migrations/2024-12-28-121104_add_column_tenant_id_to_roles/up.sql
.sql
-- Your SQL goes here ALTER TABLE roles ADD COLUMN IF NOT EXISTS tenant_id VARCHAR(64) NOT NULL DEFAULT 'public';
27
242
hyperswitch
migrations/2024-12-28-121104_add_column_tenant_id_to_roles/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE roles DROP COLUMN IF EXISTS tenant_id;
21
243
hyperswitch
migrations/2024-02-21-101951_add_payment_method_billing_to_payment_attempt/up.sql
.sql
-- Your SQL goes here ALTER TABLE payment_attempt ADD COLUMN IF NOT EXISTS payment_method_billing_address_id VARCHAR(64);
26
244
hyperswitch
migrations/2024-02-21-101951_add_payment_method_billing_to_payment_attempt/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE payment_attempt DROP COLUMN IF EXISTS payment_method_billing_address_id;
25
245
hyperswitch
migrations/2022-12-12-132936_reverse_lookup/up.sql
.sql
CREATE TABLE reverse_lookup ( lookup_id VARCHAR(255) NOT NULL PRIMARY KEY, sk_id VARCHAR(50) NOT NULL, pk_id VARCHAR(255) NOT NULL, source VARCHAR(30) NOT NULL ); CREATE INDEX lookup_id_index ON reverse_lookup (lookup_id);
65
246
hyperswitch
migrations/2022-12-12-132936_reverse_lookup/down.sql
.sql
DROP TABLE IF EXISTS reverse_lookup;
7
247
hyperswitch
migrations/2024-09-25-113851_increase_connector_transaction_id_length_in_payment_and_refund/up.sql
.sql
ALTER TABLE payment_attempt ADD COLUMN IF NOT EXISTS connector_transaction_data VARCHAR(512); ALTER TABLE refund ADD COLUMN IF NOT EXISTS connector_refund_data VARCHAR(512); ALTER TABLE refund ADD COLUMN IF NOT EXISTS connector_transaction_data VARCHAR(512); ALTER TABLE captures ADD COLUMN IF NOT EXISTS connector_ca...
74
248
hyperswitch
migrations/2024-09-25-113851_increase_connector_transaction_id_length_in_payment_and_refund/down.sql
.sql
ALTER TABLE payment_attempt DROP COLUMN IF EXISTS connector_transaction_data; ALTER TABLE refund DROP COLUMN IF EXISTS connector_refund_data; ALTER TABLE refund DROP COLUMN IF EXISTS connector_transaction_data; ALTER TABLE captures DROP COLUMN IF EXISTS connector_capture_data;
50
249
hyperswitch
migrations/2023-11-23-100644_create_dashboard_metadata_table/up.sql
.sql
-- Your SQL goes here CREATE TABLE IF NOT EXISTS dashboard_metadata ( id SERIAL PRIMARY KEY, user_id VARCHAR(64), merchant_id VARCHAR(64) NOT NULL, org_id VARCHAR(64) NOT NULL, data_key VARCHAR(64) NOT NULL, data_value JSON NOT NULL, created_by VARCHAR(64) NOT NU...
148
250
hyperswitch
migrations/2023-11-23-100644_create_dashboard_metadata_table/down.sql
.sql
-- This file should undo anything in `up.sql` DROP INDEX IF EXISTS dashboard_metadata_index; DROP TABLE IF EXISTS dashboard_metadata;
26
251
hyperswitch
migrations/2024-04-04-080427_add_payment_id_in_authentication_table/up.sql
.sql
-- Your SQL goes here ALTER TABLE authentication ADD COLUMN payment_id VARCHAR(255);
19
252
hyperswitch
migrations/2024-04-04-080427_add_payment_id_in_authentication_table/down.sql
.sql
ALTER TABLE authentication DROP COLUMN IF EXISTS payment_id;
10
253
hyperswitch
migrations/2024-08-06-103905_drop_user_id_merchant_id_unique_in_user_roles/up.sql
.sql
-- Your SQL goes here ALTER TABLE user_roles DROP CONSTRAINT user_merchant_unique;
17
254
hyperswitch
migrations/2024-08-06-103905_drop_user_id_merchant_id_unique_in_user_roles/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE user_roles ADD CONSTRAINT user_merchant_unique UNIQUE (user_id, merchant_id);
29
255
hyperswitch
migrations/2022-10-20-100628_add_cancellation_reason/up.sql
.sql
ALTER TABLE payment_attempt ADD COLUMN cancellation_reason VARCHAR(255);
15
256
hyperswitch
migrations/2022-10-20-100628_add_cancellation_reason/down.sql
.sql
ALTER TABLE payment_attempt DROP COLUMN cancellation_reason;
10
257
hyperswitch
migrations/2023-04-20-162755_add_preprocessing_step_id_payment_attempt/up.sql
.sql
-- Your SQL goes here ALTER TABLE payment_attempt ADD COLUMN preprocessing_step_id VARCHAR DEFAULT NULL; CREATE INDEX preprocessing_step_id_index ON payment_attempt (preprocessing_step_id);
34
258
hyperswitch
migrations/2023-04-20-162755_add_preprocessing_step_id_payment_attempt/down.sql
.sql
-- This file should undo anything in `up.sql` DROP INDEX preprocessing_step_id_index; ALTER TABLE payment_attempt DROP COLUMN preprocessing_step_id;
28
259
hyperswitch
migrations/2025-02-19-072457_add_is_overall_delivery_successful_column_in_events_table/up.sql
.sql
ALTER TABLE events ADD COLUMN IF NOT EXISTS is_overall_delivery_successful BOOLEAN;
15
260
hyperswitch
migrations/2025-02-19-072457_add_is_overall_delivery_successful_column_in_events_table/down.sql
.sql
ALTER TABLE events DROP COLUMN IF EXISTS is_overall_delivery_successful;
13
261
hyperswitch
migrations/2024-06-04-095858_add_priority_to_payouts/up.sql
.sql
ALTER TABLE payouts ADD COLUMN IF NOT EXISTS priority VARCHAR(32);
14
262
hyperswitch
migrations/2024-06-04-095858_add_priority_to_payouts/down.sql
.sql
ALTER TABLE payouts DROP COLUMN IF EXISTS priority;
9
263
hyperswitch
migrations/2023-09-08-114828_add_payment_link_id_in_payment_intent/up.sql
.sql
-- Your SQL goes here ALTER TABLE payment_intent ADD column payment_link_id VARCHAR(255);
21
264
hyperswitch
migrations/2023-09-08-114828_add_payment_link_id_in_payment_intent/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE payment_intent DROP COLUMN payment_link_id;
21
265
hyperswitch
migrations/2023-02-21-094019_api_keys_remove_hash_key/up.sql
.sql
ALTER TABLE api_keys DROP COLUMN hash_key; /* Once we've dropped the `hash_key` column, we cannot use the existing API keys from the `api_keys` table anymore, as the `hash_key` is a random string that we no longer have. */ TRUNCATE TABLE api_keys; ALTER TABLE api_keys ADD CONSTRAINT api_keys_hashed_api_key_key UN...
83
266
hyperswitch
migrations/2023-02-21-094019_api_keys_remove_hash_key/down.sql
.sql
/* 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 D...
86
267
hyperswitch
migrations/2025-01-30-111507_add_organization_id_in_authentication/up.sql
.sql
-- Your SQL goes here ALTER TABLE authentication ADD COLUMN IF NOT EXISTS organization_id VARCHAR(32) NOT NULL DEFAULT 'default_org';
30
268
hyperswitch
migrations/2025-01-30-111507_add_organization_id_in_authentication/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE authentication DROP COLUMN IF EXISTS organization_id;
23
269
hyperswitch
migrations/2023-03-07-141638_make_payment_attempt_connector_json/up.sql
.sql
-- Alter column type to json -- as well as the connector. ALTER TABLE payment_attempt ALTER COLUMN connector TYPE JSONB USING jsonb_build_object( 'routed_through', connector, 'algorithm', NULL );
49
270
hyperswitch
migrations/2023-03-07-141638_make_payment_attempt_connector_json/down.sql
.sql
-- Alter column type to varchar(64) and extract and set the connector -- name field from the json. ALTER TABLE payment_attempt ALTER COLUMN connector TYPE VARCHAR(64) USING connector->>'routed_through';
47
271
hyperswitch
migrations/2024-10-17-073555_add-profile-id-to-roles/up.sql
.sql
-- Your SQL goes here ALTER TABLE roles ADD COLUMN IF NOT EXISTS profile_id VARCHAR(64);
21
272
hyperswitch
migrations/2024-10-17-073555_add-profile-id-to-roles/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE roles DROP COLUMN IF EXISTS profile_id;
21
273
hyperswitch
migrations/2024-06-11-133954_make-payout_type-optional-in-payouts/up.sql
.sql
-- Your SQL goes here ALTER TABLE payouts ALTER COLUMN payout_type DROP NOT NULL;
17
274
hyperswitch
migrations/2024-06-11-133954_make-payout_type-optional-in-payouts/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE payouts ALTER COLUMN payout_type SET NOT NULL;
22
275
hyperswitch
migrations/2023-05-29-094747_order-details-as-a-separate-column.sql/up.sql
.sql
ALTER TABLE payment_intent ADD COLUMN order_details jsonb[];
12
276
hyperswitch
migrations/2023-05-29-094747_order-details-as-a-separate-column.sql/down.sql
.sql
ALTER TABLE payment_intent DROP COLUMN order_details;
9
277
hyperswitch
migrations/2023-01-11-134448_add_metadata_to_merchant_account/up.sql
.sql
-- Your SQL goes here ALTER TABLE merchant_account ADD COLUMN metadata JSONB DEFAULT NULL;
18
278
hyperswitch
migrations/2023-01-11-134448_add_metadata_to_merchant_account/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE merchant_account DROP COLUMN metadata;
19
279
hyperswitch
migrations/2023-07-19-081050_add_zero_decimal_currencies/up.sql
.sql
-- Your SQL goes here ALTER TYPE "Currency" ADD VALUE IF NOT EXISTS 'BIF' AFTER 'BHD'; ALTER TYPE "Currency" ADD VALUE IF NOT EXISTS 'CLP' AFTER 'CHF'; ALTER TYPE "Currency" ADD VALUE IF NOT EXISTS 'DJF' AFTER 'CZK'; ALTER TYPE "Currency" ADD VALUE IF NOT EXISTS 'GNF' AFTER 'GMD'; ALTER TYPE "Currency" ADD VALUE IF NOT...
253
280
hyperswitch
migrations/2023-07-19-081050_add_zero_decimal_currencies/down.sql
.sql
SELECT 1;
4
281
hyperswitch
migrations/2023-11-24-112541_add_payment_config_business_profile/up.sql
.sql
-- Your SQL goes here ALTER TABLE business_profile ADD COLUMN IF NOT EXISTS payment_link_config JSONB DEFAULT NULL;
24
282
hyperswitch
migrations/2023-11-24-112541_add_payment_config_business_profile/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE business_profile DROP COLUMN IF EXISTS payment_link_config;
23
283
hyperswitch
migrations/2024-02-20-142032_add_locker_id_to_payment_methods/up.sql
.sql
-- Your SQL goes here ALTER TABLE payment_methods ADD COLUMN IF NOT EXISTS locker_id VARCHAR(64) DEFAULT NULL;
25
284
hyperswitch
migrations/2024-02-20-142032_add_locker_id_to_payment_methods/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE payment_methods DROP COLUMN IF EXISTS locker_id;
22
285
hyperswitch
migrations/2023-04-25-091017_merchant_account_add_frm_routing_algorithm.sql/up.sql
.sql
ALTER TABLE merchant_account ADD COLUMN frm_routing_algorithm JSONB NULL;
15
286
hyperswitch
migrations/2023-04-25-091017_merchant_account_add_frm_routing_algorithm.sql/down.sql
.sql
ALTER TABLE merchant_account DROP COLUMN frm_routing_algorithm;
11
287
hyperswitch
migrations/2024-08-01-172628_add_is_payment_processor_token_flow_in_payment_intent_table/up.sql
.sql
-- Your SQL goes here ALTER TABLE payment_intent ADD COLUMN IF NOT EXISTS is_payment_processor_token_flow BOOLEAN;
23
288
hyperswitch
migrations/2024-08-01-172628_add_is_payment_processor_token_flow_in_payment_intent_table/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE payment_intent DROP COLUMN IF EXISTS is_payment_processor_token_flow;
25
289
hyperswitch
migrations/2024-07-15-170210_change_primary_key_for_merchant_connector_account/up.sql
.sql
-- Your SQL goes here -- The below query will lock the merchant connector account table -- Running this query is not necessary on higher environments -- as the application will work fine without these queries being run -- This query should be run only after the new version of application is deployed ALTER TABLE merchan...
142
290
hyperswitch
migrations/2024-07-15-170210_change_primary_key_for_merchant_connector_account/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE merchant_connector_account DROP CONSTRAINT merchant_connector_account_pkey; ALTER TABLE merchant_connector_account ADD PRIMARY KEY (id);
36
291
hyperswitch
migrations/2024-05-07-092445_add_last_password_modified_at_column_to_users/up.sql
.sql
-- Your SQL goes here ALTER TABLE users ADD COLUMN IF NOT EXISTS last_password_modified_at TIMESTAMP;
20
292
hyperswitch
migrations/2024-05-07-092445_add_last_password_modified_at_column_to_users/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE users DROP COLUMN IF EXISTS last_password_modified_at;
23
293
hyperswitch
migrations/2022-12-21-071825_add_refund_reason/up.sql
.sql
ALTER TABLE REFUND ADD COLUMN refund_reason VARCHAR(255) DEFAULT NULL;
17
294
hyperswitch
migrations/2022-12-21-071825_add_refund_reason/down.sql
.sql
ALTER TABLE REFUND DROP COLUMN refund_reason;
10
295
hyperswitch
migrations/2023-10-05-085859_make_org_id_mandatory_in_ma/up.sql
.sql
-- Your SQL goes here UPDATE merchant_account SET organization_id = 'org_abcdefghijklmn' WHERE organization_id IS NULL; ALTER TABLE merchant_account ALTER COLUMN organization_id SET NOT NULL;
40
296
hyperswitch
migrations/2023-10-05-085859_make_org_id_mandatory_in_ma/down.sql
.sql
-- This file should undo anything in `up.sql` ALTER TABLE merchant_account ALTER COLUMN organization_id DROP NOT NULL;
24
297
hyperswitch
migrations/2024-05-19-144009_add_new_value_to_event_type/up.sql
.sql
-- Your SQL goes here ALTER TYPE "EventType" ADD VALUE IF NOT EXISTS 'payout_success'; ALTER TYPE "EventType" ADD VALUE IF NOT EXISTS 'payout_failed'; ALTER TYPE "EventType" ADD VALUE IF NOT EXISTS 'payout_processing'; ALTER TYPE "EventType" ADD VALUE IF NOT EXISTS 'payout_cancelled'; ALTER TYPE "EventType" ADD VALUE I...
146
298
hyperswitch
migrations/2024-05-19-144009_add_new_value_to_event_type/down.sql
.sql
SELECT 1;
4
299