๐Ÿ“ฆ juspay / hyperswitch

๐Ÿ“„ up.sql ยท 29 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29-- This file contains queries to re-create the `id` column as a `VARCHAR` column instead of `SERIAL` column for tables that already have it.
-- It must be ensured that the deployed version of the application does not include the `id` column in any of its queries.
-- Drop the id column as this will be used later as the primary key with a different type

------------------------ Customers -----------------------


ALTER TABLE customers
ADD COLUMN IF NOT EXISTS id VARCHAR(64);

------------------------ Payment Intent -----------------------


ALTER TABLE payment_intent
ADD COLUMN IF NOT EXISTS id VARCHAR(64);

------------------------ Payment Attempt -----------------------


ALTER TABLE payment_attempt
ADD COLUMN IF NOT EXISTS id VARCHAR(64);

------------------------ Payment Methods -----------------------


ALTER TABLE payment_methods 
ADD COLUMN IF NOT EXISTS id VARCHAR(64);