update migration script

This commit is contained in:
etreschenkov 2026-01-28 13:12:34 +03:00
parent 1e7dc551c2
commit fee03921bf

View file

@ -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')