diff --git a/bin/migrate-oats-data/inquiry/sql/parcels/inquiry_parcel_insert.sql b/bin/migrate-oats-data/inquiry/sql/parcels/inquiry_parcel_insert.sql index aca17c7dc8..683f240d5e 100644 --- a/bin/migrate-oats-data/inquiry/sql/parcels/inquiry_parcel_insert.sql +++ b/bin/migrate-oats-data/inquiry/sql/parcels/inquiry_parcel_insert.sql @@ -3,7 +3,6 @@ WITH parcels_to_insert AS ( osp.subject_property_id FROM alcs.inquiry i JOIN oats.oats_subject_properties osp ON osp.issue_id = i.file_number::bigint - WHERE osp.alr_application_land_ind = 'Y' -- ensure that only parcels related to application/issue are selected ) SELECT uuid AS inquiry_uuid, op.civic_address, diff --git a/bin/migrate-oats-data/inquiry/sql/parcels/inquiry_parcel_insert_count.sql b/bin/migrate-oats-data/inquiry/sql/parcels/inquiry_parcel_insert_count.sql index ac64a7679c..a66f45bb43 100644 --- a/bin/migrate-oats-data/inquiry/sql/parcels/inquiry_parcel_insert_count.sql +++ b/bin/migrate-oats-data/inquiry/sql/parcels/inquiry_parcel_insert_count.sql @@ -3,7 +3,6 @@ WITH parcels_to_insert AS ( osp.subject_property_id FROM alcs.inquiry i JOIN oats.oats_subject_properties osp ON osp.issue_id = i.file_number::bigint - WHERE osp.alr_application_land_ind = 'Y' -- ensure that only parcels related to application/issue are selected ) SELECT COUNT(*) FROM parcels_to_insert pti