Codewise
Courses
My learning
Ideas
Leaderboard
YouTube
Courses
My learning
Ideas
Leaderboard
YouTube
Sign in
db/wallet/migrations/000002_wallets.down.sql · Payments Backend: Go Microservices | Codewise
Payments Backend: Go Microservices
payments
/
db
/
wallet
/
migrations
/
000002_wallets.down.sql
main
000002_wallets.down.sql
11 lines, 319 B
Raw
1
BEGIN
;
2
3
CREATE
INDEX
entries_account_id_idx
ON
entries (account_id);
4
DROP
INDEX
entries_account_id_id_idx;
5
6
-- Dropping the column drops its check constraint and indexes with it. The
7
-- settlement accounts stay: their entries still refer to them.
8
ALTER
TABLE
accounts
DROP
COLUMN kind;
9
DROP
TYPE
account_kind;
10
11
COMMIT
;