Skip to content

Commit

Permalink
fix: fill last_sign_in_at with a non-null value on backfilled email…
Browse files Browse the repository at this point in the history
… identities
  • Loading branch information
hf committed Dec 8, 2022
1 parent b54d60a commit 609662e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions migrations/20221208132122_backfill_email_last_sign_in_at.up.sql
@@ -0,0 +1,10 @@
-- previous backfill migration left last_sign_in_at to be null, which broke some projects

update {{ index .Options "Namespace" }}.identities
set last_sign_in_at = '2022-11-25'
where
last_sign_in_at is null and
created_at = '2022-11-25' and
updated_at = '2022-11-25' and
provider = 'email' and
id = user_id::text;

0 comments on commit 609662e

Please sign in to comment.