update migration script
This commit is contained in:
parent
1e7dc551c2
commit
fee03921bf
1 changed files with 10 additions and 7 deletions
|
|
@ -51,7 +51,10 @@ SELECT distinct on (phone_l) fid::int,
|
||||||
flag_debt5000,
|
flag_debt5000,
|
||||||
calculated_at,
|
calculated_at,
|
||||||
'2025-01-01'
|
'2025-01-01'
|
||||||
FROM signals_phone_fid_map where fid is not null
|
FROM signals_phone_fid_map spfm
|
||||||
|
join signals_user_packages sup on spfm.package_id = sup.id
|
||||||
|
where spfm.fid is not null
|
||||||
|
and sup.status = 'ON_MONITORING'
|
||||||
order by phone_l, calculated_at desc;
|
order by phone_l, calculated_at desc;
|
||||||
|
|
||||||
insert into app_version values ('2.0')
|
insert into app_version values ('2.0')
|
||||||
Loading…
Add table
Reference in a new issue