Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 257ac6a

Browse files
committed
Add migration to drop unused colums
- the details are stored in the application json field
1 parent 6a143af commit 257ac6a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
DO $$
2+
BEGIN
3+
BEGIN
4+
ALTER TABLE cd_dojoleads DROP online_sessions;
5+
EXCEPTION
6+
WHEN others THEN RAISE NOTICE 'Unhandled error: % %', SQLERRM, SQLSTATE;
7+
END;
8+
BEGIN
9+
ALTER TABLE cd_dojoleads DROP safeguarding_sponsor_name;
10+
EXCEPTION
11+
WHEN others THEN RAISE NOTICE 'Unhandled error: % %', SQLERRM, SQLSTATE;
12+
END;
13+
BEGIN
14+
ALTER TABLE cd_dojoleads DROP safeguarding_sponsor_email;
15+
EXCEPTION
16+
WHEN others THEN RAISE NOTICE 'Unhandled error: % %', SQLERRM, SQLSTATE;
17+
END;
18+
END;
19+
$$

0 commit comments

Comments
 (0)