Skip to content

Commit

Permalink
Fix sql bug
Browse files Browse the repository at this point in the history
Signed-off-by: William <[email protected]>
  • Loading branch information
kwesidev committed Sep 21, 2023
1 parent 0a505d6 commit 32c66d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/migrations/000002_add_twofactor_options.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ALTER TABLE users ADD COLUMN totp_url VARCHAR ;
UPDATE users SET totp_url = '';
ALTER TABLE users ADD COLUMN totp_created TIMESTAMP ;
-- Update previous records send type to email since there was no other option except email
ALTER TABLE two_factor_requests ADD COLUMN send_type enum_send_type NOT NULL;
ALTER TABLE two_factor_requests ADD COLUMN send_type enum_send_type ;
UPDATE two_factor_requests SET send_type = 'EMAIL';

ALTER TABLE two_factor_requests ALTER COLUMN send_type SET NOT NULL;
COMMIT;

0 comments on commit 32c66d6

Please sign in to comment.