fix unconfirmed_email

This commit is contained in:
alex 2020-02-05 17:31:13 +03:00
parent ec1caeced3
commit 10b9c36edb

View File

@ -15,9 +15,8 @@ class Command(BaseCommand):
with connections['legacy'].cursor() as cursor:
cursor.execute('''
select a.email, a.id as account_id, a.encrypted_password, a.locale, a.city,
a.confirmed_at as cfd,
case when a.confirmed_at is not null then true else false end as confirmed_at,
case when a.confirmed_at is null then true else false end as unconfirmed_email,
a.confirmed_at as cfd, a.unconfirmed_email,
case when a.confirmed_at is not null then true else false end as confirmed_at,
nickname
from accounts as a
where a.email is not null and a.nickname!='admin'