fix unconfirmed_email
This commit is contained in:
parent
ec1caeced3
commit
10b9c36edb
|
|
@ -15,9 +15,8 @@ class Command(BaseCommand):
|
||||||
with connections['legacy'].cursor() as cursor:
|
with connections['legacy'].cursor() as cursor:
|
||||||
cursor.execute('''
|
cursor.execute('''
|
||||||
select a.email, a.id as account_id, a.encrypted_password, a.locale, a.city,
|
select a.email, a.id as account_id, a.encrypted_password, a.locale, a.city,
|
||||||
a.confirmed_at as cfd,
|
a.confirmed_at as cfd, a.unconfirmed_email,
|
||||||
case when a.confirmed_at is not null then true else false end as confirmed_at,
|
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,
|
|
||||||
nickname
|
nickname
|
||||||
from accounts as a
|
from accounts as a
|
||||||
where a.email is not null and a.nickname!='admin'
|
where a.email is not null and a.nickname!='admin'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user