From 687dd3d9ffa54e61c514a9c5b301952cca42e371 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Mon, 10 Nov 2025 22:42:51 +0800 Subject: [PATCH 01/81] Do not use cached store_map second time --- adscrawler/app_stores/process_from_s3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adscrawler/app_stores/process_from_s3.py b/adscrawler/app_stores/process_from_s3.py index 0e4e42bc..66a41e0d 100644 --- a/adscrawler/app_stores/process_from_s3.py +++ b/adscrawler/app_stores/process_from_s3.py @@ -730,7 +730,7 @@ def import_keywords_from_s3( crawl_source="keywords", store=store, ) - store_id_map = query_store_id_map_cached(database_connection, store) + store_id_map = query_store_id_map(database_connection, store) df["store_app"] = df["store_id"].map( store_id_map.set_index("store_id")["id"].to_dict() ) From dc94704b32f610adc365b595863660fd88112631 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Mon, 10 Nov 2025 23:23:18 +0800 Subject: [PATCH 02/81] Fix delete and insert for keywords, needed an extra dimension --- adscrawler/app_stores/process_from_s3.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/adscrawler/app_stores/process_from_s3.py b/adscrawler/app_stores/process_from_s3.py index 66a41e0d..9eacf429 100644 --- a/adscrawler/app_stores/process_from_s3.py +++ b/adscrawler/app_stores/process_from_s3.py @@ -734,15 +734,20 @@ def import_keywords_from_s3( df["store_app"] = df["store_id"].map( store_id_map.set_index("store_id")["id"].to_dict() ) + df["store"] = store + logger.info( + f"Keywords from S3 insert {snapshot_date} {store=} {df.shape[0]} rows" + ) delete_and_insert( df=df, table_name="app_keyword_ranks_daily", schema="frontend", database_connection=database_connection, - delete_by_keys=["crawled_date"], + delete_by_keys=["crawled_date", "store"], insert_columns=[ "country", "keyword_id", + "store", "crawled_date", "store_app", "app_rank", From 7ac310b77a79107709500dce0c0262bdcb81c63f Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Mon, 10 Nov 2025 23:29:10 +0800 Subject: [PATCH 03/81] Dump schema changes for keywords --- pg-ddl/schema/adtech/api_call_urls.sql | 4 +- pg-ddl/schema/adtech/categories.sql | 4 +- ...combined_store_apps_companies__matview.sql | 4 +- ...d_store_apps_parent_companies__matview.sql | 4 +- pg-ddl/schema/adtech/companies.sql | 4 +- .../adtech/company_categories__matview.sql | 4 +- pg-ddl/schema/adtech/company_developers.sql | 4 +- .../schema/adtech/company_domain_mapping.sql | 4 +- .../adtech/company_sdk_strings__matview.sql | 4 +- pg-ddl/schema/adtech/sdk_categories.sql | 4 +- pg-ddl/schema/adtech/sdk_packages.sql | 4 +- pg-ddl/schema/adtech/sdk_paths.sql | 4 +- pg-ddl/schema/adtech/sdks.sql | 4 +- .../adtech/store_app_sdk_strings__matview.sql | 4 +- pg-ddl/schema/adtech/url_redirect_chains.sql | 4 +- pg-ddl/schema/adtech/urls.sql | 4 +- .../adstxt_ad_domain_overview__matview.sql | 4 +- .../adstxt_entries_store_apps__matview.sql | 4 +- .../adstxt_publishers_overview__matview.sql | 4 +- .../advertiser_creative_rankings__matview.sql | 4 +- ...reative_rankings_recent_month__matview.sql | 4 +- .../advertiser_creatives__matview.sql | 4 +- .../frontend/api_call_countries__matview.sql | 4 +- .../app_keyword_rank_stats__matview.sql | 76 ++++ .../frontend/app_keyword_ranks_daily.sql | 50 ++- .../frontend/apps_new_monthly__matview.sql | 4 +- .../frontend/apps_new_weekly__matview.sql | 4 +- .../frontend/apps_new_yearly__matview.sql | 4 +- .../frontend/category_tag_stats__matview.sql | 4 +- .../companies_apps_overview__matview.sql | 4 +- .../companies_category_stats__matview.sql | 4 +- .../companies_category_tag_stats__matview.sql | 4 +- ...anies_category_tag_type_stats__matview.sql | 4 +- .../companies_creative_rankings__matview.sql | 4 +- ...mpanies_creative_rankings_new__matview.sql | 4 +- ...companies_open_source_percent__matview.sql | 4 +- ...mpanies_parent_category_stats__matview.sql | 4 +- ...ies_parent_category_tag_stats__matview.sql | 4 +- .../companies_sdks_overview__matview.sql | 4 +- .../company_domain_country__matview.sql | 4 +- .../company_domains_top_apps__matview.sql | 4 +- .../company_parent_top_apps__matview.sql | 4 +- .../frontend/company_top_apps__matview.sql | 4 +- .../frontend/keyword_scores__matview.sql | 133 ++++-- .../latest_sdk_scanned_apps__matview.sql | 4 +- .../store_app_api_companies__matview.sql | 4 +- .../store_app_ranks_best_monthly__matview.sql | 4 +- .../schema/frontend/store_app_ranks_daily.sql | 4 +- .../store_app_ranks_latest__matview.sql | 4 +- .../frontend/store_app_ranks_weekly.sql | 4 +- .../frontend/store_apps_overview__matview.sql | 4 +- .../frontend/store_apps_z_scores__matview.sql | 4 +- .../total_categories_app_counts__matview.sql | 4 +- pg-ddl/schema/full_db_dump.sql | 390 +++++++++--------- pg-ddl/schema/logging/app_country_crawls.sql | 4 +- .../schema/logging/creative_scan_results.sql | 4 +- .../schema/logging/developers_crawled_at.sql | 4 +- pg-ddl/schema/logging/keywords_crawled_at.sql | 4 +- .../schema/logging/snapshot_pub_domains.sql | 4 +- pg-ddl/schema/logging/store_app_downloads.sql | 4 +- .../schema/logging/store_app_no_creatives.sql | 4 +- pg-ddl/schema/logging/store_app_sources.sql | 4 +- .../logging/store_app_waydroid_crawled_at.sql | 4 +- pg-ddl/schema/logging/store_apps_audit.sql | 4 +- pg-ddl/schema/logging/store_apps_snapshot.sql | 4 +- .../logging/version_code_api_scan_results.sql | 4 +- .../public/ad_network_sdk_keys__matview.sql | 4 +- pg-ddl/schema/public/adstxt_crawl_results.sql | 4 +- pg-ddl/schema/public/api_calls.sql | 4 +- pg-ddl/schema/public/app_ads_entrys.sql | 4 +- pg-ddl/schema/public/app_ads_map.sql | 4 +- .../public/app_country_metrics_history.sql | 4 +- .../app_country_metrics_latest__matview.sql | 4 +- .../public/app_global_metrics_history.sql | 4 +- .../app_global_metrics_latest__matview.sql | 4 +- ...p_global_metrics_weekly_diffs__matview.sql | 4 +- pg-ddl/schema/public/app_keyword_rankings.sql | 125 ------ .../schema/public/app_keywords_extracted.sql | 76 ++++ pg-ddl/schema/public/app_urls_map.sql | 4 +- pg-ddl/schema/public/audit_dates__matview.sql | 4 +- .../public/category_mapping__matview.sql | 4 +- pg-ddl/schema/public/countries.sql | 4 +- pg-ddl/schema/public/crawl_results.sql | 4 +- .../public/crawl_scenario_country_config.sql | 4 +- pg-ddl/schema/public/crawl_scenarios.sql | 4 +- pg-ddl/schema/public/creative_assets.sql | 4 +- pg-ddl/schema/public/creative_records.sql | 4 +- pg-ddl/schema/public/description_keywords.sql | 106 ----- .../public/developer_store_apps__matview.sql | 4 +- pg-ddl/schema/public/developers.sql | 4 +- pg-ddl/schema/public/domains.sql | 4 +- pg-ddl/schema/public/ip_geo_snapshots.sql | 4 +- pg-ddl/schema/public/keywords.sql | 4 +- pg-ddl/schema/public/keywords_base.sql | 4 +- pg-ddl/schema/public/languages.sql | 4 +- .../public/mv_app_categories__matview.sql | 4 +- .../public/pg_stat_statements__view.sql | 4 +- .../public/pg_stat_statements_info__view.sql | 4 +- pg-ddl/schema/public/platforms.sql | 4 +- .../public/store_app_z_scores__matview.sql | 4 +- .../public/store_app_z_scores_history.sql | 4 +- pg-ddl/schema/public/store_apps.sql | 4 +- .../public/store_apps_created_at__matview.sql | 4 +- .../schema/public/store_apps_descriptions.sql | 4 +- ...store_apps_in_latest_rankings__matview.sql | 4 +- .../public/store_apps_updated_at__matview.sql | 4 +- pg-ddl/schema/public/store_categories.sql | 4 +- pg-ddl/schema/public/store_collections.sql | 4 +- pg-ddl/schema/public/stores.sql | 4 +- .../public/total_count_overview__matview.sql | 4 +- pg-ddl/schema/public/user_requested_scan.sql | 4 +- .../public/version_code_api_scan_results.sql | 4 +- .../public/version_code_sdk_scan_results.sql | 4 +- pg-ddl/schema/public/version_codes.sql | 4 +- pg-ddl/schema/public/version_details_map.sql | 4 +- pg-ddl/schema/public/version_manifests.sql | 4 +- pg-ddl/schema/public/version_strings.sql | 4 +- 117 files changed, 718 insertions(+), 678 deletions(-) create mode 100644 pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql delete mode 100644 pg-ddl/schema/public/app_keyword_rankings.sql create mode 100644 pg-ddl/schema/public/app_keywords_extracted.sql delete mode 100644 pg-ddl/schema/public/description_keywords.sql diff --git a/pg-ddl/schema/adtech/api_call_urls.sql b/pg-ddl/schema/adtech/api_call_urls.sql index c1a3a3a9..5b58aa6d 100644 --- a/pg-ddl/schema/adtech/api_call_urls.sql +++ b/pg-ddl/schema/adtech/api_call_urls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict uDFPP2pGlK6g2BYPkexYEKvBiWTQxAMYd9wM60ogd2lzh813f5pU0AWPqGKdLg9 +\restrict 38G0NJG9vIHNAzq9375uXHvSOJfLoHpkPfKstrVrOrnB8DlboTy2aN1EW9hXDQo -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -118,5 +118,5 @@ ALTER TABLE ONLY adtech.api_call_urls -- PostgreSQL database dump complete -- -\unrestrict uDFPP2pGlK6g2BYPkexYEKvBiWTQxAMYd9wM60ogd2lzh813f5pU0AWPqGKdLg9 +\unrestrict 38G0NJG9vIHNAzq9375uXHvSOJfLoHpkPfKstrVrOrnB8DlboTy2aN1EW9hXDQo diff --git a/pg-ddl/schema/adtech/categories.sql b/pg-ddl/schema/adtech/categories.sql index fedbd78d..97399ff4 100644 --- a/pg-ddl/schema/adtech/categories.sql +++ b/pg-ddl/schema/adtech/categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict b4iLQRR3nKhpUKMKN3S9qg9izzTZVpkU9AkcXh3vLdnCnrIbkKAb8rvAgBOcp6m +\restrict Llt9sYmeB1tkE9iwofOv1kiJvhYruy5swBHK423dLUOnbKOkd8x7y4jkNYt1j4Y -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -62,5 +62,5 @@ ALTER TABLE ONLY adtech.categories -- PostgreSQL database dump complete -- -\unrestrict b4iLQRR3nKhpUKMKN3S9qg9izzTZVpkU9AkcXh3vLdnCnrIbkKAb8rvAgBOcp6m +\unrestrict Llt9sYmeB1tkE9iwofOv1kiJvhYruy5swBHK423dLUOnbKOkd8x7y4jkNYt1j4Y diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql index b0ec0ef7..045d2db0 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict F8pep8itUfBIYOcumKIEWaUxsCpSKT9PjUK4tAjJwdp967PvzjLay6R11LA3hXh +\restrict 7OwreGWBbxzEvpXwZVWgLv96FzYLF633vsqF4yHBXEgqdTeunc33Qw8WSvfJgPy -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -164,5 +164,5 @@ CREATE UNIQUE INDEX combined_store_app_companies_idx ON adtech.combined_store_ap -- PostgreSQL database dump complete -- -\unrestrict F8pep8itUfBIYOcumKIEWaUxsCpSKT9PjUK4tAjJwdp967PvzjLay6R11LA3hXh +\unrestrict 7OwreGWBbxzEvpXwZVWgLv96FzYLF633vsqF4yHBXEgqdTeunc33Qw8WSvfJgPy diff --git a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql index 8fd02ad3..c7b25f8f 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 2pWfPSYGHwzSYpdkKPcukNJuTP7lOg4oVv65giH6MGHk1SCqzE4l4NorXuEGtbA +\restrict NXVesePXIGPl0eIn5vBNJaikemldyKOJZ6cE3gsuLh7jx8l1GUAUcSctGnpAu06 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -59,5 +59,5 @@ CREATE UNIQUE INDEX idx_combined_store_apps_parent_companies_idx ON adtech.combi -- PostgreSQL database dump complete -- -\unrestrict 2pWfPSYGHwzSYpdkKPcukNJuTP7lOg4oVv65giH6MGHk1SCqzE4l4NorXuEGtbA +\unrestrict NXVesePXIGPl0eIn5vBNJaikemldyKOJZ6cE3gsuLh7jx8l1GUAUcSctGnpAu06 diff --git a/pg-ddl/schema/adtech/companies.sql b/pg-ddl/schema/adtech/companies.sql index 14487de2..56316dba 100644 --- a/pg-ddl/schema/adtech/companies.sql +++ b/pg-ddl/schema/adtech/companies.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Qf670jVSJ8EZ1VqE1PyX5IRRtZ2x07skAiUc80RuhST4NlW4avkJaJ8FeFNdczU +\restrict r3BXDRIDdu0942Ig9rpQgkobJSwV0U3apg8QcAeaMOEShI23tI9c2xTaZIc0jmp -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -98,5 +98,5 @@ ALTER TABLE ONLY adtech.companies -- PostgreSQL database dump complete -- -\unrestrict Qf670jVSJ8EZ1VqE1PyX5IRRtZ2x07skAiUc80RuhST4NlW4avkJaJ8FeFNdczU +\unrestrict r3BXDRIDdu0942Ig9rpQgkobJSwV0U3apg8QcAeaMOEShI23tI9c2xTaZIc0jmp diff --git a/pg-ddl/schema/adtech/company_categories__matview.sql b/pg-ddl/schema/adtech/company_categories__matview.sql index 157f2ba2..38e49800 100644 --- a/pg-ddl/schema/adtech/company_categories__matview.sql +++ b/pg-ddl/schema/adtech/company_categories__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict VznbPr77kK1ZXcUyEOfFvotAKrRdtQQwXN97esdw4rzToFT0wtfAcoFGsOxhi6i +\restrict MzO1AItAYShVzYxJ5pLJmeAJkreJ5HL8dtQ2Qxsv9TcknrARatfitvkGjfyOme0 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -42,5 +42,5 @@ ALTER MATERIALIZED VIEW adtech.company_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict VznbPr77kK1ZXcUyEOfFvotAKrRdtQQwXN97esdw4rzToFT0wtfAcoFGsOxhi6i +\unrestrict MzO1AItAYShVzYxJ5pLJmeAJkreJ5HL8dtQ2Qxsv9TcknrARatfitvkGjfyOme0 diff --git a/pg-ddl/schema/adtech/company_developers.sql b/pg-ddl/schema/adtech/company_developers.sql index 2d8aaa93..6f9ba918 100644 --- a/pg-ddl/schema/adtech/company_developers.sql +++ b/pg-ddl/schema/adtech/company_developers.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict LL1e8kNzajKbIW4d5bp5pLMDARGMeTeSF8LqWTylB8m8XxQ7B6SsV7Zk60pEtj0 +\restrict 6cMddTqmnhBsQ62bU5cRba25SoGoa0ASV3LArUV3BrykA9D0YzkGId1U7P7Sh6a -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.company_developers -- PostgreSQL database dump complete -- -\unrestrict LL1e8kNzajKbIW4d5bp5pLMDARGMeTeSF8LqWTylB8m8XxQ7B6SsV7Zk60pEtj0 +\unrestrict 6cMddTqmnhBsQ62bU5cRba25SoGoa0ASV3LArUV3BrykA9D0YzkGId1U7P7Sh6a diff --git a/pg-ddl/schema/adtech/company_domain_mapping.sql b/pg-ddl/schema/adtech/company_domain_mapping.sql index 0bb3d551..d6879b23 100644 --- a/pg-ddl/schema/adtech/company_domain_mapping.sql +++ b/pg-ddl/schema/adtech/company_domain_mapping.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict eMu2gva4x2Ohnos0ZYV29GM7KleMpHMX8HaVJ1jywCUXRqNh5twgR8UgfvdI6HY +\restrict VY55BYeOqyhaCduQPaqs8IV7mVDYacxuTC0zv5wiRSXSmhrC5Ejb12U9OpNADlr -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.company_domain_mapping -- PostgreSQL database dump complete -- -\unrestrict eMu2gva4x2Ohnos0ZYV29GM7KleMpHMX8HaVJ1jywCUXRqNh5twgR8UgfvdI6HY +\unrestrict VY55BYeOqyhaCduQPaqs8IV7mVDYacxuTC0zv5wiRSXSmhrC5Ejb12U9OpNADlr diff --git a/pg-ddl/schema/adtech/company_sdk_strings__matview.sql b/pg-ddl/schema/adtech/company_sdk_strings__matview.sql index e02cc4cb..8795be82 100644 --- a/pg-ddl/schema/adtech/company_sdk_strings__matview.sql +++ b/pg-ddl/schema/adtech/company_sdk_strings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict E09Dk3OoeJInNfSOA1f9kQUdUkC8qA9g1W4fNbUtwe59R35WEeLQ3TEyAzKFG3H +\restrict cht6nERLBNFXIxvqrGlUtTqRwtjaKM9BWiEiAcu7J2oXgMj5caQ1XzCEcJTa6OQ -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -66,5 +66,5 @@ CREATE UNIQUE INDEX company_sdk_strings_version_string_id_company_id_idx ON adte -- PostgreSQL database dump complete -- -\unrestrict E09Dk3OoeJInNfSOA1f9kQUdUkC8qA9g1W4fNbUtwe59R35WEeLQ3TEyAzKFG3H +\unrestrict cht6nERLBNFXIxvqrGlUtTqRwtjaKM9BWiEiAcu7J2oXgMj5caQ1XzCEcJTa6OQ diff --git a/pg-ddl/schema/adtech/sdk_categories.sql b/pg-ddl/schema/adtech/sdk_categories.sql index bcb7ae92..a00af8b6 100644 --- a/pg-ddl/schema/adtech/sdk_categories.sql +++ b/pg-ddl/schema/adtech/sdk_categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict H8iBedwajOoL4vbCaoLqRWpbzCcmamBUVlcLBnOemu4CBDIq4MgqJf2oMw6vi0Y +\restrict fmD5vyFakEavtkvAtSm2Fz3dq6KlWtaMpeU46Wjghn9W2r8cGe6chSRNZ7QgHaP -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.sdk_categories -- PostgreSQL database dump complete -- -\unrestrict H8iBedwajOoL4vbCaoLqRWpbzCcmamBUVlcLBnOemu4CBDIq4MgqJf2oMw6vi0Y +\unrestrict fmD5vyFakEavtkvAtSm2Fz3dq6KlWtaMpeU46Wjghn9W2r8cGe6chSRNZ7QgHaP diff --git a/pg-ddl/schema/adtech/sdk_packages.sql b/pg-ddl/schema/adtech/sdk_packages.sql index dc6e07e5..b93f2061 100644 --- a/pg-ddl/schema/adtech/sdk_packages.sql +++ b/pg-ddl/schema/adtech/sdk_packages.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1ZSSRKQMYQ2QlEITzdE6HLvxOJCOkaZnaseJMIin8G6qhPdlER5DbM8S5obfcXp +\restrict PhdBHpmIufPsEI4MCXIHvRNZZDmNxreN3a38bP5ToIVnsD8DjbM5CFkUhy2VVXz -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -99,5 +99,5 @@ ALTER TABLE ONLY adtech.sdk_packages -- PostgreSQL database dump complete -- -\unrestrict 1ZSSRKQMYQ2QlEITzdE6HLvxOJCOkaZnaseJMIin8G6qhPdlER5DbM8S5obfcXp +\unrestrict PhdBHpmIufPsEI4MCXIHvRNZZDmNxreN3a38bP5ToIVnsD8DjbM5CFkUhy2VVXz diff --git a/pg-ddl/schema/adtech/sdk_paths.sql b/pg-ddl/schema/adtech/sdk_paths.sql index 110698d0..430606d1 100644 --- a/pg-ddl/schema/adtech/sdk_paths.sql +++ b/pg-ddl/schema/adtech/sdk_paths.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict f6og5qMazywBdB4c14z6ZO2vkxrJJsxxHg3IJ9RbIiEKZR8DvIesWNI7cE3b9LJ +\restrict GgW7bkQHGR0ZGEInAKOCOlmvYRUWyG8bjLk4wHddqtJRKsC5MGOyO5gNPI2qsHh -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdk_paths -- PostgreSQL database dump complete -- -\unrestrict f6og5qMazywBdB4c14z6ZO2vkxrJJsxxHg3IJ9RbIiEKZR8DvIesWNI7cE3b9LJ +\unrestrict GgW7bkQHGR0ZGEInAKOCOlmvYRUWyG8bjLk4wHddqtJRKsC5MGOyO5gNPI2qsHh diff --git a/pg-ddl/schema/adtech/sdks.sql b/pg-ddl/schema/adtech/sdks.sql index 3b71e364..b7b4a6d7 100644 --- a/pg-ddl/schema/adtech/sdks.sql +++ b/pg-ddl/schema/adtech/sdks.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1Wy4VJZ2m4bnnSnPeJVYIIl5JPWGso9ThcdQU8PZaikkz6VbkTgkLOkkDUN8KeO +\restrict xvpC9Ggm06xVBBmhDBPTX2ZUH1T4rP9CzhxfPZJP1aPm4vmQfTfPbkd9NOItuE3 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdks -- PostgreSQL database dump complete -- -\unrestrict 1Wy4VJZ2m4bnnSnPeJVYIIl5JPWGso9ThcdQU8PZaikkz6VbkTgkLOkkDUN8KeO +\unrestrict xvpC9Ggm06xVBBmhDBPTX2ZUH1T4rP9CzhxfPZJP1aPm4vmQfTfPbkd9NOItuE3 diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql index 9107ca61..9c24367c 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict m4dBlgO9HICEjRXgAYnqViOhBfdhbrYspF2FHY4lGzRurPgIhtIVlBPYIkrwrGj +\restrict aYc2GTjxLUrbzUYzrpCvlzv64BmfXVbBxKSv5RTlksajeJaVU4v0F5igZeqRvna -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -61,5 +61,5 @@ CREATE UNIQUE INDEX store_app_sdk_strings_idx ON adtech.store_app_sdk_strings US -- PostgreSQL database dump complete -- -\unrestrict m4dBlgO9HICEjRXgAYnqViOhBfdhbrYspF2FHY4lGzRurPgIhtIVlBPYIkrwrGj +\unrestrict aYc2GTjxLUrbzUYzrpCvlzv64BmfXVbBxKSv5RTlksajeJaVU4v0F5igZeqRvna diff --git a/pg-ddl/schema/adtech/url_redirect_chains.sql b/pg-ddl/schema/adtech/url_redirect_chains.sql index 2ef9babb..94018f48 100644 --- a/pg-ddl/schema/adtech/url_redirect_chains.sql +++ b/pg-ddl/schema/adtech/url_redirect_chains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Xy8fNrmNyu6kLCkMfeRe9AH0T96jffY3y47pybAfLozPMQ3RvV8A3dYVWxDwO9I +\restrict TsJ6r4abbscPYaYqNldS9XdJfW3BZDCm7AI4lJgXNiCJoWp5pOD39HBMqfAOWPK -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -122,5 +122,5 @@ ALTER TABLE ONLY adtech.url_redirect_chains -- PostgreSQL database dump complete -- -\unrestrict Xy8fNrmNyu6kLCkMfeRe9AH0T96jffY3y47pybAfLozPMQ3RvV8A3dYVWxDwO9I +\unrestrict TsJ6r4abbscPYaYqNldS9XdJfW3BZDCm7AI4lJgXNiCJoWp5pOD39HBMqfAOWPK diff --git a/pg-ddl/schema/adtech/urls.sql b/pg-ddl/schema/adtech/urls.sql index d10826df..a75d6296 100644 --- a/pg-ddl/schema/adtech/urls.sql +++ b/pg-ddl/schema/adtech/urls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Y2z0az3xp4sPDBTaNmZbrPFkAP2y89c3oIsiUw7IcRSglYzWIGI7gAenSayy1aS +\restrict qgfVXyetkc14xrTahsb4z7mBd1KoMcegOJGzM7Bhl61K2lcTrroPH9wc0hhFAtF -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -111,5 +111,5 @@ ALTER TABLE ONLY adtech.urls -- PostgreSQL database dump complete -- -\unrestrict Y2z0az3xp4sPDBTaNmZbrPFkAP2y89c3oIsiUw7IcRSglYzWIGI7gAenSayy1aS +\unrestrict qgfVXyetkc14xrTahsb4z7mBd1KoMcegOJGzM7Bhl61K2lcTrroPH9wc0hhFAtF diff --git a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql index 4200e671..152fb369 100644 --- a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 4O7ELwYJwiFPPxoKD5w85HBy5zCKlbDhbRQQtktq0igxLBAlCi9VdJ8MrhrjAC0 +\restrict HwagwFRwm9G970NNu9gbnVXivZG98TYyGoNw1k85dcA2Q0FApjnTlmHGYpczwEe -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX adstxt_ad_domain_overview_unique_idx ON frontend.adstxt_ad_d -- PostgreSQL database dump complete -- -\unrestrict 4O7ELwYJwiFPPxoKD5w85HBy5zCKlbDhbRQQtktq0igxLBAlCi9VdJ8MrhrjAC0 +\unrestrict HwagwFRwm9G970NNu9gbnVXivZG98TYyGoNw1k85dcA2Q0FApjnTlmHGYpczwEe diff --git a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql index 35147fe2..cc068ca7 100644 --- a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ZbcdXlmbpbXmzYrW9UTVZNJwsI7PVaqhcoUNhYXcTxEFZkt1zb1S7Zse8mLM71U +\restrict yd264uxmobtXeQYh2l5OjwHIYy3UAHnNrSjgy0ct7fLDu84dMSaljSQW6pM3UAP -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -81,5 +81,5 @@ CREATE UNIQUE INDEX adstxt_entries_store_apps_unique_idx ON frontend.adstxt_entr -- PostgreSQL database dump complete -- -\unrestrict ZbcdXlmbpbXmzYrW9UTVZNJwsI7PVaqhcoUNhYXcTxEFZkt1zb1S7Zse8mLM71U +\unrestrict yd264uxmobtXeQYh2l5OjwHIYy3UAHnNrSjgy0ct7fLDu84dMSaljSQW6pM3UAP diff --git a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql index 2639074d..a7487666 100644 --- a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict jkIjarrQh9petuCRFvLwmbgewRzgaH9yz7qH5pqNYBI9bRepkhQzD4Lfjg0HsFO +\restrict EyAIG933vwqTl43CKUad5AqrhmTkIgI9tHJZVoAcyTXRh8RnJfJy6wsxbcyjxIy -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -74,5 +74,5 @@ CREATE UNIQUE INDEX adstxt_publishers_overview_ad_domain_unique_idx ON frontend. -- PostgreSQL database dump complete -- -\unrestrict jkIjarrQh9petuCRFvLwmbgewRzgaH9yz7qH5pqNYBI9bRepkhQzD4Lfjg0HsFO +\unrestrict EyAIG933vwqTl43CKUad5AqrhmTkIgI9tHJZVoAcyTXRh8RnJfJy6wsxbcyjxIy diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql index 4f07795f..eefcfa66 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict oImMmxaGqRM9o0BiFDhkKpy8XzZq75AvtyhIJ0Cn1apBUmwIjYAFuj6vGxz9JVe +\restrict jcJhldx3HcSg85kntUNxlRN1gIOZGQJTRPn2LuAnYuxFWvuSq1bjCfwf6xgz7IY -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -107,5 +107,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict oImMmxaGqRM9o0BiFDhkKpy8XzZq75AvtyhIJ0Cn1apBUmwIjYAFuj6vGxz9JVe +\unrestrict jcJhldx3HcSg85kntUNxlRN1gIOZGQJTRPn2LuAnYuxFWvuSq1bjCfwf6xgz7IY diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql index c2be95c0..12aeb01c 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict cuHRms1GxJ3abBK192Q489msTIVlKljtbvuUhBodhrS8VdvMJIOD2ctPL4tAqh0 +\restrict ykcr8uEgLkcMj7f04cAtCqoLz1mGoP4QDxjRuwiMG2fVqFxluzaWdN1TBUCurZA -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -114,5 +114,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings_recent_month OWNER -- PostgreSQL database dump complete -- -\unrestrict cuHRms1GxJ3abBK192Q489msTIVlKljtbvuUhBodhrS8VdvMJIOD2ctPL4tAqh0 +\unrestrict ykcr8uEgLkcMj7f04cAtCqoLz1mGoP4QDxjRuwiMG2fVqFxluzaWdN1TBUCurZA diff --git a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql index c600d05f..9d1c7a60 100644 --- a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict PpD8JCM7dLhNgUZDhTBgVWuTv2VKPEair2rrg7xtqnnNWeM1J9EuE5zvuPNQ9VU +\restrict mxahKZBThRIO2EYH5JLAer4d51pE9k7xwrDggcWdfeiJKtY18yefivCZqm3mbZU -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict PpD8JCM7dLhNgUZDhTBgVWuTv2VKPEair2rrg7xtqnnNWeM1J9EuE5zvuPNQ9VU +\unrestrict mxahKZBThRIO2EYH5JLAer4d51pE9k7xwrDggcWdfeiJKtY18yefivCZqm3mbZU diff --git a/pg-ddl/schema/frontend/api_call_countries__matview.sql b/pg-ddl/schema/frontend/api_call_countries__matview.sql index 3a2f5299..02efa819 100644 --- a/pg-ddl/schema/frontend/api_call_countries__matview.sql +++ b/pg-ddl/schema/frontend/api_call_countries__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict aFLd6gUYDYpTqQc9iosIiKqp9fgIGZdL5C6xNQoIMolsLJLdVgbw63aUxQhAHrQ +\restrict r1eIIv1QJhgIZPkkoehlLF5yCgeinoVsOXbWeOMhgdSCsVihmYh6ZNPb6c7UCmD -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -87,5 +87,5 @@ CREATE UNIQUE INDEX api_call_countries_unique ON frontend.api_call_countries USI -- PostgreSQL database dump complete -- -\unrestrict aFLd6gUYDYpTqQc9iosIiKqp9fgIGZdL5C6xNQoIMolsLJLdVgbw63aUxQhAHrQ +\unrestrict r1eIIv1QJhgIZPkkoehlLF5yCgeinoVsOXbWeOMhgdSCsVihmYh6ZNPb6c7UCmD diff --git a/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql new file mode 100644 index 00000000..a887eaf1 --- /dev/null +++ b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql @@ -0,0 +1,76 @@ +-- +-- PostgreSQL database dump +-- + +\restrict 6rLTR1kGUj6du2O0u7Ds4W2Pr6wfmfhSlRxFywwVB55VAyfEhnFoPipMZLlf25L + +-- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: app_keyword_rank_stats; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres +-- + +CREATE MATERIALIZED VIEW frontend.app_keyword_rank_stats AS + WITH latest_per_country AS ( + SELECT app_keyword_ranks_daily.country, + max(app_keyword_ranks_daily.crawled_date) AS max_crawled_date + FROM frontend.app_keyword_ranks_daily + GROUP BY app_keyword_ranks_daily.country + ), d30_keywords AS ( + SELECT akr.country, + akr.store_app, + akr.keyword_id, + min(akr.app_rank) AS d30_best_rank + FROM frontend.app_keyword_ranks_daily akr + WHERE (akr.crawled_date >= (CURRENT_DATE - '30 days'::interval)) + GROUP BY akr.country, akr.store_app, akr.keyword_id + ), latest_ranks AS ( + SELECT kr.country, + kr.store_app, + kr.keyword_id, + kr.app_rank AS latest_app_rank + FROM (frontend.app_keyword_ranks_daily kr + JOIN latest_per_country lpc ON (((kr.country = lpc.country) AND (kr.crawled_date = lpc.max_crawled_date)))) + ), all_ranked_keywords AS ( + SELECT rk.country, + rk.store_app, + rk.keyword_id, + rk.d30_best_rank, + lk.latest_app_rank + FROM (d30_keywords rk + LEFT JOIN latest_ranks lk ON (((lk.country = rk.country) AND (lk.store_app = rk.store_app) AND (lk.keyword_id = rk.keyword_id)))) + ) + SELECT country, + store_app, + keyword_id, + d30_best_rank, + latest_app_rank + FROM all_ranked_keywords + WITH NO DATA; + + +ALTER MATERIALIZED VIEW frontend.app_keyword_rank_stats OWNER TO postgres; + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict 6rLTR1kGUj6du2O0u7Ds4W2Pr6wfmfhSlRxFywwVB55VAyfEhnFoPipMZLlf25L + diff --git a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql index 77d709f6..e2b684a7 100644 --- a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql +++ b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ZOGd1Icm0aDKNJxSwQxA7vAwjYaHMlrg1ye5PXWD4knlQf42hLOZyQgKNDEFTdy +\restrict IL1Pjl1aNEmwraVYKnXd9MMaPS3DmGjJaVv2tXcFAh5pBA7c09870htBJYSkufN -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -29,10 +29,11 @@ SET default_table_access_method = heap; CREATE TABLE frontend.app_keyword_ranks_daily ( crawled_date date NOT NULL, + store smallint NOT NULL, country smallint NOT NULL, - app_rank smallint NOT NULL, keyword_id integer NOT NULL, - store_app integer NOT NULL + store_app integer NOT NULL, + app_rank smallint NOT NULL ); @@ -43,7 +44,7 @@ ALTER TABLE frontend.app_keyword_ranks_daily OWNER TO postgres; -- ALTER TABLE ONLY frontend.app_keyword_ranks_daily - ADD CONSTRAINT app_keyword_rankings_unique_test UNIQUE (crawled_date, country, keyword_id, app_rank); + ADD CONSTRAINT app_keyword_rankings_unique_test UNIQUE (crawled_date, store, country, keyword_id, app_rank); -- @@ -60,9 +61,48 @@ CREATE INDEX app_keyword_ranks_daily_app_lookup ON frontend.app_keyword_ranks_da CREATE INDEX app_keyword_ranks_daily_date ON frontend.app_keyword_ranks_daily USING btree (crawled_date); +-- +-- Name: app_keywords_delete_and_insert_on; Type: INDEX; Schema: frontend; Owner: postgres +-- + +CREATE INDEX app_keywords_delete_and_insert_on ON frontend.app_keyword_ranks_daily USING btree (crawled_date, store); + + +-- +-- Name: app_keyword_ranks_daily country_kr_fk; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres +-- + +ALTER TABLE ONLY frontend.app_keyword_ranks_daily + ADD CONSTRAINT country_kr_fk FOREIGN KEY (country) REFERENCES public.countries(id); + + +-- +-- Name: app_keyword_ranks_daily keyword_kr_fk; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres +-- + +ALTER TABLE ONLY frontend.app_keyword_ranks_daily + ADD CONSTRAINT keyword_kr_fk FOREIGN KEY (keyword_id) REFERENCES public.keywords(id); + + +-- +-- Name: app_keyword_ranks_daily store_app_kr_fk; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres +-- + +ALTER TABLE ONLY frontend.app_keyword_ranks_daily + ADD CONSTRAINT store_app_kr_fk FOREIGN KEY (store_app) REFERENCES public.store_apps(id); + + +-- +-- Name: app_keyword_ranks_daily store_kr_fk; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres +-- + +ALTER TABLE ONLY frontend.app_keyword_ranks_daily + ADD CONSTRAINT store_kr_fk FOREIGN KEY (store) REFERENCES public.stores(id); + + -- -- PostgreSQL database dump complete -- -\unrestrict ZOGd1Icm0aDKNJxSwQxA7vAwjYaHMlrg1ye5PXWD4knlQf42hLOZyQgKNDEFTdy +\unrestrict IL1Pjl1aNEmwraVYKnXd9MMaPS3DmGjJaVv2tXcFAh5pBA7c09870htBJYSkufN diff --git a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql index b6ed01a9..f71c7dd9 100644 --- a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict tbCdjCylwLafDiFcIUwYMlYs7aS2KF6sijqF3iOw5S5Z3FJDQJpNfXbCg2PcpIP +\restrict 1CEfzbnpluN7MaExGFn5moWmGAl83YrTmeYennxQ7DQUCKcLbMeNvT5LFj4ry3B -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -116,5 +116,5 @@ CREATE UNIQUE INDEX idx_apps_new_monthly ON frontend.apps_new_monthly USING btre -- PostgreSQL database dump complete -- -\unrestrict tbCdjCylwLafDiFcIUwYMlYs7aS2KF6sijqF3iOw5S5Z3FJDQJpNfXbCg2PcpIP +\unrestrict 1CEfzbnpluN7MaExGFn5moWmGAl83YrTmeYennxQ7DQUCKcLbMeNvT5LFj4ry3B diff --git a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql index f82e4f41..e3b1e4f2 100644 --- a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict nH2bJrFcq5CbH6U8vDpRmzCLcTUMlyoUdxQNAfBkTnlmFZI1i5KnBgactkrOTzp +\restrict ri8agGwbXOdUukN0pQW6Pb9EodJhuAwsQEC1AhBBhE0VBDFhfwmoyKia8z7WuWD -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -123,5 +123,5 @@ CREATE UNIQUE INDEX idx_apps_new_weekly_f ON frontend.apps_new_weekly USING btre -- PostgreSQL database dump complete -- -\unrestrict nH2bJrFcq5CbH6U8vDpRmzCLcTUMlyoUdxQNAfBkTnlmFZI1i5KnBgactkrOTzp +\unrestrict ri8agGwbXOdUukN0pQW6Pb9EodJhuAwsQEC1AhBBhE0VBDFhfwmoyKia8z7WuWD diff --git a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql index fc7d8b9a..e22aed14 100644 --- a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 13RXLUNgzUcQJWIkUyFvr7r8zfCV5hQiLOSUqWSkmFCUM2IF6qrR62g0TRDVkuU +\restrict UKXxbH66FTpCeNEUgrJoOJdQYCdKUWgTmjUSS9oJQJcDwAHeEnvkToxgPhLlKcX -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -116,5 +116,5 @@ CREATE UNIQUE INDEX idx_apps_new_yearly ON frontend.apps_new_yearly USING btree -- PostgreSQL database dump complete -- -\unrestrict 13RXLUNgzUcQJWIkUyFvr7r8zfCV5hQiLOSUqWSkmFCUM2IF6qrR62g0TRDVkuU +\unrestrict UKXxbH66FTpCeNEUgrJoOJdQYCdKUWgTmjUSS9oJQJcDwAHeEnvkToxgPhLlKcX diff --git a/pg-ddl/schema/frontend/category_tag_stats__matview.sql b/pg-ddl/schema/frontend/category_tag_stats__matview.sql index cde8203d..e2cc8983 100644 --- a/pg-ddl/schema/frontend/category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict W3ZBBkZsIYC80fbuxDqkNUZSde9YoGFprPNiQ54I831I9v3ARXErGMYFOncwSJT +\restrict uGILP63aDoh1adICjxLZLTISI50GXFpZLARpKQwdxz2hjDpi412gJ4Rw6nemdr2 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -74,5 +74,5 @@ CREATE UNIQUE INDEX idx_category_tag_stats ON frontend.category_tag_stats USING -- PostgreSQL database dump complete -- -\unrestrict W3ZBBkZsIYC80fbuxDqkNUZSde9YoGFprPNiQ54I831I9v3ARXErGMYFOncwSJT +\unrestrict uGILP63aDoh1adICjxLZLTISI50GXFpZLARpKQwdxz2hjDpi412gJ4Rw6nemdr2 diff --git a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql index 064f4df2..9fad3501 100644 --- a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict McWZsRSE6lmNsTrHOiO50dy5deqDGkyHVnhvb3uID5bdwTeWjdmia7yfTydUJi2 +\restrict dzg8Oh5Beseueawp5V1pKJULXDsnf0FcDbwZijMB9xXHZ1e7pD4oA5GCAWEmSH3 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -68,5 +68,5 @@ CREATE UNIQUE INDEX companies_apps_overview_unique_idx ON frontend.companies_app -- PostgreSQL database dump complete -- -\unrestrict McWZsRSE6lmNsTrHOiO50dy5deqDGkyHVnhvb3uID5bdwTeWjdmia7yfTydUJi2 +\unrestrict dzg8Oh5Beseueawp5V1pKJULXDsnf0FcDbwZijMB9xXHZ1e7pD4oA5GCAWEmSH3 diff --git a/pg-ddl/schema/frontend/companies_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_stats__matview.sql index be452cfe..5812b160 100644 --- a/pg-ddl/schema/frontend/companies_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Pyr6OgdmoiC2HfEDC7R5RJW75JLxc3bNnH28YtMlfK0gt3RTAW7U9nbhoT9elH1 +\restrict NLN1cdWNefww8IcoSZBTTWq72kY1KhhrczdOjjaieSg5UXuU4aDwwzOQ9Xdtn4t -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -82,5 +82,5 @@ CREATE INDEX companies_category_stats_query_idx ON frontend.companies_category_s -- PostgreSQL database dump complete -- -\unrestrict Pyr6OgdmoiC2HfEDC7R5RJW75JLxc3bNnH28YtMlfK0gt3RTAW7U9nbhoT9elH1 +\unrestrict NLN1cdWNefww8IcoSZBTTWq72kY1KhhrczdOjjaieSg5UXuU4aDwwzOQ9Xdtn4t diff --git a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql index 54017c39..f20c8a8d 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 9Ot6J3fpm1qvlgOkMcxu1UbBcubcBIqCgkNMb3c1E0yghC6fMdoiahARJApdtYy +\restrict FdmzAXrxbBguT4LUXPDONKmzINnebobfctid4ZxtaxD85mf0iYLwtSVhcMoqaa1 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -86,5 +86,5 @@ CREATE UNIQUE INDEX companies_category_tag_stats_idx ON frontend.companies_categ -- PostgreSQL database dump complete -- -\unrestrict 9Ot6J3fpm1qvlgOkMcxu1UbBcubcBIqCgkNMb3c1E0yghC6fMdoiahARJApdtYy +\unrestrict FdmzAXrxbBguT4LUXPDONKmzINnebobfctid4ZxtaxD85mf0iYLwtSVhcMoqaa1 diff --git a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql index d650d06e..aa4bc7b7 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 3L2ildO0psUAFfSVnAbwC2QssZ7mgrHiLXIHOzJ3H6pi6M6uMKGs7hmTAOZrnwf +\restrict dRtUUeSXzHktDqrptdhfMmGvxlYUYDtOryXog1EQO1tLSg6tb67zvl732I8uvCE -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -86,5 +86,5 @@ CREATE INDEX companies_category_tag_type_stats_query_idx ON frontend.companies_c -- PostgreSQL database dump complete -- -\unrestrict 3L2ildO0psUAFfSVnAbwC2QssZ7mgrHiLXIHOzJ3H6pi6M6uMKGs7hmTAOZrnwf +\unrestrict dRtUUeSXzHktDqrptdhfMmGvxlYUYDtOryXog1EQO1tLSg6tb67zvl732I8uvCE diff --git a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql index 4556d854..7110f636 100644 --- a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fV33aRRMVQ2e3nf0MUChb5XLNT3keXw6qdL0w7Cnv5CPb7XAghKm9HAf8zoay6M +\restrict zrEPmlJkuE9ChT6kYgoG44KmG3moFScNEybvCxCbZvZVPDMUcKwCAZlU11IMueE -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -123,5 +123,5 @@ ALTER MATERIALIZED VIEW frontend.companies_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict fV33aRRMVQ2e3nf0MUChb5XLNT3keXw6qdL0w7Cnv5CPb7XAghKm9HAf8zoay6M +\unrestrict zrEPmlJkuE9ChT6kYgoG44KmG3moFScNEybvCxCbZvZVPDMUcKwCAZlU11IMueE diff --git a/pg-ddl/schema/frontend/companies_creative_rankings_new__matview.sql b/pg-ddl/schema/frontend/companies_creative_rankings_new__matview.sql index 6d7eaaf8..de1ad595 100644 --- a/pg-ddl/schema/frontend/companies_creative_rankings_new__matview.sql +++ b/pg-ddl/schema/frontend/companies_creative_rankings_new__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 7OzX9gsuerdxQi2LeLbrIbyNjAwRtLWmhJfpsZUsAthCNzVZTkLz2IkS8aAvNfs +\restrict j55r8Pc7urycUBbK9c9JdvNeMYJ6ccvIK9VIYC4VUGm6ChCL16eFt0buXIbJfvw -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -123,5 +123,5 @@ ALTER MATERIALIZED VIEW frontend.companies_creative_rankings_new OWNER TO postgr -- PostgreSQL database dump complete -- -\unrestrict 7OzX9gsuerdxQi2LeLbrIbyNjAwRtLWmhJfpsZUsAthCNzVZTkLz2IkS8aAvNfs +\unrestrict j55r8Pc7urycUBbK9c9JdvNeMYJ6ccvIK9VIYC4VUGm6ChCL16eFt0buXIbJfvw diff --git a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql index df8b0712..e73345b7 100644 --- a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql +++ b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict vTFrtQvxdLOmgfM4EUrTfUkD8XHbXjmRvattvC3KqEEWCDj8hqBAVF7C3yONzd8 +\restrict ORNBhPIWdfvIDObFDuSEQuW33ixvIjsG9jr1LZZvyJSqs0rdo7VWjuhiJlwroVT -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -54,5 +54,5 @@ CREATE UNIQUE INDEX companies_open_source_percent_unique ON frontend.companies_o -- PostgreSQL database dump complete -- -\unrestrict vTFrtQvxdLOmgfM4EUrTfUkD8XHbXjmRvattvC3KqEEWCDj8hqBAVF7C3yONzd8 +\unrestrict ORNBhPIWdfvIDObFDuSEQuW33ixvIjsG9jr1LZZvyJSqs0rdo7VWjuhiJlwroVT diff --git a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql index 30b5221f..bb4e45c9 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ftjQSrHjeyHq4ywlUun67CTceiztXdpytfiikfLGhf2q5NXA8XLNdf16nqiZMM3 +\restrict TvXQVVXZiOdcNZlk1BhNegXXAwTakIHOke0ucCLWx23SAL775R3tzybqmkqc5Ha -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -87,5 +87,5 @@ CREATE INDEX companies_parent_category_stats_query_idx ON frontend.companies_par -- PostgreSQL database dump complete -- -\unrestrict ftjQSrHjeyHq4ywlUun67CTceiztXdpytfiikfLGhf2q5NXA8XLNdf16nqiZMM3 +\unrestrict TvXQVVXZiOdcNZlk1BhNegXXAwTakIHOke0ucCLWx23SAL775R3tzybqmkqc5Ha diff --git a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql index ea99cc2b..cb4c7367 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict mtqaIZJL2aEl0hNEC0uRsHlqnZPCpIzmDSXU2Mi4jXGgnFRRRSucUUn1H9LVpQ5 +\restrict mJdcKOJNABjwBMxN6WkUOZETq05paskRLj4EcBr8QvRbR8s97alaN7fjG5jOwrk -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -90,5 +90,5 @@ CREATE INDEX companies_parent_category_tag_stats_query_idx ON frontend.companies -- PostgreSQL database dump complete -- -\unrestrict mtqaIZJL2aEl0hNEC0uRsHlqnZPCpIzmDSXU2Mi4jXGgnFRRRSucUUn1H9LVpQ5 +\unrestrict mJdcKOJNABjwBMxN6WkUOZETq05paskRLj4EcBr8QvRbR8s97alaN7fjG5jOwrk diff --git a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql index 6f4e09a2..94f8d6c2 100644 --- a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict CFXhAY3XeCC3u2R44m6gyqKWvjWZqqLPXSX9p3JKWlAxkD9qyD5b5xJuJ3fp5zV +\restrict cHMhC96OKJI7p0dKaubji24WMOUzdovvNka635fouHtJeNdaEEeqGQAplnsXGfE -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX companies_sdks_overview_unique_idx ON frontend.companies_sdk -- PostgreSQL database dump complete -- -\unrestrict CFXhAY3XeCC3u2R44m6gyqKWvjWZqqLPXSX9p3JKWlAxkD9qyD5b5xJuJ3fp5zV +\unrestrict cHMhC96OKJI7p0dKaubji24WMOUzdovvNka635fouHtJeNdaEEeqGQAplnsXGfE diff --git a/pg-ddl/schema/frontend/company_domain_country__matview.sql b/pg-ddl/schema/frontend/company_domain_country__matview.sql index 3f5b60bb..fe7e50cb 100644 --- a/pg-ddl/schema/frontend/company_domain_country__matview.sql +++ b/pg-ddl/schema/frontend/company_domain_country__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict RI4SdshAECYDoXMzrPWidZHjCnkgwC21ejvKsWVh6EYiiGeAV7laGhKkPE7Eb9r +\restrict re3CIe32JbajnUpMJvnqrgh1JzegMxP9bNb4WEh0V9RRbJeagIWQCPm3J3ijv6u -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -74,5 +74,5 @@ ALTER MATERIALIZED VIEW frontend.company_domain_country OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict RI4SdshAECYDoXMzrPWidZHjCnkgwC21ejvKsWVh6EYiiGeAV7laGhKkPE7Eb9r +\unrestrict re3CIe32JbajnUpMJvnqrgh1JzegMxP9bNb4WEh0V9RRbJeagIWQCPm3J3ijv6u diff --git a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql index 86f9d9bf..a1d09607 100644 --- a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 56mPSRUQOfwRx13jqVE4XDcleuRPqcTOSycTI8b59jmObveFPEbG8jPN2fxQThQ +\restrict ZIHa09rzhfl3bb95NsPXkA5hwkbmbYLqbb9LjqbqH1QCknVM8dJcq6CSLUXQh47 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -115,5 +115,5 @@ CREATE UNIQUE INDEX idx_unique_company_domains_top_apps ON frontend.company_doma -- PostgreSQL database dump complete -- -\unrestrict 56mPSRUQOfwRx13jqVE4XDcleuRPqcTOSycTI8b59jmObveFPEbG8jPN2fxQThQ +\unrestrict ZIHa09rzhfl3bb95NsPXkA5hwkbmbYLqbb9LjqbqH1QCknVM8dJcq6CSLUXQh47 diff --git a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql index feaffba5..01daf559 100644 --- a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict M2xu9zd1KOuKxgxFwW7rzqc4C8Ux2TGYQxrgTfKebN9bKjY0xMW6gyN3JIovDW0 +\restrict 6Awlohn2wWf5LJfJlQbvdwAfzeTtFWVQjQY7JMCP9POjIGclusbRlvfGqEiT0gR -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -105,5 +105,5 @@ CREATE UNIQUE INDEX idx_company_parent_top_apps_unique ON frontend.company_paren -- PostgreSQL database dump complete -- -\unrestrict M2xu9zd1KOuKxgxFwW7rzqc4C8Ux2TGYQxrgTfKebN9bKjY0xMW6gyN3JIovDW0 +\unrestrict 6Awlohn2wWf5LJfJlQbvdwAfzeTtFWVQjQY7JMCP9POjIGclusbRlvfGqEiT0gR diff --git a/pg-ddl/schema/frontend/company_top_apps__matview.sql b/pg-ddl/schema/frontend/company_top_apps__matview.sql index a5613ff1..5fd16cb7 100644 --- a/pg-ddl/schema/frontend/company_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ByySsc1rPZtK7fUzU3T41XNSBEAeFw9CturzegTTznuhQxXJlCc7bFsLGdRfatZ +\restrict b4FJEig232oD76dYpf2CoOjnHudfeYXj3TjMXA3QDATTeH87HKv2UeDJoPYb6Zm -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -112,5 +112,5 @@ CREATE UNIQUE INDEX idx_unique_company_top_apps ON frontend.company_top_apps USI -- PostgreSQL database dump complete -- -\unrestrict ByySsc1rPZtK7fUzU3T41XNSBEAeFw9CturzegTTznuhQxXJlCc7bFsLGdRfatZ +\unrestrict b4FJEig232oD76dYpf2CoOjnHudfeYXj3TjMXA3QDATTeH87HKv2UeDJoPYb6Zm diff --git a/pg-ddl/schema/frontend/keyword_scores__matview.sql b/pg-ddl/schema/frontend/keyword_scores__matview.sql index e8cfdf4e..3e4d2a0d 100644 --- a/pg-ddl/schema/frontend/keyword_scores__matview.sql +++ b/pg-ddl/schema/frontend/keyword_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict gBlVtjxh0AbxdzOemU0qCabGc4aWATtwvtsKsJuUU1o1BcKVFMSdyGly2CmKv7I +\restrict Y0JJIFw521sNVOCa8Iz8rVnOmLkH9ujeefWBNQZuu2DFzcqOnZ17o7Dv7qSRgfU -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -28,55 +28,114 @@ SET default_table_access_method = heap; -- CREATE MATERIALIZED VIEW frontend.keyword_scores AS - WITH latest_en_descriptions AS ( - SELECT DISTINCT ON (sad.store_app) sad.store_app, - sad.id AS description_id - FROM (public.store_apps_descriptions sad - JOIN public.description_keywords dk ON ((sad.id = dk.description_id))) - WHERE (sad.language_id = 1) - ORDER BY sad.store_app, sad.updated_at DESC - ), keyword_app_counts AS ( + WITH keyword_app_counts AS ( SELECT sa.store, k.keyword_text, - dk.keyword_id, - count(DISTINCT led.store_app) AS app_count - FROM (((latest_en_descriptions led - LEFT JOIN public.description_keywords dk ON ((led.description_id = dk.description_id))) - LEFT JOIN public.keywords k ON ((dk.keyword_id = k.id))) - LEFT JOIN public.store_apps sa ON ((led.store_app = sa.id))) - WHERE (dk.keyword_id IS NOT NULL) - GROUP BY sa.store, k.keyword_text, dk.keyword_id + ake.keyword_id, + count(DISTINCT ake.store_app) AS app_count, + array_length(string_to_array((k.keyword_text)::text, ' '::text), 1) AS word_count + FROM ((public.app_keywords_extracted ake + LEFT JOIN public.keywords k ON ((ake.keyword_id = k.id))) + LEFT JOIN public.store_apps sa ON ((ake.store_app = sa.id))) + GROUP BY sa.store, k.keyword_text, ake.keyword_id ), total_app_count AS ( SELECT sa.store, - count(*) AS total_apps - FROM (latest_en_descriptions led - LEFT JOIN public.store_apps sa ON ((led.store_app = sa.id))) + count(DISTINCT ake.store_app) AS total_apps + FROM (public.app_keywords_extracted ake + LEFT JOIN public.store_apps sa ON ((ake.store_app = sa.id))) GROUP BY sa.store + ), keyword_competitors AS ( + SELECT ake.keyword_id, + sa.store, + avg(COALESCE(NULLIF(agml.installs, 0), (agml.rating_count * 25))) AS avg_installs, + max(COALESCE(NULLIF(agml.installs, 0), (agml.rating_count * 25))) AS max_installs, + percentile_cont((0.5)::double precision) WITHIN GROUP (ORDER BY ((COALESCE(NULLIF(agml.installs, 0), (agml.rating_count * 25)))::double precision)) AS median_installs, + avg(agml.rating) AS avg_rating, + count(*) FILTER (WHERE (COALESCE(NULLIF(agml.installs, 0), (agml.rating_count * 25)) > 1000000)) AS apps_over_1m_installs, + count(*) FILTER (WHERE ((sa.name)::text ~~* (('%'::text || (k.keyword_text)::text) || '%'::text))) AS title_matches + FROM (((public.app_keywords_extracted ake + LEFT JOIN public.store_apps sa ON ((ake.store_app = sa.id))) + LEFT JOIN public.app_global_metrics_latest agml ON ((sa.id = agml.store_app))) + LEFT JOIN public.keywords k ON ((ake.keyword_id = k.id))) + GROUP BY ake.keyword_id, sa.store, k.keyword_text + ), keyword_metrics AS ( + SELECT kac.store, + kac.keyword_text, + kac.keyword_id, + kac.app_count, + round(kc.avg_installs, 0) AS avg_installs, + tac.total_apps, + round(((100.0 * (kac.app_count)::numeric) / (NULLIF(tac.total_apps, 0))::numeric), 2) AS market_penetration_pct, + round(((100)::numeric * (((1)::double precision - (ln(((tac.total_apps)::double precision / ((kac.app_count + 1))::double precision)) / ln((tac.total_apps)::double precision))))::numeric), 2) AS competitiveness_score, + kac.word_count, + CASE + WHEN (kac.word_count = 1) THEN 'short_tail'::text + WHEN (kac.word_count = 2) THEN 'medium_tail'::text + ELSE 'long_tail'::text + END AS keyword_type, + length((kac.keyword_text)::text) AS char_length, + (COALESCE(kc.avg_installs, (0)::numeric))::bigint AS avg_competitor_installs, + COALESCE(kc.max_installs, (0)::bigint) AS top_competitor_installs, + (COALESCE(kc.median_installs, (0)::double precision))::bigint AS median_competitor_installs, + COALESCE(kc.avg_rating, (0)::double precision) AS avg_competitor_rating, + COALESCE(kc.apps_over_1m_installs, (0)::bigint) AS major_competitors, + COALESCE(kc.title_matches, (0)::bigint) AS title_matches, + round(((100.0 * (COALESCE(kc.title_matches, (0)::bigint))::numeric) / (NULLIF(kac.app_count, 0))::numeric), 2) AS title_relevance_pct + FROM ((keyword_app_counts kac + LEFT JOIN total_app_count tac ON ((kac.store = tac.store))) + LEFT JOIN keyword_competitors kc ON (((kac.keyword_id = kc.keyword_id) AND (kac.store = kc.store)))) ) - SELECT kac.store, - kac.keyword_text, - kac.keyword_id, - kac.app_count, - tac.total_apps, - round(((100)::numeric * (((1)::double precision - (ln(((tac.total_apps)::double precision / ((kac.app_count + 1))::double precision)) / ln((tac.total_apps)::double precision))))::numeric), 2) AS competitiveness_score - FROM (keyword_app_counts kac - LEFT JOIN total_app_count tac ON ((kac.store = tac.store))) - ORDER BY (round(((100)::numeric * (((1)::double precision - (ln(((tac.total_apps)::double precision / ((kac.app_count + 1))::double precision)) / ln((tac.total_apps)::double precision))))::numeric), 2)) DESC + SELECT store, + keyword_text, + keyword_id, + app_count, + avg_installs, + total_apps, + market_penetration_pct, + competitiveness_score, + word_count, + keyword_type, + char_length, + avg_competitor_installs, + top_competitor_installs, + median_competitor_installs, + avg_competitor_rating, + major_competitors, + title_matches, + title_relevance_pct, + round(LEAST((100)::numeric, ((((app_count)::numeric * 10.0) * ((100)::numeric - competitiveness_score)) / 100.0)), 2) AS volume_competition_score, + round(LEAST((100)::numeric, ((competitiveness_score * 0.6) + (LEAST((100)::numeric, ((COALESCE(avg_competitor_installs, (0)::bigint))::numeric / 100000.0)) * 0.4))), 2) AS keyword_difficulty, + round( + CASE + WHEN (app_count < 10) THEN (0)::double precision + WHEN ((major_competitors)::numeric > ((app_count)::numeric * 0.25)) THEN (20)::double precision + ELSE ((LEAST((40)::double precision, (log(((app_count + 1))::double precision) * (10)::double precision)) + ((((100)::numeric - competitiveness_score) * 0.4))::double precision) + ( + CASE + WHEN (COALESCE(median_competitor_installs, (0)::bigint) < 100000) THEN 20 + WHEN (COALESCE(median_competitor_installs, (0)::bigint) < 1000000) THEN 15 + WHEN (COALESCE(median_competitor_installs, (0)::bigint) < 10000000) THEN 10 + ELSE 5 + END)::double precision) + END) AS opportunity_score, + CASE + WHEN (app_count > 0) THEN round(((((app_count)::numeric * 1000.0) * (1.0 / ((1)::numeric + (competitiveness_score / 50.0)))) * + CASE + WHEN (word_count = 1) THEN 2.0 + WHEN (word_count = 2) THEN 1.0 + ELSE 0.5 + END), 0) + ELSE (0)::numeric + END AS estimated_monthly_searches, + round(((100)::numeric - LEAST((100)::numeric, ((((major_competitors)::numeric * 10.0) + ((COALESCE(median_competitor_installs, (0)::bigint))::numeric / 100000.0)) + (competitiveness_score * 0.3)))), 2) AS ranking_feasibility + FROM keyword_metrics km WITH NO DATA; ALTER MATERIALIZED VIEW frontend.keyword_scores OWNER TO postgres; --- --- Name: keyword_scores_unique; Type: INDEX; Schema: frontend; Owner: postgres --- - -CREATE UNIQUE INDEX keyword_scores_unique ON frontend.keyword_scores USING btree (store, keyword_id); - - -- -- PostgreSQL database dump complete -- -\unrestrict gBlVtjxh0AbxdzOemU0qCabGc4aWATtwvtsKsJuUU1o1BcKVFMSdyGly2CmKv7I +\unrestrict Y0JJIFw521sNVOCa8Iz8rVnOmLkH9ujeefWBNQZuu2DFzcqOnZ17o7Dv7qSRgfU diff --git a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql index ad8abfe2..357afca1 100644 --- a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql +++ b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict hk8MwGFkw2lYCHmDj9DkZI7XpvxjZqLBw0fjoBeX44xqTSEr5I3yCMFxZnUMQWi +\restrict 6B4UJlq8T0WZPGRCc8HdwEdMndGhHTJZvLC18e21wBMzNsm5WJB2FgPBd0Htvfd -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -77,5 +77,5 @@ CREATE UNIQUE INDEX latest_sdk_scanned_apps_unique_index ON frontend.latest_sdk_ -- PostgreSQL database dump complete -- -\unrestrict hk8MwGFkw2lYCHmDj9DkZI7XpvxjZqLBw0fjoBeX44xqTSEr5I3yCMFxZnUMQWi +\unrestrict 6B4UJlq8T0WZPGRCc8HdwEdMndGhHTJZvLC18e21wBMzNsm5WJB2FgPBd0Htvfd diff --git a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql index 8afcb008..bf43502e 100644 --- a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql +++ b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict BNbTlPX4bIJmdxtb6J2SbiGtahQ9KeYJVDdpUl3Kqr4L648srxtECMvBeb2oQuw +\restrict zOuWBqD1LFskVHgV5aF1jiM7cxpJB4U4opQOXxYoHKZwNVdPVBskvoo4t37YYzz -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -61,5 +61,5 @@ ALTER MATERIALIZED VIEW frontend.store_app_api_companies OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict BNbTlPX4bIJmdxtb6J2SbiGtahQ9KeYJVDdpUl3Kqr4L648srxtECMvBeb2oQuw +\unrestrict zOuWBqD1LFskVHgV5aF1jiM7cxpJB4U4opQOXxYoHKZwNVdPVBskvoo4t37YYzz diff --git a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql index 160239fd..fa3f8fe2 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict nQgANLnruuGTJND1mnoH3XlQEjA6FOwcnPYBaZt2TK8pQlejoo8d2aiWswhoGJE +\restrict MvZ56RObHxdF13gGjQajGNNcj0qvvGyFeeBGlv8LzR4rapOwA8S9TS3kwCVHl08 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -71,5 +71,5 @@ CREATE UNIQUE INDEX store_app_ranks_best_monthly_uidx ON frontend.store_app_rank -- PostgreSQL database dump complete -- -\unrestrict nQgANLnruuGTJND1mnoH3XlQEjA6FOwcnPYBaZt2TK8pQlejoo8d2aiWswhoGJE +\unrestrict MvZ56RObHxdF13gGjQajGNNcj0qvvGyFeeBGlv8LzR4rapOwA8S9TS3kwCVHl08 diff --git a/pg-ddl/schema/frontend/store_app_ranks_daily.sql b/pg-ddl/schema/frontend/store_app_ranks_daily.sql index dcbb2f6d..a208004c 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_daily.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_daily.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fWjyF6I9VKp4hOOteeXx9yfvmmwmKBP8Gjc4f2Ay3de5vxu2odqrcZ5KatchEb1 +\restrict loczMEyeXAgtbokadehqG9eL7198UYarQStKNc0PI7HE61tijh7tpWtj9Fa21Pw -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -91,5 +91,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_daily -- PostgreSQL database dump complete -- -\unrestrict fWjyF6I9VKp4hOOteeXx9yfvmmwmKBP8Gjc4f2Ay3de5vxu2odqrcZ5KatchEb1 +\unrestrict loczMEyeXAgtbokadehqG9eL7198UYarQStKNc0PI7HE61tijh7tpWtj9Fa21Pw diff --git a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql index fe35c99d..9dabe66c 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict QGNvzDgl5pzqMoectg8ijXLNs1beGeYGrjuslkLq9mqgHkhFtjgcbouZHILVdmh +\restrict 2l2p4ayjl2qgvzEigMCr3RXzDoiFU81R0wLT6MfKCKq77qObbZ7aTuabSyQMaTx -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -72,5 +72,5 @@ CREATE UNIQUE INDEX idx_store_app_ranks_latest_filter_sort ON frontend.store_app -- PostgreSQL database dump complete -- -\unrestrict QGNvzDgl5pzqMoectg8ijXLNs1beGeYGrjuslkLq9mqgHkhFtjgcbouZHILVdmh +\unrestrict 2l2p4ayjl2qgvzEigMCr3RXzDoiFU81R0wLT6MfKCKq77qObbZ7aTuabSyQMaTx diff --git a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql index 23ea2338..20588f0f 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict h183fGBzdzkyFZFgvvje69uVbAGBzoQQj595d8h3GVC0iWEDs0CpaX7QxWUqM93 +\restrict 1UyZhnNyPThFABwDkPk1iITOkgLa0NT1UcFvLIYawHzuJWOaaqdbsCZSa80rCde -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -98,5 +98,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_weekly -- PostgreSQL database dump complete -- -\unrestrict h183fGBzdzkyFZFgvvje69uVbAGBzoQQj595d8h3GVC0iWEDs0CpaX7QxWUqM93 +\unrestrict 1UyZhnNyPThFABwDkPk1iITOkgLa0NT1UcFvLIYawHzuJWOaaqdbsCZSa80rCde diff --git a/pg-ddl/schema/frontend/store_apps_overview__matview.sql b/pg-ddl/schema/frontend/store_apps_overview__matview.sql index 61e90b61..011e62dd 100644 --- a/pg-ddl/schema/frontend/store_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/store_apps_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Rbxh9jMb42s8eRdhP1dxUOhDfqbnOVDlOzhYdoIsJWn0o17BNd6s9Qy89gde2G3 +\restrict 5myfyV5cXRCcNXH2GRftdW7aaP18MwOap1KABOWrzXoDCYdARN0nQumN5Pc3ujN -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -197,5 +197,5 @@ CREATE UNIQUE INDEX store_apps_overview_unique_store_id_idx ON frontend.store_ap -- PostgreSQL database dump complete -- -\unrestrict Rbxh9jMb42s8eRdhP1dxUOhDfqbnOVDlOzhYdoIsJWn0o17BNd6s9Qy89gde2G3 +\unrestrict 5myfyV5cXRCcNXH2GRftdW7aaP18MwOap1KABOWrzXoDCYdARN0nQumN5Pc3ujN diff --git a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql b/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql index f7cfe914..6a856e30 100644 --- a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql +++ b/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict y4jeAoEcTb1EkSfj93x1SdYMtzLyeh0LZtGqXiIEfAi6iamlX2FLPgbuG3IRwBp +\restrict 1XwdI5IQl7AjB51xGmRX7SRrMjrhGwuf1kr7BLhCcne7letSSSaTpNOMoHta4pu -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -124,5 +124,5 @@ CREATE UNIQUE INDEX frontend_store_apps_z_scores_unique ON frontend.store_apps_z -- PostgreSQL database dump complete -- -\unrestrict y4jeAoEcTb1EkSfj93x1SdYMtzLyeh0LZtGqXiIEfAi6iamlX2FLPgbuG3IRwBp +\unrestrict 1XwdI5IQl7AjB51xGmRX7SRrMjrhGwuf1kr7BLhCcne7letSSSaTpNOMoHta4pu diff --git a/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql b/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql index 468323d2..4e1b9f67 100644 --- a/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql +++ b/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Qfev810d5gN5bcwDBKDUi40qcsssVGq5bnxzNNzCUOvLHrzunMXrje4npQICE49 +\restrict 3GAERtGTVe7PQPy2NNL1w4vHl9XXRLWiz2PwAGApOwTDorFrEiP2MLjhSMXpdbc -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -53,5 +53,5 @@ CREATE UNIQUE INDEX idx_total_categories_app_counts ON frontend.total_categories -- PostgreSQL database dump complete -- -\unrestrict Qfev810d5gN5bcwDBKDUi40qcsssVGq5bnxzNNzCUOvLHrzunMXrje4npQICE49 +\unrestrict 3GAERtGTVe7PQPy2NNL1w4vHl9XXRLWiz2PwAGApOwTDorFrEiP2MLjhSMXpdbc diff --git a/pg-ddl/schema/full_db_dump.sql b/pg-ddl/schema/full_db_dump.sql index 9d8c822f..d4eea629 100644 --- a/pg-ddl/schema/full_db_dump.sql +++ b/pg-ddl/schema/full_db_dump.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict vYe6z6bKpKdnNtZ6GXBJHvdhjuVYdAYwdbpsJfGPACUaXkI2Lmc94ZXYOPiUHhG +\restrict ySc2meWErSxCQVEpDkycKZtM3csY5mSwW2VJpw5QrDlus0OfJGEc3iNClUysXTC -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -1961,15 +1961,61 @@ ALTER MATERIALIZED VIEW frontend.api_call_countries OWNER TO postgres; CREATE TABLE frontend.app_keyword_ranks_daily ( crawled_date date NOT NULL, + store smallint NOT NULL, country smallint NOT NULL, - app_rank smallint NOT NULL, keyword_id integer NOT NULL, - store_app integer NOT NULL + store_app integer NOT NULL, + app_rank smallint NOT NULL ); ALTER TABLE frontend.app_keyword_ranks_daily OWNER TO postgres; +-- +-- Name: app_keyword_rank_stats; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres +-- + +CREATE MATERIALIZED VIEW frontend.app_keyword_rank_stats AS + WITH latest_per_country AS ( + SELECT app_keyword_ranks_daily.country, + max(app_keyword_ranks_daily.crawled_date) AS max_crawled_date + FROM frontend.app_keyword_ranks_daily + GROUP BY app_keyword_ranks_daily.country + ), d30_keywords AS ( + SELECT akr.country, + akr.store_app, + akr.keyword_id, + min(akr.app_rank) AS d30_best_rank + FROM frontend.app_keyword_ranks_daily akr + WHERE (akr.crawled_date >= (CURRENT_DATE - '30 days'::interval)) + GROUP BY akr.country, akr.store_app, akr.keyword_id + ), latest_ranks AS ( + SELECT kr.country, + kr.store_app, + kr.keyword_id, + kr.app_rank AS latest_app_rank + FROM (frontend.app_keyword_ranks_daily kr + JOIN latest_per_country lpc ON (((kr.country = lpc.country) AND (kr.crawled_date = lpc.max_crawled_date)))) + ), all_ranked_keywords AS ( + SELECT rk.country, + rk.store_app, + rk.keyword_id, + rk.d30_best_rank, + lk.latest_app_rank + FROM (d30_keywords rk + LEFT JOIN latest_ranks lk ON (((lk.country = rk.country) AND (lk.store_app = rk.store_app) AND (lk.keyword_id = rk.keyword_id)))) + ) + SELECT country, + store_app, + keyword_id, + d30_best_rank, + latest_app_rank + FROM all_ranked_keywords + WITH NO DATA; + + +ALTER MATERIALIZED VIEW frontend.app_keyword_rank_stats OWNER TO postgres; + -- -- Name: apps_new_monthly; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres -- @@ -2946,18 +2992,18 @@ CREATE MATERIALIZED VIEW frontend.company_top_apps AS ALTER MATERIALIZED VIEW frontend.company_top_apps OWNER TO postgres; -- --- Name: description_keywords; Type: TABLE; Schema: public; Owner: postgres +-- Name: app_keywords_extracted; Type: TABLE; Schema: public; Owner: postgres -- -CREATE TABLE public.description_keywords ( - id integer NOT NULL, - description_id integer NOT NULL, +CREATE TABLE public.app_keywords_extracted ( + store_app integer NOT NULL, keyword_id integer NOT NULL, - extracted_at timestamp without time zone DEFAULT now() NOT NULL + description_id integer NOT NULL, + extracted_at timestamp without time zone NOT NULL ); -ALTER TABLE public.description_keywords OWNER TO postgres; +ALTER TABLE public.app_keywords_extracted OWNER TO postgres; -- -- Name: keywords; Type: TABLE; Schema: public; Owner: postgres @@ -2976,40 +3022,106 @@ ALTER TABLE public.keywords OWNER TO postgres; -- CREATE MATERIALIZED VIEW frontend.keyword_scores AS - WITH latest_en_descriptions AS ( - SELECT DISTINCT ON (sad.store_app) sad.store_app, - sad.id AS description_id - FROM (public.store_apps_descriptions sad - JOIN public.description_keywords dk ON ((sad.id = dk.description_id))) - WHERE (sad.language_id = 1) - ORDER BY sad.store_app, sad.updated_at DESC - ), keyword_app_counts AS ( + WITH keyword_app_counts AS ( SELECT sa.store, k.keyword_text, - dk.keyword_id, - count(DISTINCT led.store_app) AS app_count - FROM (((latest_en_descriptions led - LEFT JOIN public.description_keywords dk ON ((led.description_id = dk.description_id))) - LEFT JOIN public.keywords k ON ((dk.keyword_id = k.id))) - LEFT JOIN public.store_apps sa ON ((led.store_app = sa.id))) - WHERE (dk.keyword_id IS NOT NULL) - GROUP BY sa.store, k.keyword_text, dk.keyword_id + ake.keyword_id, + count(DISTINCT ake.store_app) AS app_count, + array_length(string_to_array((k.keyword_text)::text, ' '::text), 1) AS word_count + FROM ((public.app_keywords_extracted ake + LEFT JOIN public.keywords k ON ((ake.keyword_id = k.id))) + LEFT JOIN public.store_apps sa ON ((ake.store_app = sa.id))) + GROUP BY sa.store, k.keyword_text, ake.keyword_id ), total_app_count AS ( SELECT sa.store, - count(*) AS total_apps - FROM (latest_en_descriptions led - LEFT JOIN public.store_apps sa ON ((led.store_app = sa.id))) + count(DISTINCT ake.store_app) AS total_apps + FROM (public.app_keywords_extracted ake + LEFT JOIN public.store_apps sa ON ((ake.store_app = sa.id))) GROUP BY sa.store + ), keyword_competitors AS ( + SELECT ake.keyword_id, + sa.store, + avg(COALESCE(NULLIF(agml.installs, 0), (agml.rating_count * 25))) AS avg_installs, + max(COALESCE(NULLIF(agml.installs, 0), (agml.rating_count * 25))) AS max_installs, + percentile_cont((0.5)::double precision) WITHIN GROUP (ORDER BY ((COALESCE(NULLIF(agml.installs, 0), (agml.rating_count * 25)))::double precision)) AS median_installs, + avg(agml.rating) AS avg_rating, + count(*) FILTER (WHERE (COALESCE(NULLIF(agml.installs, 0), (agml.rating_count * 25)) > 1000000)) AS apps_over_1m_installs, + count(*) FILTER (WHERE ((sa.name)::text ~~* (('%'::text || (k.keyword_text)::text) || '%'::text))) AS title_matches + FROM (((public.app_keywords_extracted ake + LEFT JOIN public.store_apps sa ON ((ake.store_app = sa.id))) + LEFT JOIN public.app_global_metrics_latest agml ON ((sa.id = agml.store_app))) + LEFT JOIN public.keywords k ON ((ake.keyword_id = k.id))) + GROUP BY ake.keyword_id, sa.store, k.keyword_text + ), keyword_metrics AS ( + SELECT kac.store, + kac.keyword_text, + kac.keyword_id, + kac.app_count, + round(kc.avg_installs, 0) AS avg_installs, + tac.total_apps, + round(((100.0 * (kac.app_count)::numeric) / (NULLIF(tac.total_apps, 0))::numeric), 2) AS market_penetration_pct, + round(((100)::numeric * (((1)::double precision - (ln(((tac.total_apps)::double precision / ((kac.app_count + 1))::double precision)) / ln((tac.total_apps)::double precision))))::numeric), 2) AS competitiveness_score, + kac.word_count, + CASE + WHEN (kac.word_count = 1) THEN 'short_tail'::text + WHEN (kac.word_count = 2) THEN 'medium_tail'::text + ELSE 'long_tail'::text + END AS keyword_type, + length((kac.keyword_text)::text) AS char_length, + (COALESCE(kc.avg_installs, (0)::numeric))::bigint AS avg_competitor_installs, + COALESCE(kc.max_installs, (0)::bigint) AS top_competitor_installs, + (COALESCE(kc.median_installs, (0)::double precision))::bigint AS median_competitor_installs, + COALESCE(kc.avg_rating, (0)::double precision) AS avg_competitor_rating, + COALESCE(kc.apps_over_1m_installs, (0)::bigint) AS major_competitors, + COALESCE(kc.title_matches, (0)::bigint) AS title_matches, + round(((100.0 * (COALESCE(kc.title_matches, (0)::bigint))::numeric) / (NULLIF(kac.app_count, 0))::numeric), 2) AS title_relevance_pct + FROM ((keyword_app_counts kac + LEFT JOIN total_app_count tac ON ((kac.store = tac.store))) + LEFT JOIN keyword_competitors kc ON (((kac.keyword_id = kc.keyword_id) AND (kac.store = kc.store)))) ) - SELECT kac.store, - kac.keyword_text, - kac.keyword_id, - kac.app_count, - tac.total_apps, - round(((100)::numeric * (((1)::double precision - (ln(((tac.total_apps)::double precision / ((kac.app_count + 1))::double precision)) / ln((tac.total_apps)::double precision))))::numeric), 2) AS competitiveness_score - FROM (keyword_app_counts kac - LEFT JOIN total_app_count tac ON ((kac.store = tac.store))) - ORDER BY (round(((100)::numeric * (((1)::double precision - (ln(((tac.total_apps)::double precision / ((kac.app_count + 1))::double precision)) / ln((tac.total_apps)::double precision))))::numeric), 2)) DESC + SELECT store, + keyword_text, + keyword_id, + app_count, + avg_installs, + total_apps, + market_penetration_pct, + competitiveness_score, + word_count, + keyword_type, + char_length, + avg_competitor_installs, + top_competitor_installs, + median_competitor_installs, + avg_competitor_rating, + major_competitors, + title_matches, + title_relevance_pct, + round(LEAST((100)::numeric, ((((app_count)::numeric * 10.0) * ((100)::numeric - competitiveness_score)) / 100.0)), 2) AS volume_competition_score, + round(LEAST((100)::numeric, ((competitiveness_score * 0.6) + (LEAST((100)::numeric, ((COALESCE(avg_competitor_installs, (0)::bigint))::numeric / 100000.0)) * 0.4))), 2) AS keyword_difficulty, + round( + CASE + WHEN (app_count < 10) THEN (0)::double precision + WHEN ((major_competitors)::numeric > ((app_count)::numeric * 0.25)) THEN (20)::double precision + ELSE ((LEAST((40)::double precision, (log(((app_count + 1))::double precision) * (10)::double precision)) + ((((100)::numeric - competitiveness_score) * 0.4))::double precision) + ( + CASE + WHEN (COALESCE(median_competitor_installs, (0)::bigint) < 100000) THEN 20 + WHEN (COALESCE(median_competitor_installs, (0)::bigint) < 1000000) THEN 15 + WHEN (COALESCE(median_competitor_installs, (0)::bigint) < 10000000) THEN 10 + ELSE 5 + END)::double precision) + END) AS opportunity_score, + CASE + WHEN (app_count > 0) THEN round(((((app_count)::numeric * 1000.0) * (1.0 / ((1)::numeric + (competitiveness_score / 50.0)))) * + CASE + WHEN (word_count = 1) THEN 2.0 + WHEN (word_count = 2) THEN 1.0 + ELSE 0.5 + END), 0) + ELSE (0)::numeric + END AS estimated_monthly_searches, + round(((100)::numeric - LEAST((100)::numeric, ((((major_competitors)::numeric * 10.0) + ((COALESCE(median_competitor_installs, (0)::bigint))::numeric / 100000.0)) + (competitiveness_score * 0.3)))), 2) AS ranking_feasibility + FROM keyword_metrics km WITH NO DATA; @@ -3667,45 +3779,6 @@ CREATE MATERIALIZED VIEW public.app_country_metrics_latest AS ALTER MATERIALIZED VIEW public.app_country_metrics_latest OWNER TO postgres; --- --- Name: app_keyword_rankings; Type: TABLE; Schema: public; Owner: postgres --- - -CREATE TABLE public.app_keyword_rankings ( - id integer NOT NULL, - crawled_date date NOT NULL, - country smallint NOT NULL, - lang smallint NOT NULL, - keyword integer NOT NULL, - rank smallint NOT NULL, - store_app integer NOT NULL -); - - -ALTER TABLE public.app_keyword_rankings OWNER TO postgres; - --- --- Name: app_keyword_rankings_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres --- - -CREATE SEQUENCE public.app_keyword_rankings_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER SEQUENCE public.app_keyword_rankings_id_seq OWNER TO postgres; - --- --- Name: app_keyword_rankings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres --- - -ALTER SEQUENCE public.app_keyword_rankings_id_seq OWNED BY public.app_keyword_rankings.id; - - -- -- Name: app_urls_map_id_seq; Type: SEQUENCE; Schema: public; Owner: james -- @@ -3886,28 +3959,6 @@ ALTER SEQUENCE public.creative_records_id_seq1 OWNER TO postgres; ALTER SEQUENCE public.creative_records_id_seq1 OWNED BY public.creative_records.id; --- --- Name: description_keywords_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres --- - -CREATE SEQUENCE public.description_keywords_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER SEQUENCE public.description_keywords_id_seq OWNER TO postgres; - --- --- Name: description_keywords_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres --- - -ALTER SEQUENCE public.description_keywords_id_seq OWNED BY public.description_keywords.id; - - -- -- Name: developer_store_apps; Type: MATERIALIZED VIEW; Schema: public; Owner: postgres -- @@ -4663,13 +4714,6 @@ ALTER TABLE ONLY public.adstxt_crawl_results ALTER COLUMN id SET DEFAULT nextval ALTER TABLE ONLY public.api_calls ALTER COLUMN id SET DEFAULT nextval('public.api_calls_id_seq'::regclass); --- --- Name: app_keyword_rankings id; Type: DEFAULT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.app_keyword_rankings ALTER COLUMN id SET DEFAULT nextval('public.app_keyword_rankings_id_seq'::regclass); - - -- -- Name: crawl_scenario_country_config id; Type: DEFAULT; Schema: public; Owner: postgres -- @@ -4698,13 +4742,6 @@ ALTER TABLE ONLY public.creative_assets ALTER COLUMN id SET DEFAULT nextval('pub ALTER TABLE ONLY public.creative_records ALTER COLUMN id SET DEFAULT nextval('public.creative_records_id_seq1'::regclass); --- --- Name: description_keywords id; Type: DEFAULT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.description_keywords ALTER COLUMN id SET DEFAULT nextval('public.description_keywords_id_seq'::regclass); - - -- -- Name: domains id; Type: DEFAULT; Schema: public; Owner: postgres -- @@ -4924,7 +4961,7 @@ ALTER TABLE ONLY adtech.urls -- ALTER TABLE ONLY frontend.app_keyword_ranks_daily - ADD CONSTRAINT app_keyword_rankings_unique_test UNIQUE (crawled_date, country, keyword_id, app_rank); + ADD CONSTRAINT app_keyword_rankings_unique_test UNIQUE (crawled_date, store, country, keyword_id, app_rank); -- @@ -5031,14 +5068,6 @@ ALTER TABLE ONLY public.app_ads_entrys ADD CONSTRAINT app_ads_txt_un UNIQUE (ad_domain, publisher_id, relationship); --- --- Name: app_keyword_rankings app_keyword_rankings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.app_keyword_rankings - ADD CONSTRAINT app_keyword_rankings_pkey PRIMARY KEY (id); - - -- -- Name: app_urls_map app_urls_map_pkey; Type: CONSTRAINT; Schema: public; Owner: james -- @@ -5152,19 +5181,11 @@ ALTER TABLE ONLY public.creative_records -- --- Name: description_keywords description_keywords_description_id_keyword_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.description_keywords - ADD CONSTRAINT description_keywords_description_id_keyword_id_key UNIQUE (description_id, keyword_id); - - --- --- Name: description_keywords description_keywords_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: app_keywords_extracted description_keywords_app_id_keyword_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres -- -ALTER TABLE ONLY public.description_keywords - ADD CONSTRAINT description_keywords_pkey PRIMARY KEY (id); +ALTER TABLE ONLY public.app_keywords_extracted + ADD CONSTRAINT description_keywords_app_id_keyword_id_key UNIQUE (store_app, keyword_id); -- @@ -5343,14 +5364,6 @@ ALTER TABLE ONLY public.keywords ADD CONSTRAINT unique_keyword UNIQUE (keyword_text); --- --- Name: app_keyword_rankings unique_keyword_ranking; Type: CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.app_keyword_rankings - ADD CONSTRAINT unique_keyword_ranking UNIQUE (crawled_date, country, lang, rank, store_app, keyword); - - -- -- Name: user_requested_scan user_requested_scan_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- @@ -5607,6 +5620,13 @@ CREATE INDEX app_keyword_ranks_daily_app_lookup ON frontend.app_keyword_ranks_da CREATE INDEX app_keyword_ranks_daily_date ON frontend.app_keyword_ranks_daily USING btree (crawled_date); +-- +-- Name: app_keywords_delete_and_insert_on; Type: INDEX; Schema: frontend; Owner: postgres +-- + +CREATE INDEX app_keywords_delete_and_insert_on ON frontend.app_keyword_ranks_daily USING btree (crawled_date, store); + + -- -- Name: companies_apps_overview_idx; Type: INDEX; Schema: frontend; Owner: postgres -- @@ -5880,13 +5900,6 @@ CREATE UNIQUE INDEX idx_unique_company_domains_top_apps ON frontend.company_doma CREATE UNIQUE INDEX idx_unique_company_top_apps ON frontend.company_top_apps USING btree (company_domain, company_name, store, name, store_id, app_category); --- --- Name: keyword_scores_unique; Type: INDEX; Schema: frontend; Owner: postgres --- - -CREATE UNIQUE INDEX keyword_scores_unique ON frontend.keyword_scores USING btree (store, keyword_id); - - -- -- Name: latest_sdk_scanned_apps_unique_index; Type: INDEX; Schema: frontend; Owner: postgres -- @@ -6006,6 +6019,13 @@ CREATE UNIQUE INDEX app_global_metrics_latest_idx ON public.app_global_metrics_l CREATE UNIQUE INDEX app_global_metrics_weekly_diffs_week_start_store_app_idx ON public.app_global_metrics_weekly_diffs USING btree (week_start, store_app); +-- +-- Name: app_keywords_app_index; Type: INDEX; Schema: public; Owner: postgres +-- + +CREATE INDEX app_keywords_app_index ON public.app_keywords_extracted USING btree (store_app); + + -- -- Name: audit_dates_updated_date_idx; Type: INDEX; Schema: public; Owner: postgres -- @@ -6416,6 +6436,14 @@ ALTER TABLE ONLY adtech.urls ADD CONSTRAINT urls_domain_id_fkey FOREIGN KEY (domain_id) REFERENCES public.domains(id); +-- +-- Name: app_keyword_ranks_daily country_kr_fk; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres +-- + +ALTER TABLE ONLY frontend.app_keyword_ranks_daily + ADD CONSTRAINT country_kr_fk FOREIGN KEY (country) REFERENCES public.countries(id); + + -- -- Name: store_app_ranks_weekly fk_country; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres -- @@ -6480,6 +6508,30 @@ ALTER TABLE ONLY frontend.store_app_ranks_daily ADD CONSTRAINT fk_store_collection FOREIGN KEY (store_collection) REFERENCES public.store_collections(id); +-- +-- Name: app_keyword_ranks_daily keyword_kr_fk; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres +-- + +ALTER TABLE ONLY frontend.app_keyword_ranks_daily + ADD CONSTRAINT keyword_kr_fk FOREIGN KEY (keyword_id) REFERENCES public.keywords(id); + + +-- +-- Name: app_keyword_ranks_daily store_app_kr_fk; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres +-- + +ALTER TABLE ONLY frontend.app_keyword_ranks_daily + ADD CONSTRAINT store_app_kr_fk FOREIGN KEY (store_app) REFERENCES public.store_apps(id); + + +-- +-- Name: app_keyword_ranks_daily store_kr_fk; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres +-- + +ALTER TABLE ONLY frontend.app_keyword_ranks_daily + ADD CONSTRAINT store_kr_fk FOREIGN KEY (store) REFERENCES public.stores(id); + + -- -- Name: app_country_crawls app_country_crawls_app_fk; Type: FK CONSTRAINT; Schema: logging; Owner: postgres -- @@ -6713,18 +6765,18 @@ ALTER TABLE ONLY public.creative_records -- --- Name: description_keywords description_keywords_description_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres +-- Name: app_keywords_extracted description_keywords_app_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- -ALTER TABLE ONLY public.description_keywords - ADD CONSTRAINT description_keywords_description_id_fkey FOREIGN KEY (description_id) REFERENCES public.store_apps_descriptions(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.app_keywords_extracted + ADD CONSTRAINT description_keywords_app_id_fkey FOREIGN KEY (store_app) REFERENCES public.store_apps(id) ON DELETE CASCADE; -- --- Name: description_keywords description_keywords_keyword_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres +-- Name: app_keywords_extracted description_keywords_keyword_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- -ALTER TABLE ONLY public.description_keywords +ALTER TABLE ONLY public.app_keywords_extracted ADD CONSTRAINT description_keywords_keyword_id_fkey FOREIGN KEY (keyword_id) REFERENCES public.keywords(id) ON DELETE CASCADE; @@ -6736,14 +6788,6 @@ ALTER TABLE ONLY public.developers ADD CONSTRAINT developers_fk FOREIGN KEY (store) REFERENCES public.stores(id); --- --- Name: app_keyword_rankings fk_country; Type: FK CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.app_keyword_rankings - ADD CONSTRAINT fk_country FOREIGN KEY (country) REFERENCES public.countries(id); - - -- -- Name: ip_geo_snapshots fk_country; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- @@ -6760,30 +6804,6 @@ ALTER TABLE ONLY public.app_country_metrics_history ADD CONSTRAINT fk_country FOREIGN KEY (country_id) REFERENCES public.countries(id); --- --- Name: app_keyword_rankings fk_language; Type: FK CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.app_keyword_rankings - ADD CONSTRAINT fk_language FOREIGN KEY (lang) REFERENCES public.languages(id); - - --- --- Name: app_keyword_rankings fk_store_app; Type: FK CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.app_keyword_rankings - ADD CONSTRAINT fk_store_app FOREIGN KEY (store_app) REFERENCES public.store_apps(id); - - --- --- Name: app_keyword_rankings fk_store_keyword; Type: FK CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.app_keyword_rankings - ADD CONSTRAINT fk_store_keyword FOREIGN KEY (keyword) REFERENCES public.keywords(id); - - -- -- Name: version_manifests fk_vm_version_code; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- @@ -6900,5 +6920,5 @@ GRANT ALL ON SCHEMA public TO PUBLIC; -- PostgreSQL database dump complete -- -\unrestrict vYe6z6bKpKdnNtZ6GXBJHvdhjuVYdAYwdbpsJfGPACUaXkI2Lmc94ZXYOPiUHhG +\unrestrict ySc2meWErSxCQVEpDkycKZtM3csY5mSwW2VJpw5QrDlus0OfJGEc3iNClUysXTC diff --git a/pg-ddl/schema/logging/app_country_crawls.sql b/pg-ddl/schema/logging/app_country_crawls.sql index 8a5b4e68..4dd7967b 100644 --- a/pg-ddl/schema/logging/app_country_crawls.sql +++ b/pg-ddl/schema/logging/app_country_crawls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1GS5X6ZRZi1My9z1uBZaxedq9LqCBbA2BAHKejOrKwbwN85xNgwSCQDNtUL2lZ9 +\restrict VXyyhHoTxV5OOAfVxhxBqfE2YEElmhf496ByhQnk0IzrRN7hQTolSQqMaIbf2SM -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -57,5 +57,5 @@ ALTER TABLE ONLY logging.app_country_crawls -- PostgreSQL database dump complete -- -\unrestrict 1GS5X6ZRZi1My9z1uBZaxedq9LqCBbA2BAHKejOrKwbwN85xNgwSCQDNtUL2lZ9 +\unrestrict VXyyhHoTxV5OOAfVxhxBqfE2YEElmhf496ByhQnk0IzrRN7hQTolSQqMaIbf2SM diff --git a/pg-ddl/schema/logging/creative_scan_results.sql b/pg-ddl/schema/logging/creative_scan_results.sql index 58496851..8582bf18 100644 --- a/pg-ddl/schema/logging/creative_scan_results.sql +++ b/pg-ddl/schema/logging/creative_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict UYkE58wuYyJbULJQu2ddPydwSMoFAeUW5Lz7A5tN1lDhN3yNbnDQTBMdOPcMyg0 +\restrict 2MUyqGk3yQfCM7yGoGwrDs36eNyjEE2ek3jLBgSd8TJvEQvrbZWalUvorXpS36G -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -47,5 +47,5 @@ ALTER TABLE logging.creative_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict UYkE58wuYyJbULJQu2ddPydwSMoFAeUW5Lz7A5tN1lDhN3yNbnDQTBMdOPcMyg0 +\unrestrict 2MUyqGk3yQfCM7yGoGwrDs36eNyjEE2ek3jLBgSd8TJvEQvrbZWalUvorXpS36G diff --git a/pg-ddl/schema/logging/developers_crawled_at.sql b/pg-ddl/schema/logging/developers_crawled_at.sql index 31be3b2c..ff29c36f 100644 --- a/pg-ddl/schema/logging/developers_crawled_at.sql +++ b/pg-ddl/schema/logging/developers_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict mcbZRGhP4vHXmWZpOKe59nd7GfwyldH3DhMwAYHnZXzdGsorji8af6cHbnx7Pof +\restrict LMLrpwRlUO0MFGlkIubyhSehn9pfM2FwwM1zdnjyz5tUDk7R5Tyb4i7L8eW56sQ -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.developers_crawled_at -- PostgreSQL database dump complete -- -\unrestrict mcbZRGhP4vHXmWZpOKe59nd7GfwyldH3DhMwAYHnZXzdGsorji8af6cHbnx7Pof +\unrestrict LMLrpwRlUO0MFGlkIubyhSehn9pfM2FwwM1zdnjyz5tUDk7R5Tyb4i7L8eW56sQ diff --git a/pg-ddl/schema/logging/keywords_crawled_at.sql b/pg-ddl/schema/logging/keywords_crawled_at.sql index e9fe13a9..2dfbdecf 100644 --- a/pg-ddl/schema/logging/keywords_crawled_at.sql +++ b/pg-ddl/schema/logging/keywords_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict UBKBKGAcbCAElviNM03RNAYoA0eWfrwaoB5QeWQbWeAYuFLC16EL4feVZYOhUdX +\restrict EKrPVaBEZCNgPvvKk9lYFNUgDjURKBd7DG4KBp98JaSeIrZM15ks4p40IO3QAH7 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.keywords_crawled_at -- PostgreSQL database dump complete -- -\unrestrict UBKBKGAcbCAElviNM03RNAYoA0eWfrwaoB5QeWQbWeAYuFLC16EL4feVZYOhUdX +\unrestrict EKrPVaBEZCNgPvvKk9lYFNUgDjURKBd7DG4KBp98JaSeIrZM15ks4p40IO3QAH7 diff --git a/pg-ddl/schema/logging/snapshot_pub_domains.sql b/pg-ddl/schema/logging/snapshot_pub_domains.sql index a1ca9671..1384c667 100644 --- a/pg-ddl/schema/logging/snapshot_pub_domains.sql +++ b/pg-ddl/schema/logging/snapshot_pub_domains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict CLhugwnvfL9oEc9BodlUDUWCvGUp0dCgej56soTMIwtCZ8eSYnCOcPSfVmkH17i +\restrict xFlp2n9Y4auNRUi3lkhUdmq6DcWMiEE6y1Z9Iak8cfZXNmfl767TzgwZQEEi4U0 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -43,5 +43,5 @@ ALTER TABLE logging.snapshot_pub_domains OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict CLhugwnvfL9oEc9BodlUDUWCvGUp0dCgej56soTMIwtCZ8eSYnCOcPSfVmkH17i +\unrestrict xFlp2n9Y4auNRUi3lkhUdmq6DcWMiEE6y1Z9Iak8cfZXNmfl767TzgwZQEEi4U0 diff --git a/pg-ddl/schema/logging/store_app_downloads.sql b/pg-ddl/schema/logging/store_app_downloads.sql index e092562e..8159982d 100644 --- a/pg-ddl/schema/logging/store_app_downloads.sql +++ b/pg-ddl/schema/logging/store_app_downloads.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict wY2fjQXtWg8eoLskG407ZslzCJVGGBHCdRjqXqheeIj7OhQnFejW7DnkwMI2ggc +\restrict nfNQwmdrsQEMOHAnQr6fnWR2hdcHJsDEE5V1nNcfCuQO7ALOOrVfSrciInhfpI5 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -49,5 +49,5 @@ ALTER TABLE ONLY logging.store_app_downloads -- PostgreSQL database dump complete -- -\unrestrict wY2fjQXtWg8eoLskG407ZslzCJVGGBHCdRjqXqheeIj7OhQnFejW7DnkwMI2ggc +\unrestrict nfNQwmdrsQEMOHAnQr6fnWR2hdcHJsDEE5V1nNcfCuQO7ALOOrVfSrciInhfpI5 diff --git a/pg-ddl/schema/logging/store_app_no_creatives.sql b/pg-ddl/schema/logging/store_app_no_creatives.sql index b84e3994..d913829e 100644 --- a/pg-ddl/schema/logging/store_app_no_creatives.sql +++ b/pg-ddl/schema/logging/store_app_no_creatives.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fvX6fc0Gg9RG3Orah7Q6PiPLpcHsiEI1eRCqIon2aJwETxtLkjDQ1r4CFqVAWKY +\restrict EYhqakrqIZfm61j9iPbRrhoqrJmhg0H3UjN75i7mxwbnqUedyyECW9TNjwc2CPH -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -40,5 +40,5 @@ ALTER TABLE logging.store_app_no_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict fvX6fc0Gg9RG3Orah7Q6PiPLpcHsiEI1eRCqIon2aJwETxtLkjDQ1r4CFqVAWKY +\unrestrict EYhqakrqIZfm61j9iPbRrhoqrJmhg0H3UjN75i7mxwbnqUedyyECW9TNjwc2CPH diff --git a/pg-ddl/schema/logging/store_app_sources.sql b/pg-ddl/schema/logging/store_app_sources.sql index ec5c662e..49ef8b92 100644 --- a/pg-ddl/schema/logging/store_app_sources.sql +++ b/pg-ddl/schema/logging/store_app_sources.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict eTVomzTH9XuZC3k3Rn8AWNz9r2ASbO3b6BjEnvIcQOKJrmoxzW8Ct0722RYMCzi +\restrict yXN5isfGKNlMA4gmIVULgQZcDhVLdribZIl5X7f8j7G9lWQlrT07JVedYedwlJn -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -64,5 +64,5 @@ ALTER TABLE ONLY logging.store_app_sources -- PostgreSQL database dump complete -- -\unrestrict eTVomzTH9XuZC3k3Rn8AWNz9r2ASbO3b6BjEnvIcQOKJrmoxzW8Ct0722RYMCzi +\unrestrict yXN5isfGKNlMA4gmIVULgQZcDhVLdribZIl5X7f8j7G9lWQlrT07JVedYedwlJn diff --git a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql index 98d86ce2..e361519a 100644 --- a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql +++ b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict yIYIk6xIxuSTfRTucujR1iv9qX22VMlOJurslawFnYPSRWL8UEYtrly1Jaxh0vc +\restrict sNBHedcgyIQjakX0cQ9bedY6y1zH2YGIm7cdrge5IEyojKcd4nwV23k4v9qlb0W -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -63,5 +63,5 @@ ALTER TABLE ONLY logging.store_app_waydroid_crawled_at -- PostgreSQL database dump complete -- -\unrestrict yIYIk6xIxuSTfRTucujR1iv9qX22VMlOJurslawFnYPSRWL8UEYtrly1Jaxh0vc +\unrestrict sNBHedcgyIQjakX0cQ9bedY6y1zH2YGIm7cdrge5IEyojKcd4nwV23k4v9qlb0W diff --git a/pg-ddl/schema/logging/store_apps_audit.sql b/pg-ddl/schema/logging/store_apps_audit.sql index ee5c0e80..1092efba 100644 --- a/pg-ddl/schema/logging/store_apps_audit.sql +++ b/pg-ddl/schema/logging/store_apps_audit.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 7QO7A7FKXtsfEv8FXNSXcV5HNcX4dNmmRoAx6kaVf0kbm427Bj2mLvRHUnp8Yjq +\restrict Z6LBhmP3rtL0nqwCNRJkxEjzdXcWFPQTkykgC3TQEmaT9i9AU8oUsrDKfz8RXVK -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -51,5 +51,5 @@ CREATE INDEX store_apps_audit_stamp_idx ON logging.store_apps_audit USING btree -- PostgreSQL database dump complete -- -\unrestrict 7QO7A7FKXtsfEv8FXNSXcV5HNcX4dNmmRoAx6kaVf0kbm427Bj2mLvRHUnp8Yjq +\unrestrict Z6LBhmP3rtL0nqwCNRJkxEjzdXcWFPQTkykgC3TQEmaT9i9AU8oUsrDKfz8RXVK diff --git a/pg-ddl/schema/logging/store_apps_snapshot.sql b/pg-ddl/schema/logging/store_apps_snapshot.sql index 377fcfbb..2adca4a1 100644 --- a/pg-ddl/schema/logging/store_apps_snapshot.sql +++ b/pg-ddl/schema/logging/store_apps_snapshot.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qecG5RHvsy7qapOyRgCf4gMicRza78Kdic8UtVxKPsiSL53N6Kuh4ikRswZyDkT +\restrict wmtUV9yCW1Kszn6txwI9hBlzQGRTbB7kCDlbxaPJNr0qzHcIJVnXbJwBmvY8neM -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -44,5 +44,5 @@ ALTER TABLE logging.store_apps_snapshot OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict qecG5RHvsy7qapOyRgCf4gMicRza78Kdic8UtVxKPsiSL53N6Kuh4ikRswZyDkT +\unrestrict wmtUV9yCW1Kszn6txwI9hBlzQGRTbB7kCDlbxaPJNr0qzHcIJVnXbJwBmvY8neM diff --git a/pg-ddl/schema/logging/version_code_api_scan_results.sql b/pg-ddl/schema/logging/version_code_api_scan_results.sql index 11e95fac..5c8fb007 100644 --- a/pg-ddl/schema/logging/version_code_api_scan_results.sql +++ b/pg-ddl/schema/logging/version_code_api_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict rsOBxkCgHnywyg1lAI7lhgdNB7bHBbyz2sdNgDeURVBAxf4cbzI9Mo90EzChtFH +\restrict 5Cc2XCEATj2Ls3S7G1Qsw3T4esPoBcabs7v56ThzHH1UoMVZ0eCQfGV4FDHe1VY -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -42,5 +42,5 @@ ALTER TABLE logging.version_code_api_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict rsOBxkCgHnywyg1lAI7lhgdNB7bHBbyz2sdNgDeURVBAxf4cbzI9Mo90EzChtFH +\unrestrict 5Cc2XCEATj2Ls3S7G1Qsw3T4esPoBcabs7v56ThzHH1UoMVZ0eCQfGV4FDHe1VY diff --git a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql index d064cb02..e9bef726 100644 --- a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql +++ b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict cDUam4m9gNzcHaCB9hb4k9bekTmWZIUBR0t8OFP22ZLn7giKYBijeurYpBKAGb1 +\restrict noUqOIjgfeCaTuY9EqIDwoDm3W4xfrqK4IyHQZMaYY27DtIVBReJXmBqJQVYD8L -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -60,5 +60,5 @@ ALTER MATERIALIZED VIEW public.ad_network_sdk_keys OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict cDUam4m9gNzcHaCB9hb4k9bekTmWZIUBR0t8OFP22ZLn7giKYBijeurYpBKAGb1 +\unrestrict noUqOIjgfeCaTuY9EqIDwoDm3W4xfrqK4IyHQZMaYY27DtIVBReJXmBqJQVYD8L diff --git a/pg-ddl/schema/public/adstxt_crawl_results.sql b/pg-ddl/schema/public/adstxt_crawl_results.sql index 5e4854c6..53ebc22d 100644 --- a/pg-ddl/schema/public/adstxt_crawl_results.sql +++ b/pg-ddl/schema/public/adstxt_crawl_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 8f83kbJqGwnmuxilRHDGIPBO14kZEHcMp656e8I8uACRVXh2Dh6tog4VdpN9Jo8 +\restrict EBcJQZi0dGuZJ19lDUIKrIDjBKp95fgtlHCUUrSpFhdxsAZgaXYP1TvsMU01krB -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -96,5 +96,5 @@ ALTER TABLE ONLY public.adstxt_crawl_results -- PostgreSQL database dump complete -- -\unrestrict 8f83kbJqGwnmuxilRHDGIPBO14kZEHcMp656e8I8uACRVXh2Dh6tog4VdpN9Jo8 +\unrestrict EBcJQZi0dGuZJ19lDUIKrIDjBKp95fgtlHCUUrSpFhdxsAZgaXYP1TvsMU01krB diff --git a/pg-ddl/schema/public/api_calls.sql b/pg-ddl/schema/public/api_calls.sql index 454dc62b..6005c423 100644 --- a/pg-ddl/schema/public/api_calls.sql +++ b/pg-ddl/schema/public/api_calls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict kr2eGl7acl5vcz7SysJycxiD6rUUsiXGj0UU5zv41zf66f5F4BSi8A0nCJ73mOd +\restrict M8e99cciykegLK8mqWRkkgjvUdkeps978gMR35oIHIa8NcbgzRaaDsBPNeySDYW -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -135,5 +135,5 @@ ALTER TABLE ONLY public.api_calls -- PostgreSQL database dump complete -- -\unrestrict kr2eGl7acl5vcz7SysJycxiD6rUUsiXGj0UU5zv41zf66f5F4BSi8A0nCJ73mOd +\unrestrict M8e99cciykegLK8mqWRkkgjvUdkeps978gMR35oIHIa8NcbgzRaaDsBPNeySDYW diff --git a/pg-ddl/schema/public/app_ads_entrys.sql b/pg-ddl/schema/public/app_ads_entrys.sql index 8cb1ac09..27be0e21 100644 --- a/pg-ddl/schema/public/app_ads_entrys.sql +++ b/pg-ddl/schema/public/app_ads_entrys.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict w6gBiDOTCPO8ZPETbh7tpy3cP2s51toxwYWO6teY8ieLeZu6UD5bGztKUhmgswX +\restrict gdOD8IShZ01FtaTMfD0VCYcGjufwBoGw379OUQXnfmZWc7cytmMeEGs3pIah4q6 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -90,5 +90,5 @@ ALTER TABLE ONLY public.app_ads_entrys -- PostgreSQL database dump complete -- -\unrestrict w6gBiDOTCPO8ZPETbh7tpy3cP2s51toxwYWO6teY8ieLeZu6UD5bGztKUhmgswX +\unrestrict gdOD8IShZ01FtaTMfD0VCYcGjufwBoGw379OUQXnfmZWc7cytmMeEGs3pIah4q6 diff --git a/pg-ddl/schema/public/app_ads_map.sql b/pg-ddl/schema/public/app_ads_map.sql index ecd487fe..df94d2d7 100644 --- a/pg-ddl/schema/public/app_ads_map.sql +++ b/pg-ddl/schema/public/app_ads_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict JcxT3ucH0tVhZCnICBI4zCDoAW2HeFFTPA7DtUZGpLaH5rZjnnmcRNWPnMGqLYs +\restrict yHIWcYtYR1Vgdncw8CEmXDzAG9Pp3hu4ZX5Kic5T576nf3RW12IjWeq5mhR5GKb -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_ads_map -- PostgreSQL database dump complete -- -\unrestrict JcxT3ucH0tVhZCnICBI4zCDoAW2HeFFTPA7DtUZGpLaH5rZjnnmcRNWPnMGqLYs +\unrestrict yHIWcYtYR1Vgdncw8CEmXDzAG9Pp3hu4ZX5Kic5T576nf3RW12IjWeq5mhR5GKb diff --git a/pg-ddl/schema/public/app_country_metrics_history.sql b/pg-ddl/schema/public/app_country_metrics_history.sql index af706565..56b40ea6 100644 --- a/pg-ddl/schema/public/app_country_metrics_history.sql +++ b/pg-ddl/schema/public/app_country_metrics_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict vxGV2twtbTpWC176QwyDYAMnLUNXKMhdzgFtEq0wjIoz0hkJpqX8FLE9ckY4T0e +\restrict g47eTH7m7lKHRd1P5fWbguPtwNS6I0RPHanqHx2od6KHX9ntPz6qY8OJKmJF1aV -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.app_country_metrics_history -- PostgreSQL database dump complete -- -\unrestrict vxGV2twtbTpWC176QwyDYAMnLUNXKMhdzgFtEq0wjIoz0hkJpqX8FLE9ckY4T0e +\unrestrict g47eTH7m7lKHRd1P5fWbguPtwNS6I0RPHanqHx2od6KHX9ntPz6qY8OJKmJF1aV diff --git a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql index 51f5ef0d..670b5207 100644 --- a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict OsaEeiR7j7L2a3Mvf5WpHcfnrMET1UHjY6jAuDFG1CM8tKXwMj8C0TJbjMi5zVk +\restrict DT2sxvzBOdIlkgsis5gvKgk5lbRfuzS1N4cKggT8N7Tb3iuurj0rfWfhBNvvC49 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -57,5 +57,5 @@ CREATE UNIQUE INDEX app_country_metrics_latest_idx ON public.app_country_metrics -- PostgreSQL database dump complete -- -\unrestrict OsaEeiR7j7L2a3Mvf5WpHcfnrMET1UHjY6jAuDFG1CM8tKXwMj8C0TJbjMi5zVk +\unrestrict DT2sxvzBOdIlkgsis5gvKgk5lbRfuzS1N4cKggT8N7Tb3iuurj0rfWfhBNvvC49 diff --git a/pg-ddl/schema/public/app_global_metrics_history.sql b/pg-ddl/schema/public/app_global_metrics_history.sql index c8d3c2ba..106f9012 100644 --- a/pg-ddl/schema/public/app_global_metrics_history.sql +++ b/pg-ddl/schema/public/app_global_metrics_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1Aw0aYh7XCtkgFz04zsDAa0LjVS8UBl97GG4KM0JkYwH6AK7Lh29CaP3TOUXCN4 +\restrict q0q0GxHbSm1fWwEf8MANlQMRa3dLDMyvXC2Ukjy3M4yWeJDQT0gYQthRxtA2a2H -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.app_global_metrics_history -- PostgreSQL database dump complete -- -\unrestrict 1Aw0aYh7XCtkgFz04zsDAa0LjVS8UBl97GG4KM0JkYwH6AK7Lh29CaP3TOUXCN4 +\unrestrict q0q0GxHbSm1fWwEf8MANlQMRa3dLDMyvXC2Ukjy3M4yWeJDQT0gYQthRxtA2a2H diff --git a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql index b3b28e5d..bbde1001 100644 --- a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ey6Ywf83vSTVWS84v92RvFv15h7SCu0lDZWd7YNhSQpAGhUDr2c2eFhMhIt9RFy +\restrict pxlgibO5O1L3b9zBapJzsAuaNJfK1xIngxi4O4JIspn5aYjDxSOWZEHmCsGQhkS -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX app_global_metrics_latest_idx ON public.app_global_metrics_l -- PostgreSQL database dump complete -- -\unrestrict ey6Ywf83vSTVWS84v92RvFv15h7SCu0lDZWd7YNhSQpAGhUDr2c2eFhMhIt9RFy +\unrestrict pxlgibO5O1L3b9zBapJzsAuaNJfK1xIngxi4O4JIspn5aYjDxSOWZEHmCsGQhkS diff --git a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql index 2fc743c9..96e4f3fb 100644 --- a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Syr6lyxP1PlfUN6aJEjK7mIdtKYCHydvUmnrrt4BSmzsIHycKentN4CPT9mI8aZ +\restrict ddyohlmuMta3TXOAOCqj7tIRlabvAaAmNofIEEJXpGMlExnJDGQVHi4zosKh1wa -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX app_global_metrics_weekly_diffs_week_start_store_app_idx ON -- PostgreSQL database dump complete -- -\unrestrict Syr6lyxP1PlfUN6aJEjK7mIdtKYCHydvUmnrrt4BSmzsIHycKentN4CPT9mI8aZ +\unrestrict ddyohlmuMta3TXOAOCqj7tIRlabvAaAmNofIEEJXpGMlExnJDGQVHi4zosKh1wa diff --git a/pg-ddl/schema/public/app_keyword_rankings.sql b/pg-ddl/schema/public/app_keyword_rankings.sql deleted file mode 100644 index fff75b24..00000000 --- a/pg-ddl/schema/public/app_keyword_rankings.sql +++ /dev/null @@ -1,125 +0,0 @@ --- --- PostgreSQL database dump --- - -\restrict SNGBI54BSvVAR0OdVWplpuNGdp8xpPUm92U1BBhJJd1iFZJQWQO5j2wHtOonYXx - --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) - -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET transaction_timeout = 0; -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); -SET check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - -SET default_tablespace = ''; - -SET default_table_access_method = heap; - --- --- Name: app_keyword_rankings; Type: TABLE; Schema: public; Owner: postgres --- - -CREATE TABLE public.app_keyword_rankings ( - id integer NOT NULL, - crawled_date date NOT NULL, - country smallint NOT NULL, - lang smallint NOT NULL, - keyword integer NOT NULL, - rank smallint NOT NULL, - store_app integer NOT NULL -); - - -ALTER TABLE public.app_keyword_rankings OWNER TO postgres; - --- --- Name: app_keyword_rankings_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres --- - -CREATE SEQUENCE public.app_keyword_rankings_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER SEQUENCE public.app_keyword_rankings_id_seq OWNER TO postgres; - --- --- Name: app_keyword_rankings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres --- - -ALTER SEQUENCE public.app_keyword_rankings_id_seq OWNED BY public.app_keyword_rankings.id; - - --- --- Name: app_keyword_rankings id; Type: DEFAULT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.app_keyword_rankings ALTER COLUMN id SET DEFAULT nextval('public.app_keyword_rankings_id_seq'::regclass); - - --- --- Name: app_keyword_rankings app_keyword_rankings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.app_keyword_rankings - ADD CONSTRAINT app_keyword_rankings_pkey PRIMARY KEY (id); - - --- --- Name: app_keyword_rankings unique_keyword_ranking; Type: CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.app_keyword_rankings - ADD CONSTRAINT unique_keyword_ranking UNIQUE (crawled_date, country, lang, rank, store_app, keyword); - - --- --- Name: app_keyword_rankings fk_country; Type: FK CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.app_keyword_rankings - ADD CONSTRAINT fk_country FOREIGN KEY (country) REFERENCES public.countries(id); - - --- --- Name: app_keyword_rankings fk_language; Type: FK CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.app_keyword_rankings - ADD CONSTRAINT fk_language FOREIGN KEY (lang) REFERENCES public.languages(id); - - --- --- Name: app_keyword_rankings fk_store_app; Type: FK CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.app_keyword_rankings - ADD CONSTRAINT fk_store_app FOREIGN KEY (store_app) REFERENCES public.store_apps(id); - - --- --- Name: app_keyword_rankings fk_store_keyword; Type: FK CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.app_keyword_rankings - ADD CONSTRAINT fk_store_keyword FOREIGN KEY (keyword) REFERENCES public.keywords(id); - - --- --- PostgreSQL database dump complete --- - -\unrestrict SNGBI54BSvVAR0OdVWplpuNGdp8xpPUm92U1BBhJJd1iFZJQWQO5j2wHtOonYXx - diff --git a/pg-ddl/schema/public/app_keywords_extracted.sql b/pg-ddl/schema/public/app_keywords_extracted.sql new file mode 100644 index 00000000..ad2d29af --- /dev/null +++ b/pg-ddl/schema/public/app_keywords_extracted.sql @@ -0,0 +1,76 @@ +-- +-- PostgreSQL database dump +-- + +\restrict uGiMEKfsc7XXgBWkkudigWwZcVAyem9xe7cOKW54MbxgiCwxsKisC2y7slJJsXz + +-- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: app_keywords_extracted; Type: TABLE; Schema: public; Owner: postgres +-- + +CREATE TABLE public.app_keywords_extracted ( + store_app integer NOT NULL, + keyword_id integer NOT NULL, + description_id integer NOT NULL, + extracted_at timestamp without time zone NOT NULL +); + + +ALTER TABLE public.app_keywords_extracted OWNER TO postgres; + +-- +-- Name: app_keywords_extracted description_keywords_app_id_keyword_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres +-- + +ALTER TABLE ONLY public.app_keywords_extracted + ADD CONSTRAINT description_keywords_app_id_keyword_id_key UNIQUE (store_app, keyword_id); + + +-- +-- Name: app_keywords_app_index; Type: INDEX; Schema: public; Owner: postgres +-- + +CREATE INDEX app_keywords_app_index ON public.app_keywords_extracted USING btree (store_app); + + +-- +-- Name: app_keywords_extracted description_keywords_app_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres +-- + +ALTER TABLE ONLY public.app_keywords_extracted + ADD CONSTRAINT description_keywords_app_id_fkey FOREIGN KEY (store_app) REFERENCES public.store_apps(id) ON DELETE CASCADE; + + +-- +-- Name: app_keywords_extracted description_keywords_keyword_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres +-- + +ALTER TABLE ONLY public.app_keywords_extracted + ADD CONSTRAINT description_keywords_keyword_id_fkey FOREIGN KEY (keyword_id) REFERENCES public.keywords(id) ON DELETE CASCADE; + + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict uGiMEKfsc7XXgBWkkudigWwZcVAyem9xe7cOKW54MbxgiCwxsKisC2y7slJJsXz + diff --git a/pg-ddl/schema/public/app_urls_map.sql b/pg-ddl/schema/public/app_urls_map.sql index 323e6f95..9224948b 100644 --- a/pg-ddl/schema/public/app_urls_map.sql +++ b/pg-ddl/schema/public/app_urls_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict bJOFTB0z0GSHNuc5OipcOB5ROFyZh5ncUmFskMBFS5lB8UkbngLPbYDPOWBdqoe +\restrict hMVYRj3qaFbeiCPJQgdjO71hwj8e9SQyb2vfhiTGqsgSI8SDz8BWkCj3Ds9brcm -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_urls_map -- PostgreSQL database dump complete -- -\unrestrict bJOFTB0z0GSHNuc5OipcOB5ROFyZh5ncUmFskMBFS5lB8UkbngLPbYDPOWBdqoe +\unrestrict hMVYRj3qaFbeiCPJQgdjO71hwj8e9SQyb2vfhiTGqsgSI8SDz8BWkCj3Ds9brcm diff --git a/pg-ddl/schema/public/audit_dates__matview.sql b/pg-ddl/schema/public/audit_dates__matview.sql index 5e06366b..2f11facf 100644 --- a/pg-ddl/schema/public/audit_dates__matview.sql +++ b/pg-ddl/schema/public/audit_dates__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Du8LobT4GNc4oWZ4FUNP9p22ghKeE9Xn3bZwZADSSptVopVRIPeQeydGXC1Mask +\restrict mXd1rEMuK90Yef8Fodg9BHx4s5dvIE9w3bQKFzNwYZhQgA018RQb0XVK6fbhGXw -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -55,5 +55,5 @@ CREATE UNIQUE INDEX audit_dates_updated_date_idx ON public.audit_dates USING btr -- PostgreSQL database dump complete -- -\unrestrict Du8LobT4GNc4oWZ4FUNP9p22ghKeE9Xn3bZwZADSSptVopVRIPeQeydGXC1Mask +\unrestrict mXd1rEMuK90Yef8Fodg9BHx4s5dvIE9w3bQKFzNwYZhQgA018RQb0XVK6fbhGXw diff --git a/pg-ddl/schema/public/category_mapping__matview.sql b/pg-ddl/schema/public/category_mapping__matview.sql index f3d62bf8..614dca41 100644 --- a/pg-ddl/schema/public/category_mapping__matview.sql +++ b/pg-ddl/schema/public/category_mapping__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 15Fme94QDfvdOAQsirbuhpVZRfIXzNUqrTYZyCTX6qNI25KEx256OCtbatynNUK +\restrict Auyxx7CZ6SIr9ePADNfDdJVxf2eJOiFRY5GyNC9bjHBuvmRIeI3mEWDJju7Dmbz -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -67,5 +67,5 @@ CREATE UNIQUE INDEX category_mapping_idx ON public.category_mapping USING btree -- PostgreSQL database dump complete -- -\unrestrict 15Fme94QDfvdOAQsirbuhpVZRfIXzNUqrTYZyCTX6qNI25KEx256OCtbatynNUK +\unrestrict Auyxx7CZ6SIr9ePADNfDdJVxf2eJOiFRY5GyNC9bjHBuvmRIeI3mEWDJju7Dmbz diff --git a/pg-ddl/schema/public/countries.sql b/pg-ddl/schema/public/countries.sql index 3a8b86ca..82d5b620 100644 --- a/pg-ddl/schema/public/countries.sql +++ b/pg-ddl/schema/public/countries.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ndhaj1HVcXLcGvyaML686KiT3rLvRiJ4xTjXFhNJV3n3FvxEzAvPeNJvX2ZJp5x +\restrict xorKiuXYtsQKYXbltEYaAAo9Mlsdk8P0ePiKCvuaSptmF6b6wgQEylIWoQVpFWH -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -71,5 +71,5 @@ ALTER TABLE ONLY public.countries -- PostgreSQL database dump complete -- -\unrestrict ndhaj1HVcXLcGvyaML686KiT3rLvRiJ4xTjXFhNJV3n3FvxEzAvPeNJvX2ZJp5x +\unrestrict xorKiuXYtsQKYXbltEYaAAo9Mlsdk8P0ePiKCvuaSptmF6b6wgQEylIWoQVpFWH diff --git a/pg-ddl/schema/public/crawl_results.sql b/pg-ddl/schema/public/crawl_results.sql index 79f5d973..550779f6 100644 --- a/pg-ddl/schema/public/crawl_results.sql +++ b/pg-ddl/schema/public/crawl_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict MrVmeWCGBx5diZAJGxdlqYYaba8T0OyhFtxIwNOnbgtyy8qGOLLXWItFdNLjJAU +\restrict h0G8z1Zc59dchXG1dnpz48C3LfQ4m4vVJJ1855xw1vYhxNSWcAPE9the6GpglCv -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -61,5 +61,5 @@ ALTER TABLE ONLY public.crawl_results -- PostgreSQL database dump complete -- -\unrestrict MrVmeWCGBx5diZAJGxdlqYYaba8T0OyhFtxIwNOnbgtyy8qGOLLXWItFdNLjJAU +\unrestrict h0G8z1Zc59dchXG1dnpz48C3LfQ4m4vVJJ1855xw1vYhxNSWcAPE9the6GpglCv diff --git a/pg-ddl/schema/public/crawl_scenario_country_config.sql b/pg-ddl/schema/public/crawl_scenario_country_config.sql index ea382318..c6682fbe 100644 --- a/pg-ddl/schema/public/crawl_scenario_country_config.sql +++ b/pg-ddl/schema/public/crawl_scenario_country_config.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 21pqut2sc0AD76gqcLjKLVKITMoB9MhDjsyMq2YI0J68S584wvD8Zlf6aeGY8OZ +\restrict Qb4LwhBaB5Ws4r8ShLEwAnPFnMlvBdXjXRrL1e2YRrVFDQIF0eYin03DVgyDNmv -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.crawl_scenario_country_config -- PostgreSQL database dump complete -- -\unrestrict 21pqut2sc0AD76gqcLjKLVKITMoB9MhDjsyMq2YI0J68S584wvD8Zlf6aeGY8OZ +\unrestrict Qb4LwhBaB5Ws4r8ShLEwAnPFnMlvBdXjXRrL1e2YRrVFDQIF0eYin03DVgyDNmv diff --git a/pg-ddl/schema/public/crawl_scenarios.sql b/pg-ddl/schema/public/crawl_scenarios.sql index b567f9e7..5d06ff36 100644 --- a/pg-ddl/schema/public/crawl_scenarios.sql +++ b/pg-ddl/schema/public/crawl_scenarios.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict NaJrPQdbzJGCQzxmSjDqyBt7do5wYKEPtCcgnRrvbqOXaEZCtHcHqCMguata4s0 +\restrict rdUVa2qGnO6LbCwMfXhktA3VCh5gD2eTZcrHvijgPXbBuIvo3PW8NkLK5llS1ap -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.crawl_scenarios -- PostgreSQL database dump complete -- -\unrestrict NaJrPQdbzJGCQzxmSjDqyBt7do5wYKEPtCcgnRrvbqOXaEZCtHcHqCMguata4s0 +\unrestrict rdUVa2qGnO6LbCwMfXhktA3VCh5gD2eTZcrHvijgPXbBuIvo3PW8NkLK5llS1ap diff --git a/pg-ddl/schema/public/creative_assets.sql b/pg-ddl/schema/public/creative_assets.sql index 18f528cb..ffc0903c 100644 --- a/pg-ddl/schema/public/creative_assets.sql +++ b/pg-ddl/schema/public/creative_assets.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict eaurBbWOC1gZQgrNaZROgMSs2YLSoVX8yag8qt1aGrD6HMfSj3OyHHJRpgQ9pud +\restrict 7P7x1hjRO8B7UVD5n9yoQQhX8KAt6VU3xOmo3ao5tSpqlaerP8kIzAS48GygORz -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -94,5 +94,5 @@ CREATE INDEX idx_creative_assets_phash ON public.creative_assets USING btree (ph -- PostgreSQL database dump complete -- -\unrestrict eaurBbWOC1gZQgrNaZROgMSs2YLSoVX8yag8qt1aGrD6HMfSj3OyHHJRpgQ9pud +\unrestrict 7P7x1hjRO8B7UVD5n9yoQQhX8KAt6VU3xOmo3ao5tSpqlaerP8kIzAS48GygORz diff --git a/pg-ddl/schema/public/creative_records.sql b/pg-ddl/schema/public/creative_records.sql index cd278f53..e5b469dd 100644 --- a/pg-ddl/schema/public/creative_records.sql +++ b/pg-ddl/schema/public/creative_records.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict IdwAQS9e8up1ZydKhUjehmeVxBgbAc1P62LEjyU99PRhjk9ukz1eg0jkjgaAKoR +\restrict 4mWazm5O8vuUHzmHWAZSVM1Up9VKf0ijrAM9XBVcTTq0IIFbeSP50q5AXGbBccr -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -151,5 +151,5 @@ ALTER TABLE ONLY public.creative_records -- PostgreSQL database dump complete -- -\unrestrict IdwAQS9e8up1ZydKhUjehmeVxBgbAc1P62LEjyU99PRhjk9ukz1eg0jkjgaAKoR +\unrestrict 4mWazm5O8vuUHzmHWAZSVM1Up9VKf0ijrAM9XBVcTTq0IIFbeSP50q5AXGbBccr diff --git a/pg-ddl/schema/public/description_keywords.sql b/pg-ddl/schema/public/description_keywords.sql deleted file mode 100644 index 4d5ace30..00000000 --- a/pg-ddl/schema/public/description_keywords.sql +++ /dev/null @@ -1,106 +0,0 @@ --- --- PostgreSQL database dump --- - -\restrict ojHZNx8zTR0q0EPSiuWrdI2ts68hNtQjFAuIa7gZhXbC2LthlXyveNpzRPJIrm4 - --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) - -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET transaction_timeout = 0; -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); -SET check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - -SET default_tablespace = ''; - -SET default_table_access_method = heap; - --- --- Name: description_keywords; Type: TABLE; Schema: public; Owner: postgres --- - -CREATE TABLE public.description_keywords ( - id integer NOT NULL, - description_id integer NOT NULL, - keyword_id integer NOT NULL, - extracted_at timestamp without time zone DEFAULT now() NOT NULL -); - - -ALTER TABLE public.description_keywords OWNER TO postgres; - --- --- Name: description_keywords_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres --- - -CREATE SEQUENCE public.description_keywords_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER SEQUENCE public.description_keywords_id_seq OWNER TO postgres; - --- --- Name: description_keywords_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres --- - -ALTER SEQUENCE public.description_keywords_id_seq OWNED BY public.description_keywords.id; - - --- --- Name: description_keywords id; Type: DEFAULT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.description_keywords ALTER COLUMN id SET DEFAULT nextval('public.description_keywords_id_seq'::regclass); - - --- --- Name: description_keywords description_keywords_description_id_keyword_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.description_keywords - ADD CONSTRAINT description_keywords_description_id_keyword_id_key UNIQUE (description_id, keyword_id); - - --- --- Name: description_keywords description_keywords_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.description_keywords - ADD CONSTRAINT description_keywords_pkey PRIMARY KEY (id); - - --- --- Name: description_keywords description_keywords_description_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.description_keywords - ADD CONSTRAINT description_keywords_description_id_fkey FOREIGN KEY (description_id) REFERENCES public.store_apps_descriptions(id) ON DELETE CASCADE; - - --- --- Name: description_keywords description_keywords_keyword_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.description_keywords - ADD CONSTRAINT description_keywords_keyword_id_fkey FOREIGN KEY (keyword_id) REFERENCES public.keywords(id) ON DELETE CASCADE; - - --- --- PostgreSQL database dump complete --- - -\unrestrict ojHZNx8zTR0q0EPSiuWrdI2ts68hNtQjFAuIa7gZhXbC2LthlXyveNpzRPJIrm4 - diff --git a/pg-ddl/schema/public/developer_store_apps__matview.sql b/pg-ddl/schema/public/developer_store_apps__matview.sql index 200f92c4..5d72fa65 100644 --- a/pg-ddl/schema/public/developer_store_apps__matview.sql +++ b/pg-ddl/schema/public/developer_store_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ktyHtxXW2zqnXoVrohSBA1G8pgbanDnB2VjUDrck4NeNWK0oxxzado8OSQNfy5p +\restrict CbEKbHvbu8zKUzaMm645em4q3XmlE6wVX7Kaw3SrapHK3OiTy5E4LbANk1QXIba -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -83,5 +83,5 @@ CREATE UNIQUE INDEX idx_developer_store_apps_unique ON public.developer_store_ap -- PostgreSQL database dump complete -- -\unrestrict ktyHtxXW2zqnXoVrohSBA1G8pgbanDnB2VjUDrck4NeNWK0oxxzado8OSQNfy5p +\unrestrict CbEKbHvbu8zKUzaMm645em4q3XmlE6wVX7Kaw3SrapHK3OiTy5E4LbANk1QXIba diff --git a/pg-ddl/schema/public/developers.sql b/pg-ddl/schema/public/developers.sql index e450a216..fae6c5bb 100644 --- a/pg-ddl/schema/public/developers.sql +++ b/pg-ddl/schema/public/developers.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict w0CaObwYq8W5T7sdfm90OfnoaLbMWvYanwi1rVlLhPcxvFhWgnn7rdHnY1jyxeX +\restrict QpBwkoMA9evT5HhwYc8Xh2Dy4ZQPdYwyHzEVt6HbGnoYTeTJcbhc4TCVVN4LPiz -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -110,5 +110,5 @@ ALTER TABLE ONLY public.developers -- PostgreSQL database dump complete -- -\unrestrict w0CaObwYq8W5T7sdfm90OfnoaLbMWvYanwi1rVlLhPcxvFhWgnn7rdHnY1jyxeX +\unrestrict QpBwkoMA9evT5HhwYc8Xh2Dy4ZQPdYwyHzEVt6HbGnoYTeTJcbhc4TCVVN4LPiz diff --git a/pg-ddl/schema/public/domains.sql b/pg-ddl/schema/public/domains.sql index 8eadc980..34aa5c74 100644 --- a/pg-ddl/schema/public/domains.sql +++ b/pg-ddl/schema/public/domains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict KcrUAenCecgrhny9MUUeVx2K5ziKYhZZb5bOUZUTrQslzKshWiZi1kUCGE9n15n +\restrict JqeXgG1xtPCnNRGzeHaKReUFDu9lUiUzMj6QsWlAi3c6GiRNba8FMLfR9W4YwZC -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.domains -- PostgreSQL database dump complete -- -\unrestrict KcrUAenCecgrhny9MUUeVx2K5ziKYhZZb5bOUZUTrQslzKshWiZi1kUCGE9n15n +\unrestrict JqeXgG1xtPCnNRGzeHaKReUFDu9lUiUzMj6QsWlAi3c6GiRNba8FMLfR9W4YwZC diff --git a/pg-ddl/schema/public/ip_geo_snapshots.sql b/pg-ddl/schema/public/ip_geo_snapshots.sql index 393671ec..979c4745 100644 --- a/pg-ddl/schema/public/ip_geo_snapshots.sql +++ b/pg-ddl/schema/public/ip_geo_snapshots.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict LsXFnGfMehdR6jnwzVVfscbKiBE3w3KSqO6rauOizFVaK5ZdEJMcdqKws21V9w9 +\restrict gdXzg1EoY3YvTMvWogcIaI4SXcKMQIeJMI3MtYsPS0GvNua4ZtoerItEMCBK8rn -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.ip_geo_snapshots -- PostgreSQL database dump complete -- -\unrestrict LsXFnGfMehdR6jnwzVVfscbKiBE3w3KSqO6rauOizFVaK5ZdEJMcdqKws21V9w9 +\unrestrict gdXzg1EoY3YvTMvWogcIaI4SXcKMQIeJMI3MtYsPS0GvNua4ZtoerItEMCBK8rn diff --git a/pg-ddl/schema/public/keywords.sql b/pg-ddl/schema/public/keywords.sql index f861675d..33e3bf27 100644 --- a/pg-ddl/schema/public/keywords.sql +++ b/pg-ddl/schema/public/keywords.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict KyGZGdd4Hf9KvXzvat2oHbIaEsuGxDElexd1USPo9HFgtcJXn6Mqlhmu7wvhcOM +\restrict 4KkbNTKS8tFEreq2vy71coCc3UwKfy64pp0X558hgCHvFvLOR1hzzkRepEHeVBk -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.keywords -- PostgreSQL database dump complete -- -\unrestrict KyGZGdd4Hf9KvXzvat2oHbIaEsuGxDElexd1USPo9HFgtcJXn6Mqlhmu7wvhcOM +\unrestrict 4KkbNTKS8tFEreq2vy71coCc3UwKfy64pp0X558hgCHvFvLOR1hzzkRepEHeVBk diff --git a/pg-ddl/schema/public/keywords_base.sql b/pg-ddl/schema/public/keywords_base.sql index 6d41f69f..ada5db72 100644 --- a/pg-ddl/schema/public/keywords_base.sql +++ b/pg-ddl/schema/public/keywords_base.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict JDwNpNHaOsP6gpSqGwhod1VWu9PHgZ08u2FzuXlQfboyGsucZUvyn7nDfEemlww +\restrict v7uo8OocB3FjtHZEWlLpu86u4xeFxRs4VhSTsBxNZfyADnlaRdeC9qYrpwolSrk -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -38,5 +38,5 @@ ALTER TABLE public.keywords_base OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict JDwNpNHaOsP6gpSqGwhod1VWu9PHgZ08u2FzuXlQfboyGsucZUvyn7nDfEemlww +\unrestrict v7uo8OocB3FjtHZEWlLpu86u4xeFxRs4VhSTsBxNZfyADnlaRdeC9qYrpwolSrk diff --git a/pg-ddl/schema/public/languages.sql b/pg-ddl/schema/public/languages.sql index fea97a38..c3420a7e 100644 --- a/pg-ddl/schema/public/languages.sql +++ b/pg-ddl/schema/public/languages.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict r3wLFoiUA0wG4OFVdYrLsX7ITQVPkxKypcnxVBFk1g1UiEUYbcFydR3Iv4eqFty +\restrict shRyxwhS5IBGCCZ0046aYp0Wl3GRnnqY4XPSicqnLuKbOUaYlDlBEkmphnhw32n -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.languages -- PostgreSQL database dump complete -- -\unrestrict r3wLFoiUA0wG4OFVdYrLsX7ITQVPkxKypcnxVBFk1g1UiEUYbcFydR3Iv4eqFty +\unrestrict shRyxwhS5IBGCCZ0046aYp0Wl3GRnnqY4XPSicqnLuKbOUaYlDlBEkmphnhw32n diff --git a/pg-ddl/schema/public/mv_app_categories__matview.sql b/pg-ddl/schema/public/mv_app_categories__matview.sql index ef90599f..ac2b3d2b 100644 --- a/pg-ddl/schema/public/mv_app_categories__matview.sql +++ b/pg-ddl/schema/public/mv_app_categories__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict oM0Vf0mD1LB5K8UjhrDx5nISV8aVbSUbb5VYpgYzkVsEc0Fc1CjgKXDO3ZhsevB +\restrict 5cYwisZ0kcnXfoCwnzUiGHxYLIWaltvpO4k1WvFEI067lvbK0eRlgV37FUQoGvZ -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -45,5 +45,5 @@ ALTER MATERIALIZED VIEW public.mv_app_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict oM0Vf0mD1LB5K8UjhrDx5nISV8aVbSUbb5VYpgYzkVsEc0Fc1CjgKXDO3ZhsevB +\unrestrict 5cYwisZ0kcnXfoCwnzUiGHxYLIWaltvpO4k1WvFEI067lvbK0eRlgV37FUQoGvZ diff --git a/pg-ddl/schema/public/pg_stat_statements__view.sql b/pg-ddl/schema/public/pg_stat_statements__view.sql index 536ad99b..1d06259e 100644 --- a/pg-ddl/schema/public/pg_stat_statements__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements__view.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict gTJx4g4XTJGyB9SkP5ANpSgarTXiPuHHegc4ZWHiuVy36gnVXLG01nWMUUmfo0M +\restrict PY8vDxwm0fzAdQ5dRk4cDoP87oP3Cp0I2nDQ45CaHkRnO66xpZeSjHHqPjaqZIR -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict gTJx4g4XTJGyB9SkP5ANpSgarTXiPuHHegc4ZWHiuVy36gnVXLG01nWMUUmfo0M +\unrestrict PY8vDxwm0fzAdQ5dRk4cDoP87oP3Cp0I2nDQ45CaHkRnO66xpZeSjHHqPjaqZIR diff --git a/pg-ddl/schema/public/pg_stat_statements_info__view.sql b/pg-ddl/schema/public/pg_stat_statements_info__view.sql index c913f24e..bc6476df 100644 --- a/pg-ddl/schema/public/pg_stat_statements_info__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements_info__view.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict JBtNae68HBfe5QCf3QUXKbp74CiFqoGDX4JnnRn8MT5vePz60oOyTsb27Py47Qh +\restrict vZRCblqKwqmbWn5c8s3i4NFqwzViRfjPhPqYwJOGlhbck3LRzw1CzMqgRg2W84l -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict JBtNae68HBfe5QCf3QUXKbp74CiFqoGDX4JnnRn8MT5vePz60oOyTsb27Py47Qh +\unrestrict vZRCblqKwqmbWn5c8s3i4NFqwzViRfjPhPqYwJOGlhbck3LRzw1CzMqgRg2W84l diff --git a/pg-ddl/schema/public/platforms.sql b/pg-ddl/schema/public/platforms.sql index 9c2be295..e4dc4367 100644 --- a/pg-ddl/schema/public/platforms.sql +++ b/pg-ddl/schema/public/platforms.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict aERR5MS4qHryypMEnBCyuTbrkUXeetAMvNkmDNAQcowfNTBpDRbccH9x8sWgBJM +\restrict 6ywcHqongalT2mHnvVGagkztUU4nyTlSuhZn4nEcxSJBWFbATe4dRLNMAj0h4Te -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.platforms -- PostgreSQL database dump complete -- -\unrestrict aERR5MS4qHryypMEnBCyuTbrkUXeetAMvNkmDNAQcowfNTBpDRbccH9x8sWgBJM +\unrestrict 6ywcHqongalT2mHnvVGagkztUU4nyTlSuhZn4nEcxSJBWFbATe4dRLNMAj0h4Te diff --git a/pg-ddl/schema/public/store_app_z_scores__matview.sql b/pg-ddl/schema/public/store_app_z_scores__matview.sql index c86d29c4..892907fb 100644 --- a/pg-ddl/schema/public/store_app_z_scores__matview.sql +++ b/pg-ddl/schema/public/store_app_z_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict p9qmlMALh6O4oKGcBd0GgsIPldbzvghMXUZ0m223MTYFbJ8cyHElwy99EaV5TTI +\restrict H78odCXfLvkeTjlGbTulNcbz4uybUe4s7EBtFzhRe6E1itlt5reqYuxhxzlXYHx -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -155,5 +155,5 @@ ALTER MATERIALIZED VIEW public.store_app_z_scores OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict p9qmlMALh6O4oKGcBd0GgsIPldbzvghMXUZ0m223MTYFbJ8cyHElwy99EaV5TTI +\unrestrict H78odCXfLvkeTjlGbTulNcbz4uybUe4s7EBtFzhRe6E1itlt5reqYuxhxzlXYHx diff --git a/pg-ddl/schema/public/store_app_z_scores_history.sql b/pg-ddl/schema/public/store_app_z_scores_history.sql index da169c7a..c0153bc8 100644 --- a/pg-ddl/schema/public/store_app_z_scores_history.sql +++ b/pg-ddl/schema/public/store_app_z_scores_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1ddIhUFPy5wlXfZ0khUoMTQ5zl3MCLoRLwquIhlLVlMUjiql9qED521oFYMx3IY +\restrict EK03O1XLnQC7j4t6XGyKa7pEJZfxMom1rTvBzrceeRdWYhvhBNUgliXpxF8kNlJ -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -64,5 +64,5 @@ ALTER TABLE ONLY public.store_app_z_scores_history -- PostgreSQL database dump complete -- -\unrestrict 1ddIhUFPy5wlXfZ0khUoMTQ5zl3MCLoRLwquIhlLVlMUjiql9qED521oFYMx3IY +\unrestrict EK03O1XLnQC7j4t6XGyKa7pEJZfxMom1rTvBzrceeRdWYhvhBNUgliXpxF8kNlJ diff --git a/pg-ddl/schema/public/store_apps.sql b/pg-ddl/schema/public/store_apps.sql index e7c865db..cb4ed99d 100644 --- a/pg-ddl/schema/public/store_apps.sql +++ b/pg-ddl/schema/public/store_apps.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict JKp5YQaGRP9rXUuZrZaUKyOwDay6IgioWAg6XspDYhJUzSzXrlxdPkxmIu7jXkL +\restrict gSyzhupDV8JFuOXozTckfRYqJ6TjHNZAkqnS8zfKJpDFX7HCSQs4urxK4IdZptw -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -170,5 +170,5 @@ ALTER TABLE ONLY public.store_apps -- PostgreSQL database dump complete -- -\unrestrict JKp5YQaGRP9rXUuZrZaUKyOwDay6IgioWAg6XspDYhJUzSzXrlxdPkxmIu7jXkL +\unrestrict gSyzhupDV8JFuOXozTckfRYqJ6TjHNZAkqnS8zfKJpDFX7HCSQs4urxK4IdZptw diff --git a/pg-ddl/schema/public/store_apps_created_at__matview.sql b/pg-ddl/schema/public/store_apps_created_at__matview.sql index fefc879d..cdc435f1 100644 --- a/pg-ddl/schema/public/store_apps_created_at__matview.sql +++ b/pg-ddl/schema/public/store_apps_created_at__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 8DVuVuAYtUYq1dvTBsxG7ADYZrSCRMaBcfGAhOUQ8oLAIyGO8piqmubmAb9zkFd +\restrict n6dJ4fJFcWfCrfXfPX1lL2QL2uu8DfzM1vhidnAQ76zhXoYFcOGurk8cg2dh03t -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -71,5 +71,5 @@ CREATE UNIQUE INDEX idx_store_apps_created_atx ON public.store_apps_created_at U -- PostgreSQL database dump complete -- -\unrestrict 8DVuVuAYtUYq1dvTBsxG7ADYZrSCRMaBcfGAhOUQ8oLAIyGO8piqmubmAb9zkFd +\unrestrict n6dJ4fJFcWfCrfXfPX1lL2QL2uu8DfzM1vhidnAQ76zhXoYFcOGurk8cg2dh03t diff --git a/pg-ddl/schema/public/store_apps_descriptions.sql b/pg-ddl/schema/public/store_apps_descriptions.sql index 626f8766..9b809405 100644 --- a/pg-ddl/schema/public/store_apps_descriptions.sql +++ b/pg-ddl/schema/public/store_apps_descriptions.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict FbaVbK09WEtXfTVgKF6uOlP8BgOyou2hZc30wfMGxPQL9QtPdpMi0QyrYxrTNIn +\restrict 0oQiSS9cJnDuOSs5JxPB8O1yXVA9lxiGgYgaD63UQuZLCtmtkxAmCBzgWuebLgS -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.store_apps_descriptions -- PostgreSQL database dump complete -- -\unrestrict FbaVbK09WEtXfTVgKF6uOlP8BgOyou2hZc30wfMGxPQL9QtPdpMi0QyrYxrTNIn +\unrestrict 0oQiSS9cJnDuOSs5JxPB8O1yXVA9lxiGgYgaD63UQuZLCtmtkxAmCBzgWuebLgS diff --git a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql index b9fd0e18..99494c72 100644 --- a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql +++ b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict LLAe02uzMWiI9dbGZWQYhWGl9RmGxkDIJfDTGefNeYWc64F0Jm2U88hWHct052Y +\restrict yzG7cCnCah9TgEDCpQbAlXPKKFvOCiaDIAWh8xVubVCWywSnyJIebttdbB9IGbH -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW public.store_apps_in_latest_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict LLAe02uzMWiI9dbGZWQYhWGl9RmGxkDIJfDTGefNeYWc64F0Jm2U88hWHct052Y +\unrestrict yzG7cCnCah9TgEDCpQbAlXPKKFvOCiaDIAWh8xVubVCWywSnyJIebttdbB9IGbH diff --git a/pg-ddl/schema/public/store_apps_updated_at__matview.sql b/pg-ddl/schema/public/store_apps_updated_at__matview.sql index a6634954..c0bfdd67 100644 --- a/pg-ddl/schema/public/store_apps_updated_at__matview.sql +++ b/pg-ddl/schema/public/store_apps_updated_at__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 8nFK1MrqCYLiuWgHbwDPi8Dq3jTzzZ7EnzKLDYWEaMFSY7LmaEEsxGzT0NnAB04 +\restrict 5mWeewqnatfT4r2vuqo7HZDgOgJiuuddJdMe4ZF1hS6aAdDay2Gw3nlc560fijK -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -71,5 +71,5 @@ CREATE UNIQUE INDEX idx_store_apps_updated_at ON public.store_apps_updated_at US -- PostgreSQL database dump complete -- -\unrestrict 8nFK1MrqCYLiuWgHbwDPi8Dq3jTzzZ7EnzKLDYWEaMFSY7LmaEEsxGzT0NnAB04 +\unrestrict 5mWeewqnatfT4r2vuqo7HZDgOgJiuuddJdMe4ZF1hS6aAdDay2Gw3nlc560fijK diff --git a/pg-ddl/schema/public/store_categories.sql b/pg-ddl/schema/public/store_categories.sql index f6b23d21..44cfbae2 100644 --- a/pg-ddl/schema/public/store_categories.sql +++ b/pg-ddl/schema/public/store_categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict IMASdKTDCWkhoCamaYSWQcxjCeLOwQCxFaiY0RxUtwdPNRbdjJGiidHYDI8ylYS +\restrict UBuEkvYb0FAEqRMC9TPZ9PDKk7f5nhfcF97IdzSBgD9NuNVLfEnLuglHiwgnA3S -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_categories -- PostgreSQL database dump complete -- -\unrestrict IMASdKTDCWkhoCamaYSWQcxjCeLOwQCxFaiY0RxUtwdPNRbdjJGiidHYDI8ylYS +\unrestrict UBuEkvYb0FAEqRMC9TPZ9PDKk7f5nhfcF97IdzSBgD9NuNVLfEnLuglHiwgnA3S diff --git a/pg-ddl/schema/public/store_collections.sql b/pg-ddl/schema/public/store_collections.sql index bf6456f3..9106831f 100644 --- a/pg-ddl/schema/public/store_collections.sql +++ b/pg-ddl/schema/public/store_collections.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict LrNtr970WepmwSrVtIZlKniVGlTlm9wpqp3BtvIyYA4mRgkPb5VEvB2CQlqN08t +\restrict XxlvlwZhmN85gyz7t5fEFt0k8jmKOC6wlBNaE5E8L5N8aQF6UtRzvtUHc8hyVCB -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_collections -- PostgreSQL database dump complete -- -\unrestrict LrNtr970WepmwSrVtIZlKniVGlTlm9wpqp3BtvIyYA4mRgkPb5VEvB2CQlqN08t +\unrestrict XxlvlwZhmN85gyz7t5fEFt0k8jmKOC6wlBNaE5E8L5N8aQF6UtRzvtUHc8hyVCB diff --git a/pg-ddl/schema/public/stores.sql b/pg-ddl/schema/public/stores.sql index 16151e13..bc5d2381 100644 --- a/pg-ddl/schema/public/stores.sql +++ b/pg-ddl/schema/public/stores.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5xWz6sSwTJcWSZKmUxwwM2HWZpsMDMbJ4grKnh4ytkjYnDIKn3Z8CMOKyCmU86b +\restrict IoekVnoFVLqRN11hmawoJwbc0vOIqzIV3NEQgQCTdppaDqM5oLxodQkB4TpcRLd -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -93,5 +93,5 @@ ALTER TABLE ONLY public.stores -- PostgreSQL database dump complete -- -\unrestrict 5xWz6sSwTJcWSZKmUxwwM2HWZpsMDMbJ4grKnh4ytkjYnDIKn3Z8CMOKyCmU86b +\unrestrict IoekVnoFVLqRN11hmawoJwbc0vOIqzIV3NEQgQCTdppaDqM5oLxodQkB4TpcRLd diff --git a/pg-ddl/schema/public/total_count_overview__matview.sql b/pg-ddl/schema/public/total_count_overview__matview.sql index e551ef49..ef7acfed 100644 --- a/pg-ddl/schema/public/total_count_overview__matview.sql +++ b/pg-ddl/schema/public/total_count_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict dDb0wKyzDEugTHDjLFsOjNNoFh4VXUBDndw6b1hsscAecp5OteFtBeVgSQmLxRP +\restrict yeq8SA0F76IEMorta006S0T8IXCgYcmjqf4V0TG2UqA6BgNltzqQdZlye4rsUQm -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -166,5 +166,5 @@ ALTER MATERIALIZED VIEW public.total_count_overview OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict dDb0wKyzDEugTHDjLFsOjNNoFh4VXUBDndw6b1hsscAecp5OteFtBeVgSQmLxRP +\unrestrict yeq8SA0F76IEMorta006S0T8IXCgYcmjqf4V0TG2UqA6BgNltzqQdZlye4rsUQm diff --git a/pg-ddl/schema/public/user_requested_scan.sql b/pg-ddl/schema/public/user_requested_scan.sql index d0c60919..17e33a02 100644 --- a/pg-ddl/schema/public/user_requested_scan.sql +++ b/pg-ddl/schema/public/user_requested_scan.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict pR5NU8zWWjwKRMjlscJydPMAmEcyioDNHHBJAfIOEnkaCs95C4yqbboFR99SX8a +\restrict 0iAsZ7y6Yi92AhmIvq7snjqNv8ecgCjf0gClGATsckrQyvAhNW0LGmedgKdgSDw -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -77,5 +77,5 @@ ALTER TABLE ONLY public.user_requested_scan -- PostgreSQL database dump complete -- -\unrestrict pR5NU8zWWjwKRMjlscJydPMAmEcyioDNHHBJAfIOEnkaCs95C4yqbboFR99SX8a +\unrestrict 0iAsZ7y6Yi92AhmIvq7snjqNv8ecgCjf0gClGATsckrQyvAhNW0LGmedgKdgSDw diff --git a/pg-ddl/schema/public/version_code_api_scan_results.sql b/pg-ddl/schema/public/version_code_api_scan_results.sql index 106ecafb..b37f8cd3 100644 --- a/pg-ddl/schema/public/version_code_api_scan_results.sql +++ b/pg-ddl/schema/public/version_code_api_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict jVVVNvhkahcUbPmFmq1lldPMPJupwAA9e7Yj1rNXlsG3fo3oaPMQxSbO4p0k6wc +\restrict lx4ylUucy53kq29Ub28XtRYo4vTRtZ5EgGBFSVrDkapMrKhUfeJDMzpvRSyXi5H -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -87,5 +87,5 @@ ALTER TABLE ONLY public.version_code_api_scan_results -- PostgreSQL database dump complete -- -\unrestrict jVVVNvhkahcUbPmFmq1lldPMPJupwAA9e7Yj1rNXlsG3fo3oaPMQxSbO4p0k6wc +\unrestrict lx4ylUucy53kq29Ub28XtRYo4vTRtZ5EgGBFSVrDkapMrKhUfeJDMzpvRSyXi5H diff --git a/pg-ddl/schema/public/version_code_sdk_scan_results.sql b/pg-ddl/schema/public/version_code_sdk_scan_results.sql index b7386031..9db6267d 100644 --- a/pg-ddl/schema/public/version_code_sdk_scan_results.sql +++ b/pg-ddl/schema/public/version_code_sdk_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict mAfGeixw1WgxWhygz9Dhl9tGWdALHiPZQ8aIu3IqDkXKr1QKH7sjEQK3uKUIe6P +\restrict 0QzgxVbEWqlcR5gfd4OyWWj2pYuTr34SHwO6gWobcAa1AXOgveMa3cr5urkyDsB -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.version_code_sdk_scan_results -- PostgreSQL database dump complete -- -\unrestrict mAfGeixw1WgxWhygz9Dhl9tGWdALHiPZQ8aIu3IqDkXKr1QKH7sjEQK3uKUIe6P +\unrestrict 0QzgxVbEWqlcR5gfd4OyWWj2pYuTr34SHwO6gWobcAa1AXOgveMa3cr5urkyDsB diff --git a/pg-ddl/schema/public/version_codes.sql b/pg-ddl/schema/public/version_codes.sql index a210daa8..5deadfee 100644 --- a/pg-ddl/schema/public/version_codes.sql +++ b/pg-ddl/schema/public/version_codes.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict PBsKN42hVEYqdrZIJpNsmjKbLsvtC3kx6dHScBxRgHzPXiENmFLUO6uAQST0YzV +\restrict uxYxRoadolPUJokKQVbib2QoLVPGSgz0dgyaORScVicNGcwH4jcJCjcLMFfTE8Y -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -89,5 +89,5 @@ ALTER TABLE ONLY public.version_codes -- PostgreSQL database dump complete -- -\unrestrict PBsKN42hVEYqdrZIJpNsmjKbLsvtC3kx6dHScBxRgHzPXiENmFLUO6uAQST0YzV +\unrestrict uxYxRoadolPUJokKQVbib2QoLVPGSgz0dgyaORScVicNGcwH4jcJCjcLMFfTE8Y diff --git a/pg-ddl/schema/public/version_details_map.sql b/pg-ddl/schema/public/version_details_map.sql index eba85ffd..d1acb062 100644 --- a/pg-ddl/schema/public/version_details_map.sql +++ b/pg-ddl/schema/public/version_details_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict yJMBn9Coo2uM7ZeKQFgYr5EIvAE9rmIlEimeSb4fKVGeREhPbSfVlV1F7TZ7FaK +\restrict xVasvbbeOlNDb7u8Ct5LpeP5deARNaE3toUdnpqnH1KcWZsRlyt7p20GJJ8T3OM -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_details_map -- PostgreSQL database dump complete -- -\unrestrict yJMBn9Coo2uM7ZeKQFgYr5EIvAE9rmIlEimeSb4fKVGeREhPbSfVlV1F7TZ7FaK +\unrestrict xVasvbbeOlNDb7u8Ct5LpeP5deARNaE3toUdnpqnH1KcWZsRlyt7p20GJJ8T3OM diff --git a/pg-ddl/schema/public/version_manifests.sql b/pg-ddl/schema/public/version_manifests.sql index d24c3a24..b979cd5f 100644 --- a/pg-ddl/schema/public/version_manifests.sql +++ b/pg-ddl/schema/public/version_manifests.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict IFZ4VKpqzL7ifg0YEQEKnkKPekLQbcwOUX2qUocfoQ4elH6bdEpEASgJtSz8AfQ +\restrict LTkeitY9c2Wecu4ewi01g5qbT3kWyhk5UtdWAlYo7PngI4osSveTwPsAH9aJih2 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_manifests -- PostgreSQL database dump complete -- -\unrestrict IFZ4VKpqzL7ifg0YEQEKnkKPekLQbcwOUX2qUocfoQ4elH6bdEpEASgJtSz8AfQ +\unrestrict LTkeitY9c2Wecu4ewi01g5qbT3kWyhk5UtdWAlYo7PngI4osSveTwPsAH9aJih2 diff --git a/pg-ddl/schema/public/version_strings.sql b/pg-ddl/schema/public/version_strings.sql index eb225fe7..b794c717 100644 --- a/pg-ddl/schema/public/version_strings.sql +++ b/pg-ddl/schema/public/version_strings.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 4WHmlfDA71QE421x9bn6jefeWCOdQG8zDnFZfMFmvkXPojHjSFKbphNdXyYWi3s +\restrict QN1QbqOCrcfUVFFxZHvEa3jfoaf0RkdlSqElLDBNwxE3AtwGeQy2jaBNUnm8it5 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -106,5 +106,5 @@ CREATE INDEX version_strings_xml_path_trgm_idx ON public.version_strings USING g -- PostgreSQL database dump complete -- -\unrestrict 4WHmlfDA71QE421x9bn6jefeWCOdQG8zDnFZfMFmvkXPojHjSFKbphNdXyYWi3s +\unrestrict QN1QbqOCrcfUVFFxZHvEa3jfoaf0RkdlSqElLDBNwxE3AtwGeQy2jaBNUnm8it5 From d275d72e0d79a945778815ae750bfe26e2239046 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Mon, 10 Nov 2025 23:29:58 +0800 Subject: [PATCH 04/81] Dump schema changes for keywords --- adscrawler/app_stores/process_keywords.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/adscrawler/app_stores/process_keywords.py b/adscrawler/app_stores/process_keywords.py index 847ef656..e0ba684a 100644 --- a/adscrawler/app_stores/process_keywords.py +++ b/adscrawler/app_stores/process_keywords.py @@ -6,6 +6,7 @@ import pandas as pd +from adscrawler.config import get_logger from adscrawler.dbcon.connection import PostgresCon from adscrawler.dbcon.queries import ( delete_and_insert, @@ -15,8 +16,6 @@ upsert_df, ) -from adscrawler.config import get_logger - logger = get_logger(__name__) # Custom stopwords to remove personal pronouns & other irrelevant words From a3103559d0db646658e523fc7d7621a441a88b87 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Tue, 11 Nov 2025 12:30:13 +0800 Subject: [PATCH 05/81] store click urls into creative records table --- adscrawler/dbcon/queries.py | 32 ++++---- adscrawler/mitm_ad_parser/mitm_scrape_ads.py | 22 +++++- adscrawler/mitm_ad_parser/models.py | 9 +-- adscrawler/mitm_ad_parser/network_parsers.py | 83 ++++++++++++++------ 4 files changed, 101 insertions(+), 45 deletions(-) diff --git a/adscrawler/dbcon/queries.py b/adscrawler/dbcon/queries.py index 5249171d..39c77c0f 100644 --- a/adscrawler/dbcon/queries.py +++ b/adscrawler/dbcon/queries.py @@ -875,23 +875,24 @@ def query_pub_domains_to_crawl_ads_txt( return df -def query_urls_id_map( - urls: list[str], database_connection: PostgresCon -) -> pd.DataFrame: +@lru_cache(maxsize=1) +def query_urls_hash_map_cached(database_connection: PostgresCon) -> pd.DataFrame: """ - Get URL IDs by looking up MD5 hashes. - Returns DataFrame with columns: url, id - """ - if not urls: - return pd.DataFrame(columns=["url", "id"]) - url_hash_map = {url: hashlib.md5(url.encode()).hexdigest() for url in urls} - hashes_str = "'" + "','".join(url_hash_map.values()) + "'" - sel_query = f""" - SELECT url, id, url_hash - FROM adtech.urls - WHERE url_hash IN ({hashes_str}) + Get URL IDs and hashes from the urls table. + Returns DataFrame with columns: url_id, url """ + sel_query = """SELECT id, url_hash FROM adtech.urls""" df = pd.read_sql(sel_query, database_connection.engine) + df = df.rename(columns={"id": "url_id"}) + return df + + +@lru_cache(maxsize=1000) +def query_urls_by_hashes( + hashes: list[str], database_connection: PostgresCon +) -> pd.DataFrame: + sel_query = """SELECT id, url_hash FROM adtech.urls WHERE url_hash IN (%s)""" + df = pd.read_sql(sel_query, database_connection.engine, params=(hashes)) return df @@ -1345,7 +1346,8 @@ def get_failed_mitm_logs(database_connection: PostgresCon) -> pd.DataFrame: sel_query = """WITH last_run_result AS (SELECT DISTINCT ON (run_id) run_id, pub_store_id, error_msg, inserted_at FROM logging.creative_scan_results - ORDER BY run_id, inserted_at DESC) + ORDER BY run_id, inserted_at DESC + ) SELECT * FROM last_run_result WHERE error_msg like 'CRITICAL %%' diff --git a/adscrawler/mitm_ad_parser/mitm_scrape_ads.py b/adscrawler/mitm_ad_parser/mitm_scrape_ads.py index cce468e8..96862ac3 100644 --- a/adscrawler/mitm_ad_parser/mitm_scrape_ads.py +++ b/adscrawler/mitm_ad_parser/mitm_scrape_ads.py @@ -61,6 +61,9 @@ def find_sent_video_df( def get_video_id(row: pd.Series) -> str: """Extracts video ID from URL based on the ad network domain.""" + if not row["tld_url"]: + # Likely IP address or other non-URL + return "" if "2mdn" in row["tld_url"]: if "/id/" in row["url"]: url_parts = urllib.parse.urlparse(row["url"]) @@ -106,7 +109,6 @@ def attribute_creatives( creatives["video_id"] = creatives.apply(lambda x: get_video_id(x), axis=1) creatives = creatives.drop_duplicates(subset=["video_id", "response_size_bytes"]) row_count = creatives.shape[0] - # For duplicate video_id sent_video_cache = {} parse_results_cache = {} i = 0 @@ -220,6 +222,12 @@ def attribute_creatives( found_ad_network_tlds = list( set([item for sublist in found_ad_network_tlds for item in sublist]) ) + click_url_ids = [ + x["click_url_ids"] for x in found_ad_infos if x["click_url_ids"] is not None + ] + click_url_ids = list( + set([item for sublist in click_url_ids for item in sublist]) + ) try: md5_hash = store_creative_and_thumb_to_local( row, @@ -249,14 +257,21 @@ def attribute_creatives( row["error_msg"] = error_msg error_messages.append(row) continue - init_tlds = [x["init_tld"] for x in found_ad_infos] + init_tlds = list(set([x["init_tld"] for x in found_ad_infos])) if len(init_tlds) == 0: init_tld = None error_msg = "No initial domain found" row["error_msg"] = error_msg error_messages.append(row) + elif len(init_tlds) > 1: + error_msg = "Multiple initial domains found, perhaps log both?" + logger.error(f"{error_msg} for {row['tld_url']} {video_id}") + row["error_msg"] = error_msg + error_messages.append(row) + continue else: init_tld = init_tlds[0] + adv_creatives.append( { "mitm_uuid": row["mitm_uuid"], @@ -264,6 +279,7 @@ def attribute_creatives( "md5_hash": md5_hash, "host_ad_network_tld": host_ad_network_tld, "creative_initial_domain_tld": init_tld, + "click_url_ids": click_url_ids, "adv_store_id": adv_store_id, "advertiser_store_app_id": adv_store_app_id, "mmp_urls": found_mmp_urls, @@ -431,6 +447,7 @@ def make_creative_records_df( "mmp_domain_id", "mmp_urls", "additional_ad_domain_ids", + "click_url_ids", ] ] # Nullable IDs, watch out for Int64 @@ -519,6 +536,7 @@ def parse_store_id_mitm_log( "advertiser_store_app_id", "advertiser_domain_id", "mmp_domain_id", + "click_url_ids", "additional_ad_domain_ids", "mmp_urls", "updated_at", diff --git a/adscrawler/mitm_ad_parser/models.py b/adscrawler/mitm_ad_parser/models.py index 51bafc0d..824ca398 100644 --- a/adscrawler/mitm_ad_parser/models.py +++ b/adscrawler/mitm_ad_parser/models.py @@ -1,7 +1,7 @@ import dataclasses from typing import Any, Self -import tldextract +from adscrawler.mitm_ad_parser.utils import get_tld @dataclasses.dataclass @@ -11,6 +11,7 @@ class AdInfo: init_tld: str | None = None found_ad_network_tlds: list[str] | None = None found_mmp_urls: list[str] | None = None + click_url_ids: list[int] | None = None def __getitem__(self: Self, key: str) -> Any: """Support dictionary-style access to dataclass fields.""" @@ -23,11 +24,7 @@ def __setitem__(self: Self, key: str, value: Any) -> None: @property def mmp_tld(self: Self) -> str | None: if self.found_mmp_urls and len(self.found_mmp_urls) > 0: - return ( - tldextract.extract(self.found_mmp_urls[0]).domain - + "." - + tldextract.extract(self.found_mmp_urls[0]).suffix - ) + return get_tld(self.found_mmp_urls[0]) return None diff --git a/adscrawler/mitm_ad_parser/network_parsers.py b/adscrawler/mitm_ad_parser/network_parsers.py index 28f2c0bd..5d4cd3f4 100644 --- a/adscrawler/mitm_ad_parser/network_parsers.py +++ b/adscrawler/mitm_ad_parser/network_parsers.py @@ -1,5 +1,6 @@ import ast import base64 +import hashlib import html import json import re @@ -23,6 +24,8 @@ query_all_domains, query_api_call_id_for_uuid, query_store_app_by_store_id_cached, + query_urls_by_hashes, + query_urls_hash_map_cached, upsert_df, ) from adscrawler.mitm_ad_parser.models import AdInfo, MultipleAdvertiserIdError @@ -137,6 +140,9 @@ def extract_and_decode_urls(text: str) -> list[str]: urls.append(decoded_url) # print("DECODED:", decoded_url) all_urls = list(set(vast_urls + urls)) + not_urls = [x for x in all_urls if "://" not in x[0:48]] + all_urls = [x for x in all_urls if "://" in x[0:48]] + logger.info(f"Found {len(all_urls)} urls, dropping {len(not_urls)} not urls") return all_urls @@ -225,7 +231,21 @@ def check_and_upsert_new_domains( def upsert_urls(urls: list[str], database_connection: PostgresCon) -> pd.DataFrame: """Upserts the URLs into the database.""" - new_urls_df = pd.DataFrame({"url": urls}) + urls_df = pd.DataFrame({"url": urls}) + url_hash_map = query_urls_hash_map_cached(database_connection=database_connection) + urls_df["url_hash"] = urls_df["url"].apply( + lambda x: hashlib.md5(x.encode()).hexdigest() + ) + new_urls_df = urls_df[ + ~urls_df["url_hash"].isin(url_hash_map["url_hash"].to_list()) + ].copy() + if new_urls_df.empty: + urls_df = urls_df.merge( + url_hash_map[["url_hash", "url_id"]], + on="url_hash", + how="left", + ) + return urls_df http_urls_df = new_urls_df[new_urls_df["url"].str.startswith("http")].copy() nonhttp_urls_df = new_urls_df[~new_urls_df["url"].str.startswith("http")].copy() http_urls_df["tld_url"] = http_urls_df["url"].apply(lambda x: get_tld(x)) @@ -248,17 +268,26 @@ def upsert_urls(urls: list[str], database_connection: PostgresCon) -> pd.DataFra new_urls_df["domain_id"] = np.where( pd.isna(new_urls_df["domain_id"]), None, new_urls_df["domain_id"] ) - urls_df: pd.DataFrame = upsert_df( + new_urls_df["url_hash"] = new_urls_df["url"].apply( + lambda x: hashlib.md5(x.encode()).hexdigest() + ) + logger.info(f"Upserting {new_urls_df.shape[0]} new urls") + new_urls_df: pd.DataFrame = upsert_df( df=new_urls_df, database_connection=database_connection, schema="adtech", table_name="urls", - insert_columns=["url", "domain_id", "scheme"], - key_columns=["url"], - md5_key_columns=["url"], + insert_columns=["url", "url_hash", "domain_id", "scheme"], + key_columns=["url_hash"], return_rows=True, ) - urls_df = urls_df.rename(columns={"id": "url_id"}) + new_urls_df = new_urls_df.rename(columns={"id": "url_id"}) + url_hash_map = pd.concat([url_hash_map, new_urls_df[["url_hash", "url_id"]]]) + urls_df = urls_df.merge( + url_hash_map[["url_hash", "url_id"]], + on="url_hash", + how="left", + ) return urls_df @@ -303,23 +332,27 @@ def follow_url_redirects( """ existing_chain_df = get_click_url_redirect_chains(run_id, database_connection) if not existing_chain_df.empty and url in existing_chain_df["url"].to_list(): - existing_chain_df = existing_chain_df[existing_chain_df["url"] == url] - redirect_chain = existing_chain_df["redirect_url"].to_list() + existing_chain_df = existing_chain_df[ + (existing_chain_df["url"] == url) + & (existing_chain_df["api_call_id"] == api_call_id) + ] + if not existing_chain_df.empty: + redirect_chain = existing_chain_df["redirect_url"].to_list() + return redirect_chain + # New chain, insert after getting the chain + redirect_chain_dict = get_redirect_chain(url) + if len(redirect_chain_dict) > 0: + logger.info(f"Found new click redirects: {len(redirect_chain_dict)}") + chain_df = pd.DataFrame(redirect_chain_dict) + chain_df["run_id"] = run_id + chain_df["api_call_id"] = api_call_id + chain_df["url"] = url + upsert_click_url_redirect_chains(chain_df, database_connection) + redirect_chain = list( + set(chain_df["next_url"].to_list() + chain_df["url"].to_list()) + ) else: - # New chain, insert after getting the chain - redirect_chain_dict = get_redirect_chain(url) - if len(redirect_chain_dict) > 0: - logger.info(f"Found new click redirects: {len(redirect_chain_dict)}") - chain_df = pd.DataFrame(redirect_chain_dict) - chain_df["run_id"] = run_id - chain_df["api_call_id"] = api_call_id - chain_df["url"] = url - upsert_click_url_redirect_chains(chain_df, database_connection) - redirect_chain = list( - set(chain_df["next_url"].to_list() + chain_df["url"].to_list()) - ) - else: - redirect_chain = [] + redirect_chain = [] return redirect_chain @@ -744,6 +777,12 @@ def parse_text_for_adinfo( except MultipleAdvertiserIdError as e: error_msg = f"multiple adv_store_id found for: {e.found_adv_store_ids}" logger.error(error_msg) + if click_urls and len(click_urls) > 0: + click_url_hashes = [hashlib.md5(url.encode()).hexdigest() for url in click_urls] + click_url_ids = query_urls_by_hashes(click_url_hashes, database_connection)[ + "url_id" + ].tolist() + ad_info.click_url_ids = click_url_ids return ad_info, error_msg From 29c44c243f534582cd9796a27aa0dd64a57aa8d3 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Tue, 11 Nov 2025 12:50:20 +0800 Subject: [PATCH 06/81] store click urls into creative records table --- adscrawler/dbcon/queries.py | 19 +++++++++++++++---- adscrawler/mitm_ad_parser/mitm_scrape_ads.py | 2 +- adscrawler/mitm_ad_parser/network_parsers.py | 9 +++++---- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/adscrawler/dbcon/queries.py b/adscrawler/dbcon/queries.py index 39c77c0f..185e448f 100644 --- a/adscrawler/dbcon/queries.py +++ b/adscrawler/dbcon/queries.py @@ -7,7 +7,7 @@ import pandas as pd from psycopg import Connection from psycopg.sql import SQL, Composed, Identifier -from sqlalchemy import text +from sqlalchemy import bindparam, text from sqlalchemy.sql.elements import TextClause from adscrawler.config import CONFIG, SQL_DIR, get_logger @@ -887,12 +887,23 @@ def query_urls_hash_map_cached(database_connection: PostgresCon) -> pd.DataFrame return df -@lru_cache(maxsize=1000) def query_urls_by_hashes( hashes: list[str], database_connection: PostgresCon ) -> pd.DataFrame: - sel_query = """SELECT id, url_hash FROM adtech.urls WHERE url_hash IN (%s)""" - df = pd.read_sql(sel_query, database_connection.engine, params=(hashes)) + hashes_tuple = tuple(hashes) + if not hashes_tuple: + return pd.DataFrame(columns=["id", "url_hash"]) + return _query_urls_by_hashes_cached(hashes_tuple, database_connection) + + +@lru_cache(maxsize=1000) +def _query_urls_by_hashes_cached( + hashes: tuple[str, ...], database_connection: PostgresCon +) -> pd.DataFrame: + sel_query = text( + """SELECT id, url_hash FROM adtech.urls WHERE url_hash IN :hashes""" + ).bindparams(bindparam("hashes", expanding=True)) + df = pd.read_sql(sel_query, database_connection.engine, params={"hashes": hashes}) return df diff --git a/adscrawler/mitm_ad_parser/mitm_scrape_ads.py b/adscrawler/mitm_ad_parser/mitm_scrape_ads.py index 96862ac3..76f7f033 100644 --- a/adscrawler/mitm_ad_parser/mitm_scrape_ads.py +++ b/adscrawler/mitm_ad_parser/mitm_scrape_ads.py @@ -163,6 +163,7 @@ def attribute_creatives( found_ad_infos, found_error_messages = parse_sent_video_df( row, pub_store_id, sent_video_df, database_connection, video_id ) + sent_video_cache[video_id] = sent_video_df parse_results_cache[video_id] = (found_ad_infos, found_error_messages) for found_error_message in found_error_messages: @@ -271,7 +272,6 @@ def attribute_creatives( continue else: init_tld = init_tlds[0] - adv_creatives.append( { "mitm_uuid": row["mitm_uuid"], diff --git a/adscrawler/mitm_ad_parser/network_parsers.py b/adscrawler/mitm_ad_parser/network_parsers.py index 5d4cd3f4..c08bfd4f 100644 --- a/adscrawler/mitm_ad_parser/network_parsers.py +++ b/adscrawler/mitm_ad_parser/network_parsers.py @@ -779,10 +779,11 @@ def parse_text_for_adinfo( logger.error(error_msg) if click_urls and len(click_urls) > 0: click_url_hashes = [hashlib.md5(url.encode()).hexdigest() for url in click_urls] - click_url_ids = query_urls_by_hashes(click_url_hashes, database_connection)[ - "url_id" - ].tolist() - ad_info.click_url_ids = click_url_ids + cdf = query_urls_by_hashes(click_url_hashes, database_connection) + if not cdf.empty: + ad_info.click_url_ids = cdf["id"].tolist() + else: + logger.error("Click URLs found but no URL IDs in DB") return ad_info, error_msg From 8bab6ac42ba752da045b842f27ee2a8230009a6e Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Tue, 11 Nov 2025 15:18:15 +0800 Subject: [PATCH 07/81] dont fail if url missing path --- adscrawler/app_stores/process_keywords.py | 5 +++++ adscrawler/mitm_ad_parser/network_parsers.py | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/adscrawler/app_stores/process_keywords.py b/adscrawler/app_stores/process_keywords.py index e0ba684a..175e4e14 100644 --- a/adscrawler/app_stores/process_keywords.py +++ b/adscrawler/app_stores/process_keywords.py @@ -234,6 +234,11 @@ def get_global_keywords(database_connection: PostgresCon) -> list[str]: """ from nltk.corpus import stopwords + import spacy + + nlp = spacy.load("en_core_web_sm") + spacy_stopwords = nlp.Defaults.stop_words + mystopwords = set(stopwords.words("english")).union(CUSTOM_STOPWORDS) df = query_all_store_app_descriptions( language_slug="en", database_connection=database_connection diff --git a/adscrawler/mitm_ad_parser/network_parsers.py b/adscrawler/mitm_ad_parser/network_parsers.py index c08bfd4f..a8fc4782 100644 --- a/adscrawler/mitm_ad_parser/network_parsers.py +++ b/adscrawler/mitm_ad_parser/network_parsers.py @@ -170,7 +170,7 @@ def check_click_urls( click_urls = [] for url in all_urls: redirect_urls = [] - if "/click" in url or "/clk" in url: + if "/click" in url or "/clk" in url or "onelink.me" in url: if "tpbid.com" in url: url = url.replace("fybernativebrowser://navigate?url=", "") redirect_urls = follow_url_redirects( @@ -328,7 +328,7 @@ def follow_url_redirects( """ Follows redirects and returns the final URL. - Cache the results to avoid repeated requests. + Cache the results in the database to avoid repeated requests. """ existing_chain_df = get_click_url_redirect_chains(run_id, database_connection) if not existing_chain_df.empty and url in existing_chain_df["url"].to_list(): @@ -410,10 +410,11 @@ def parse_urls_for_known_parts( if "websdk.appsflyer.com" in url: continue if "appsflyer.com" in tld_url: - adv_store_id = re.search( + matches = re.search( r"http.*\.appsflyer\.com/([a-zA-Z0-9_.]+)[\?\-]", url - )[1] - if adv_store_id: + ) + if matches and matches.group(1): + adv_store_id = matches.group(1) found_adv_store_ids.append(adv_store_id) elif match := re.search(r"intent://details\?id=([a-zA-Z0-9._]+)", url): adv_store_id = match.group(1) From 5e6d135526d54f5c900dc9f6a16209b51dd975fa Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Tue, 11 Nov 2025 15:28:39 +0800 Subject: [PATCH 08/81] Small additions for stopwords, didnt rerun --- adscrawler/app_stores/process_keywords.py | 34 +++++++++++++++-------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/adscrawler/app_stores/process_keywords.py b/adscrawler/app_stores/process_keywords.py index 175e4e14..f2da2841 100644 --- a/adscrawler/app_stores/process_keywords.py +++ b/adscrawler/app_stores/process_keywords.py @@ -36,8 +36,14 @@ "we", "application", "one", + "ones", + "dont", + "us", + "takes", + "take", "them", "use", + "uses", "need", "get", "who", @@ -169,12 +175,24 @@ def extract_keywords_nltk(text: str, top_n: int = 10) -> list[str]: return [word for word, freq in word_freq.most_common(top_n)] +def get_stopwords() -> set[str]: + """Get the stopwords from NLTK and spaCy.""" + from nltk.corpus import stopwords + import spacy + + nlp = spacy.load("en_core_web_sm") + spacy_stopwords = nlp.Defaults.stop_words + mystopwords = ( + set(stopwords.words("english")).union(CUSTOM_STOPWORDS).union(spacy_stopwords) + ) + return list(mystopwords) + + def extract_keywords_rake(text: str, top_n: int = 10, max_tokens: int = 3) -> list[str]: """Extracts keywords using RAKE with token limit.""" - from nltk.corpus import stopwords from rake_nltk import Rake - mystopwords = set(stopwords.words("english")).union(CUSTOM_STOPWORDS) + mystopwords = get_stopwords() r = Rake() r.extract_keywords_from_text(text) @@ -196,9 +214,8 @@ def extract_unique_app_keywords_from_text( max_tokens: int = 1, ) -> list[str]: """Extracts keywords using spaCy, NLTK, and RAKE, then returns a unique set.""" - from nltk.corpus import stopwords - mystopwords = set(stopwords.words("english")).union(CUSTOM_STOPWORDS) + mystopwords = get_stopwords() text = clean_text(text) words_spacy = extract_keywords_spacy(text, top_n, max_tokens) @@ -232,22 +249,17 @@ def get_global_keywords(database_connection: PostgresCon) -> list[str]: """Get the global keywords from the database. NOTE: This takes about ~5-8GB of RAM for 50k keywords and 200k descriptions. For now run manually. """ - from nltk.corpus import stopwords - import spacy + from sklearn.feature_extraction.text import TfidfVectorizer # noqa: PLC0415 - nlp = spacy.load("en_core_web_sm") - spacy_stopwords = nlp.Defaults.stop_words + mystopwords = get_stopwords() - mystopwords = set(stopwords.words("english")).union(CUSTOM_STOPWORDS) df = query_all_store_app_descriptions( language_slug="en", database_connection=database_connection ) df = clean_df_text(df, "description") - from sklearn.feature_extraction.text import TfidfVectorizer # noqa: PLC0415 - vectorizer = TfidfVectorizer( ngram_range=(1, 2), # Include 1-grams, 2-grams stop_words=list(mystopwords), From f6e5092e203247b753f4aa00da6bca3ca2b7cc3f Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Thu, 13 Nov 2025 10:11:48 +0800 Subject: [PATCH 09/81] clean waydroid media dir for leftover files --- adscrawler/packages/apks/waydroid.py | 1 + 1 file changed, 1 insertion(+) diff --git a/adscrawler/packages/apks/waydroid.py b/adscrawler/packages/apks/waydroid.py index 5450fc48..0f7afa75 100644 --- a/adscrawler/packages/apks/waydroid.py +++ b/adscrawler/packages/apks/waydroid.py @@ -451,6 +451,7 @@ def remove_all_third_party_apps() -> None: timeout=30, ) logger.info(f"{function_info} success") + os.system(f"sudo bash -c 'rm -rf {WAYDROID_MEDIA_DIR}/*'") THIRD_PARTY_APPS_TO_KEEP = ["org.mozilla.firefox", "io.github.huskydg.magisk"] From 9096ba8be0f60c9475e5f838fd82d44c1a1f9e41 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Thu, 13 Nov 2025 15:28:31 +0800 Subject: [PATCH 10/81] Fix keyword crawling --- adscrawler/app_stores/scrape_stores.py | 36 ------------------- .../dbcon/sql/query_keywords_to_crawl.sql | 8 +++-- 2 files changed, 5 insertions(+), 39 deletions(-) diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index cb3741fb..5db2f4c9 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -260,7 +260,6 @@ def scrape_store_ranks(database_connection: PostgresCon, store: int) -> None: crawl_source="scrape_frontpage_top", collections_map=collections_map, categories_map=categories_map, - countries_map=countries_map, store=1, ) except Exception as e: @@ -329,7 +328,6 @@ def process_scraped( crawl_source: str, collections_map: pd.DataFrame | None = None, categories_map: pd.DataFrame | None = None, - countries_map: pd.DataFrame | None = None, store: int | None = None, ) -> None: check_and_insert_new_apps( @@ -346,7 +344,6 @@ def process_scraped( store, collections_map, categories_map, - countries_map, ) @@ -356,7 +353,6 @@ def save_app_ranks( store: int | None, collections_map: pd.DataFrame | None = None, categories_map: pd.DataFrame | None = None, - countries_map: pd.DataFrame | None = None, ) -> None: all_scraped_ids = df["store_id"].unique().tolist() new_existing_ids_map = query_store_id_map( @@ -376,38 +372,6 @@ def save_app_ranks( store=store, df=df, ) - if "keyword" in df.columns: - df = df.drop("store_id", axis=1) - df = ( - pd.merge( - df, - countries_map[["id", "alpha2"]], - how="left", - left_on=["country"], - right_on="alpha2", - validate="m:1", - ) - .drop(["country", "alpha2"], axis=1) - .rename(columns={"id": "country"}) - ) - process_keyword_rankings( - df=df, - database_connection=database_connection, - ) - - -def process_keyword_rankings( - df: pd.DataFrame, - database_connection: PostgresCon, -) -> None: - upsert_df( - database_connection=database_connection, - df=df, - table_name="app_keyword_rankings", - key_columns=["crawled_date", "country", "lang", "keyword", "rank", "store_app"], - insert_columns=[], - ) - logger.info("keyword rankings inserted") def extract_domains(x: str) -> str: diff --git a/adscrawler/dbcon/sql/query_keywords_to_crawl.sql b/adscrawler/dbcon/sql/query_keywords_to_crawl.sql index ba6de3ad..8bf8171a 100644 --- a/adscrawler/dbcon/sql/query_keywords_to_crawl.sql +++ b/adscrawler/dbcon/sql/query_keywords_to_crawl.sql @@ -1,7 +1,9 @@ WITH rank_crawled_keywords AS ( - SELECT DISTINCT akr.keyword + SELECT DISTINCT + akr.store, + akr.keyword_id FROM - app_keyword_rankings AS akr + frontend.app_keyword_ranks_daily AS akr WHERE akr.crawled_date > CURRENT_DATE - INTERVAL '7 days' ), @@ -23,7 +25,7 @@ FROM frontend.keyword_scores WHERE keyword_id NOT IN ( - SELECT rck.keyword + SELECT rck.keyword_id FROM rank_crawled_keywords AS rck ) From ebdc17451801d24ad3bb710f2184e2744a92363f Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Fri, 14 Nov 2025 11:28:40 +0800 Subject: [PATCH 11/81] backoff for keyword failures --- adscrawler/app_stores/scrape_stores.py | 34 +++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index 5db2f4c9..b978b5e6 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -292,8 +292,23 @@ def scrape_keyword( keyword: str, ) -> pd.DataFrame: logger.info(f"{keyword=} start") + retry_delay = 0.5 + retry_delays = (0, retry_delay, 1.0) try: - google_apps = search_play_store(keyword, country=country, language=language) + google_apps = None + last_google_error = None + for delay in retry_delays: + try: + if delay: + time.sleep(delay) + google_apps = search_play_store( + keyword, country=country, language=language + ) + break + except Exception as exc: + last_google_error = exc + if google_apps is None and last_google_error is not None: + raise last_google_error gdf = pd.DataFrame(google_apps) gdf["store"] = 1 gdf["rank"] = range(1, len(gdf) + 1) @@ -301,9 +316,20 @@ def scrape_keyword( gdf = pd.DataFrame() logger.exception(f"{keyword=} google failed") try: - apple_apps = search_app_store_for_ids( - keyword, country=country, language=language - ) + apple_apps = None + last_apple_error = None + for delay in retry_delays: + try: + if delay: + time.sleep(delay) + apple_apps = search_app_store_for_ids( + keyword, country=country, language=language + ) + break + except Exception as exc: + last_apple_error = exc + if apple_apps is None and last_apple_error is not None: + raise last_apple_error adf = pd.DataFrame( { "store": 2, From 90301bf6527bc2f325319eb22d313fbe85a34e29 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Fri, 14 Nov 2025 22:52:41 +0800 Subject: [PATCH 12/81] Fix null values in apple developer columns causing incorrect developer ids --- adscrawler/app_stores/apple.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/adscrawler/app_stores/apple.py b/adscrawler/app_stores/apple.py index 76fe77e9..959eccec 100644 --- a/adscrawler/app_stores/apple.py +++ b/adscrawler/app_stores/apple.py @@ -477,6 +477,16 @@ def clean_ios_app_df(df: pd.DataFrame) -> pd.DataFrame: df.loc[ df["store_language_code"].str.startswith("zh-"), "store_language_code" ] = "zh" + # Fix .0 int to string issues + # Mixing nulls in and ints cause .0 to be added to the end of the string + problem_rows = df["developer_id"].str.contains(".0") + if problem_rows.any(): + logger.warning( + f'Found {problem_rows.sum()} developer_id with ".0" suffix, fixing' + ) + df.loc[problem_rows, "developer_id"] = ( + df.loc[problem_rows, "developer_id"].str.split(".").str[0] + ) return df From 62c36aac7aa2e22249f1184f7310e120152be93f Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sun, 16 Nov 2025 09:02:49 +0800 Subject: [PATCH 13/81] Remove unused countries map --- adscrawler/app_stores/scrape_stores.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index b978b5e6..73fdecfc 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -222,7 +222,6 @@ def crawl_keyword_ranks(database_connection: PostgresCon) -> None: def scrape_store_ranks(database_connection: PostgresCon, store: int) -> None: collections_map = query_collections(database_connection) categories_map = query_categories(database_connection) - countries_map = query_countries(database_connection) collections_map = collections_map.rename(columns={"id": "store_collection"}) categories_map = categories_map.rename(columns={"id": "store_category"}) ranks_country_list = get_crawl_scenario_countries( @@ -242,7 +241,6 @@ def scrape_store_ranks(database_connection: PostgresCon, store: int) -> None: crawl_source="scrape_frontpage_top", collections_map=collections_map, categories_map=categories_map, - countries_map=countries_map, store=2, ) except Exception as e: From 3ba76153ddad1dabbc9d36b88d8bfa3ce0d4bb87 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sun, 16 Nov 2025 09:28:32 +0800 Subject: [PATCH 14/81] RotatingLogHandler inconsistently rotates files if multiple processes, removed --- adscrawler/config.py | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/adscrawler/config.py b/adscrawler/config.py index 1b2a5001..c3d9fb91 100644 --- a/adscrawler/config.py +++ b/adscrawler/config.py @@ -1,4 +1,5 @@ import logging +import logging.handlers import os import pathlib import sys @@ -6,7 +7,6 @@ import traceback import typing from logging import Formatter -from logging.handlers import RotatingFileHandler HOME = pathlib.Path.home() PROJECT_NAME = "adscrawler" @@ -135,6 +135,22 @@ def check_dirs() -> None: global_loggers: dict[str, logging.Logger] = {} +def _truncate_oversized_log(log_file: str, max_size: int) -> None: + """Check log file size on startup and truncate if too large""" + if not os.path.exists(log_file): + return + size = os.path.getsize(log_file) + if size > max_size: + keep_size = int(max_size * 0.2) + with open(log_file, "rb") as f: + f.seek(-keep_size, os.SEEK_END) + f.readline() # Skip to next newline + content = f.read() + with open(log_file, "wb") as f: + warning = b"\n=== LOG TRUNCATED ON STARTUP (exceeded size limit) ===\n\n" + f.write(warning + content) + + def get_logger(mod_name: str, sep_file: str | None = "main") -> logging.Logger: global global_loggers # noqa: PLW0602 @@ -157,11 +173,12 @@ def get_logger(mod_name: str, sep_file: str | None = "main") -> logging.Logger: syslog_handler.ident = f"{sep_file}: " logger.addHandler(syslog_handler) - # Add fallback log file, but struggles in multi-process environments - indiv_handler = RotatingFileHandler( + _truncate_oversized_log( + os.path.join(LOG_DIR, f"{sep_file}.log"), 500 * 1024 * 1024 + ) # 500MB + + indiv_handler = logging.handlers.WatchedFileHandler( filename=os.path.join(LOG_DIR, f"{sep_file}.log"), - maxBytes=50 * 1024 * 1024, - backupCount=10, ) indiv_handler.setFormatter(FORMATTER) logger.addHandler(indiv_handler) From 10132e7088487de3fdd337de66f4445793a6fa70 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sun, 16 Nov 2025 10:11:35 +0800 Subject: [PATCH 15/81] Clarify search for keywords --- adscrawler/app_stores/apple.py | 2 +- adscrawler/app_stores/google.py | 2 +- adscrawler/app_stores/scrape_stores.py | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/adscrawler/app_stores/apple.py b/adscrawler/app_stores/apple.py index 959eccec..2fda3e22 100644 --- a/adscrawler/app_stores/apple.py +++ b/adscrawler/app_stores/apple.py @@ -490,7 +490,7 @@ def clean_ios_app_df(df: pd.DataFrame) -> pd.DataFrame: return df -def search_app_store_for_ids( +def keyword_search_app_store_for_ids( search_term: str, country: str = "us", language: str = "en" ) -> list[str]: """Search store for new apps or keyword rankings.""" diff --git a/adscrawler/app_stores/google.py b/adscrawler/app_stores/google.py index 2ad516b0..c82eb827 100644 --- a/adscrawler/app_stores/google.py +++ b/adscrawler/app_stores/google.py @@ -210,7 +210,7 @@ def crawl_google_developers( return apps_df -def search_play_store( +def keyword_search_play_store( search_term: str, country: str = "us", language: str = "en" ) -> list[dict]: """Search store for new apps or keyword rankings.""" diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index 73fdecfc..19160a7f 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -19,16 +19,16 @@ from adscrawler.app_stores.apple import ( clean_ios_app_df, crawl_ios_developers, + keyword_search_app_store_for_ids, scrape_app_ios, scrape_ios_ranks, - search_app_store_for_ids, ) from adscrawler.app_stores.google import ( clean_google_play_app_df, crawl_google_developers, + keyword_search_play_store, scrape_app_gp, scrape_google_ranks, - search_play_store, ) from adscrawler.app_stores.process_from_s3 import ( app_details_to_s3, @@ -299,7 +299,7 @@ def scrape_keyword( try: if delay: time.sleep(delay) - google_apps = search_play_store( + google_apps = keyword_search_play_store( keyword, country=country, language=language ) break @@ -320,7 +320,7 @@ def scrape_keyword( try: if delay: time.sleep(delay) - apple_apps = search_app_store_for_ids( + apple_apps = keyword_search_app_store_for_ids( keyword, country=country, language=language ) break From 2ba0f09108e770711973f650b3d843c5e0f42007 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sun, 16 Nov 2025 10:19:24 +0800 Subject: [PATCH 16/81] Add icon_url_100 to result to avoid needing to pass original df to processing --- adscrawler/app_stores/scrape_stores.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index 19160a7f..82ce611c 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -85,6 +85,8 @@ def process_chunk( country=row["country_code"].lower(), language=row["language"].lower(), ) + if process_icon: + result["icon_url_100"] = row.get("icon_url_100", None) chunk_results.append(result) except Exception as e: logger.exception( @@ -103,7 +105,6 @@ def process_chunk( results_df=results_df, database_connection=database_connection, process_icon=process_icon, - df_chunk=df_chunk, ) logger.info(f"{chunk_info} finished") finally: @@ -698,7 +699,6 @@ def process_live_app_details( results_df: pd.DataFrame, database_connection: PostgresCon, process_icon: bool, - df_chunk: pd.DataFrame, ) -> None: for crawl_result, apps_df in results_df.groupby("crawl_result"): logger.info(f"{store=} {crawl_result=} processing {len(apps_df)} apps for db") @@ -712,12 +712,6 @@ def process_live_app_details( apps_df.loc[apps_df["description_short"].isna(), "description_short"] = "" if process_icon: try: - apps_df = pd.merge( - apps_df, - df_chunk[["store_id", "icon_url_100"]], - on="store_id", - how="inner", - ) no_icon = apps_df["icon_url_100"].isna() if apps_df[no_icon].empty: pass From a2c4064cd99ddfefe23a743ac869aca5b6ec0312 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sun, 16 Nov 2025 10:31:39 +0800 Subject: [PATCH 17/81] Undo rename, function used by frontned --- adscrawler/app_stores/apple.py | 2 +- adscrawler/app_stores/google.py | 2 +- adscrawler/app_stores/scrape_stores.py | 32 +++++++++++++++++++------- 3 files changed, 26 insertions(+), 10 deletions(-) diff --git a/adscrawler/app_stores/apple.py b/adscrawler/app_stores/apple.py index 2fda3e22..959eccec 100644 --- a/adscrawler/app_stores/apple.py +++ b/adscrawler/app_stores/apple.py @@ -490,7 +490,7 @@ def clean_ios_app_df(df: pd.DataFrame) -> pd.DataFrame: return df -def keyword_search_app_store_for_ids( +def search_app_store_for_ids( search_term: str, country: str = "us", language: str = "en" ) -> list[str]: """Search store for new apps or keyword rankings.""" diff --git a/adscrawler/app_stores/google.py b/adscrawler/app_stores/google.py index c82eb827..2ad516b0 100644 --- a/adscrawler/app_stores/google.py +++ b/adscrawler/app_stores/google.py @@ -210,7 +210,7 @@ def crawl_google_developers( return apps_df -def keyword_search_play_store( +def search_play_store( search_term: str, country: str = "us", language: str = "en" ) -> list[dict]: """Search store for new apps or keyword rankings.""" diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index 82ce611c..cc193366 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -19,16 +19,16 @@ from adscrawler.app_stores.apple import ( clean_ios_app_df, crawl_ios_developers, - keyword_search_app_store_for_ids, scrape_app_ios, scrape_ios_ranks, + search_app_store_for_ids, ) from adscrawler.app_stores.google import ( clean_google_play_app_df, crawl_google_developers, - keyword_search_play_store, scrape_app_gp, scrape_google_ranks, + search_play_store, ) from adscrawler.app_stores.process_from_s3 import ( app_details_to_s3, @@ -65,16 +65,26 @@ logger = get_logger(__name__, "scrape_stores") -def process_chunk( +def process_scrape_apps_and_save( df_chunk: pd.DataFrame, store: int, use_ssh_tunnel: bool, process_icon: bool, - total_rows: int, + total_rows: int | None = None, ) -> None: + """Process a chunk of apps, scrape app, store to S3 and if coutnry === US store app details to db store_apps table. + s + Args: + df_chunk: DataFrame of apps to process, needs to have columns: store_id, country_code, language, icon_url_100 + store: Store ID + use_ssh_tunnel: Whether to use SSH tunnel + process_icon: Whether to process app icons + total_rows: Total number of apps in the chunk, if None, will be calculated from df_chunk + """ + if total_rows is None: + total_rows = len(df_chunk) chunk_info = f"{store=} chunk={df_chunk.index[0]}-{df_chunk.index[-1]}/{total_rows}" logger.info(f"{chunk_info} start") - database_connection = get_db_connection(use_ssh_tunnel=use_ssh_tunnel) chunk_results = [] try: for _, row in df_chunk.iterrows(): @@ -98,6 +108,7 @@ def process_chunk( results_df = pd.DataFrame(chunk_results) results_df["crawled_date"] = results_df["crawled_at"].dt.date app_details_to_s3(results_df, store=store) + database_connection = get_db_connection(use_ssh_tunnel=use_ssh_tunnel) log_crawl_results(results_df, store, database_connection=database_connection) results_df = results_df[(results_df["country"] == "US")] process_live_app_details( @@ -160,7 +171,12 @@ def update_app_details( future_to_idx = {} for idx, df_chunk in enumerate(chunks): future = executor.submit( - process_chunk, df_chunk, store, use_ssh_tunnel, process_icon, total_rows + process_scrape_apps_and_save, + df_chunk, + store, + use_ssh_tunnel, + process_icon, + total_rows, ) future_to_idx[future] = idx # Only stagger the initial batch to avoid simultaneous API burst @@ -300,7 +316,7 @@ def scrape_keyword( try: if delay: time.sleep(delay) - google_apps = keyword_search_play_store( + google_apps = search_play_store( keyword, country=country, language=language ) break @@ -321,7 +337,7 @@ def scrape_keyword( try: if delay: time.sleep(delay) - apple_apps = keyword_search_app_store_for_ids( + apple_apps = search_app_store_for_ids( keyword, country=country, language=language ) break From 7d9586b310ca6f7cfad30459571a4423cf3eef58 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sun, 16 Nov 2025 10:34:16 +0800 Subject: [PATCH 18/81] Clarify variable store should not be none --- adscrawler/app_stores/scrape_stores.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index cc193366..7b4f6382 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -367,9 +367,9 @@ def process_scraped( database_connection: PostgresCon, ranked_dicts: list[dict], crawl_source: str, + store: int, collections_map: pd.DataFrame | None = None, categories_map: pd.DataFrame | None = None, - store: int | None = None, ) -> None: check_and_insert_new_apps( database_connection=database_connection, @@ -391,7 +391,7 @@ def process_scraped( def save_app_ranks( df: pd.DataFrame, database_connection: PostgresCon, - store: int | None, + store: int, collections_map: pd.DataFrame | None = None, categories_map: pd.DataFrame | None = None, ) -> None: From a9f0c6b266071fd72e7306d734445f8a48813f18 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sun, 16 Nov 2025 10:45:52 +0800 Subject: [PATCH 19/81] Clarify variable store should not be none --- adscrawler/app_stores/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/adscrawler/app_stores/utils.py b/adscrawler/app_stores/utils.py index f50cfa92..04357aec 100644 --- a/adscrawler/app_stores/utils.py +++ b/adscrawler/app_stores/utils.py @@ -25,7 +25,10 @@ def truncate_utf8_bytes(s: str, max_bytes: int = 2400) -> str: def check_and_insert_new_apps( - dicts: list[dict], database_connection: PostgresCon, crawl_source: str, store: int + dicts: list[dict], + database_connection: PostgresCon, + crawl_source: str, + store: int, ) -> None: df = pd.DataFrame(dicts) if store in [1, 2]: @@ -72,3 +75,4 @@ def check_and_insert_new_apps( database_connection=database_connection, schema="logging", ) + return None From 777a2950204a39772b5f3bc3ebd8cb93f46938b6 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sun, 16 Nov 2025 11:21:11 +0800 Subject: [PATCH 20/81] Add group to constantly process new apps rather than wait for long running groups of chunks to finish --- adscrawler/app_stores/scrape_stores.py | 4 +++- adscrawler/dbcon/queries.py | 11 +++++++---- .../dbcon/sql/query_apps_to_update_any_new.sql | 15 +++++++++++++++ adscrawler/packages/utils.py | 2 +- 4 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 adscrawler/dbcon/sql/query_apps_to_update_any_new.sql diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index 7b4f6382..72337dad 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -85,6 +85,7 @@ def process_scrape_apps_and_save( total_rows = len(df_chunk) chunk_info = f"{store=} chunk={df_chunk.index[0]}-{df_chunk.index[-1]}/{total_rows}" logger.info(f"{chunk_info} start") + database_connection = get_db_connection(use_ssh_tunnel=use_ssh_tunnel) chunk_results = [] try: for _, row in df_chunk.iterrows(): @@ -108,7 +109,6 @@ def process_scrape_apps_and_save( results_df = pd.DataFrame(chunk_results) results_df["crawled_date"] = results_df["crawled_at"].dt.date app_details_to_s3(results_df, store=store) - database_connection = get_db_connection(use_ssh_tunnel=use_ssh_tunnel) log_crawl_results(results_df, store, database_connection=database_connection) results_df = results_df[(results_df["country"] == "US")] process_live_app_details( @@ -634,6 +634,8 @@ def scrape_app( base_delay = 0.5 retries = 0 logger.debug(f"{scrape_info} scrape start") + # Satisfy mypy + crawl_result = 0 while retries <= max_retries: retries += 1 try: diff --git a/adscrawler/dbcon/queries.py b/adscrawler/dbcon/queries.py index 185e448f..57e3096c 100644 --- a/adscrawler/dbcon/queries.py +++ b/adscrawler/dbcon/queries.py @@ -25,6 +25,7 @@ def load_sql_file(file_name: str) -> TextClause: QUERY_APPS_TO_UPDATE_SECONDARY = load_sql_file("query_apps_to_update_secondary.sql") QUERY_APPS_TO_UPDATE_PRIMARY = load_sql_file("query_apps_to_update_primary.sql") +QUERY_APPS_TO_UPDATE_ANY_NEW = load_sql_file("query_apps_to_update_any_new.sql") QUERY_APPS_TO_DOWNLOAD = load_sql_file("query_apps_to_download.sql") QUERY_APPS_TO_SDK_SCAN = load_sql_file("query_apps_to_sdk_scan.sql") QUERY_APPS_TO_API_SCAN = load_sql_file("query_apps_to_api_scan.sql") @@ -1015,10 +1016,12 @@ def query_store_apps_to_update( "year_ago_ts": year_ago_ts, "mylimit": limit, } - if country_priority_group == 1: - query = QUERY_APPS_TO_UPDATE_PRIMARY - else: - query = QUERY_APPS_TO_UPDATE_SECONDARY + country_priority_group_query = { + -1: QUERY_APPS_TO_UPDATE_ANY_NEW, + 1: QUERY_APPS_TO_UPDATE_PRIMARY, + 2: QUERY_APPS_TO_UPDATE_SECONDARY, + } + query = country_priority_group_query[country_priority_group] if log_query: # Compile and print the query with parameters diff --git a/adscrawler/dbcon/sql/query_apps_to_update_any_new.sql b/adscrawler/dbcon/sql/query_apps_to_update_any_new.sql new file mode 100644 index 00000000..fa004f65 --- /dev/null +++ b/adscrawler/dbcon/sql/query_apps_to_update_any_new.sql @@ -0,0 +1,15 @@ +SELECT + sa.store, + sa.id AS store_app, + sa.store_id, + 'US' AS country_code, + sa.icon_url_100, + sa.additional_html_scraped_at, + sa.updated_at AS app_updated_at +FROM + public.store_apps AS sa +WHERE + sa.store = :store + -- Always crawl new apps + AND sa.crawl_result IS NULL +LIMIT :mylimit; diff --git a/adscrawler/packages/utils.py b/adscrawler/packages/utils.py index 202d6f5b..ee6ac7cb 100644 --- a/adscrawler/packages/utils.py +++ b/adscrawler/packages/utils.py @@ -87,7 +87,7 @@ def unzip_apk(store_id: str, file_path: pathlib.Path) -> pathlib.Path: ) if "filename not matched" in output.stderr: unzip_command = f"unzip -o {file_path.as_posix()} base.apk -d {partial_apk_dir.as_posix()}" - output = subprocess.run( + _output = subprocess.run( unzip_command, shell=True, check=True, capture_output=True, timeout=60 ) base_apk_path = pathlib.Path(partial_apk_dir, "base.apk") From 67ef812c505aa241a7dd9c6577918bc8f436685e Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sun, 16 Nov 2025 11:36:34 +0800 Subject: [PATCH 21/81] Better log messages when querying ranks --- adscrawler/app_stores/google.py | 6 +++--- adscrawler/app_stores/scrape_stores.py | 27 ++++++++++++++++---------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/adscrawler/app_stores/google.py b/adscrawler/app_stores/google.py index 2ad516b0..eb24389d 100644 --- a/adscrawler/app_stores/google.py +++ b/adscrawler/app_stores/google.py @@ -161,14 +161,14 @@ def get_js_data(filepath: str, is_json: bool = True) -> list[dict] | list: def scrape_google_ranks(country: str) -> list[dict]: - logger.info("Scrape Google ranks start") + logger.info(f"Scrape Google ranks {country=} start") filepath = f"/tmp/googleplay_json_{country}.txt" try: call_js_to_update_file(filepath, country) except Exception as error: - logger.exception(f"JS pull failed with {error=}") + logger.exception(f"JS pull failed with {country=} {error=}") ranked_dicts = get_js_data(filepath) - logger.info(f"Scrape Google ranks finished: {len(ranked_dicts)}") + logger.info(f"Scrape Google ranks {country=} finished: {len(ranked_dicts)}") return ranked_dicts diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index 72337dad..61b380f1 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -262,23 +262,30 @@ def scrape_store_ranks(database_connection: PostgresCon, store: int) -> None: ) except Exception as e: logger.exception( - f"Srape iOS collection={collection_keyword} hit error={e}, skipping", + f"Srape iOS collection={collection_keyword} {country=} hit error={e}, skipping", ) if store == 1: for country in country_codes: try: ranked_dicts = scrape_google_ranks(country=country) - process_scraped( - database_connection=database_connection, - ranked_dicts=ranked_dicts, - crawl_source="scrape_frontpage_top", - collections_map=collections_map, - categories_map=categories_map, - store=1, - ) + if len(ranked_dicts) > 0: + process_scraped( + database_connection=database_connection, + ranked_dicts=ranked_dicts, + crawl_source="scrape_frontpage_top", + collections_map=collections_map, + categories_map=categories_map, + store=1, + ) + else: + logger.warning( + f"Scrape google ranks {country=} produced no results, skipping" + ) except Exception as e: - logger.exception(f"Scrape google ranks hit error={e}, skipping") + logger.exception( + f"Scrape google ranks {country=} hit error={e}, skipping" + ) try: dicts = get_apkcombo_android_apps() process_scraped( From 4fd3d6631964cd88c1490a831466322e34e12c90 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Mon, 24 Nov 2025 10:07:38 +0800 Subject: [PATCH 22/81] Refresh schema --- adscrawler/app_stores/scrape_stores.py | 5 +- pg-ddl/schema/adtech/api_call_urls.sql | 4 +- pg-ddl/schema/adtech/categories.sql | 4 +- ...combined_store_apps_companies__matview.sql | 4 +- ...d_store_apps_parent_companies__matview.sql | 4 +- pg-ddl/schema/adtech/companies.sql | 4 +- .../adtech/company_categories__matview.sql | 4 +- pg-ddl/schema/adtech/company_developers.sql | 4 +- .../schema/adtech/company_domain_mapping.sql | 4 +- .../adtech/company_sdk_strings__matview.sql | 4 +- pg-ddl/schema/adtech/sdk_categories.sql | 4 +- pg-ddl/schema/adtech/sdk_packages.sql | 4 +- pg-ddl/schema/adtech/sdk_paths.sql | 4 +- pg-ddl/schema/adtech/sdks.sql | 4 +- .../adtech/store_app_sdk_strings__matview.sql | 4 +- pg-ddl/schema/adtech/url_redirect_chains.sql | 4 +- pg-ddl/schema/adtech/urls.sql | 12 +- .../adstxt_ad_domain_overview__matview.sql | 4 +- .../adstxt_entries_store_apps__matview.sql | 4 +- .../adstxt_publishers_overview__matview.sql | 4 +- .../advertiser_creative_rankings__matview.sql | 4 +- ...reative_rankings_recent_month__matview.sql | 4 +- .../advertiser_creatives__matview.sql | 4 +- .../frontend/api_call_countries__matview.sql | 4 +- .../app_keyword_rank_stats__matview.sql | 4 +- .../frontend/app_keyword_ranks_daily.sql | 4 +- .../frontend/apps_new_monthly__matview.sql | 4 +- .../frontend/apps_new_weekly__matview.sql | 4 +- .../frontend/apps_new_yearly__matview.sql | 4 +- .../frontend/category_tag_stats__matview.sql | 4 +- .../companies_apps_overview__matview.sql | 4 +- .../companies_category_stats__matview.sql | 4 +- .../companies_category_tag_stats__matview.sql | 4 +- ...anies_category_tag_type_stats__matview.sql | 4 +- .../companies_creative_rankings__matview.sql | 15 +- ...mpanies_creative_rankings_new__matview.sql | 127 --------- ...companies_open_source_percent__matview.sql | 4 +- ...mpanies_parent_category_stats__matview.sql | 4 +- ...ies_parent_category_tag_stats__matview.sql | 4 +- .../companies_sdks_overview__matview.sql | 4 +- .../company_domain_country__matview.sql | 4 +- .../company_domains_top_apps__matview.sql | 4 +- .../company_parent_top_apps__matview.sql | 4 +- .../frontend/company_top_apps__matview.sql | 4 +- .../frontend/keyword_scores__matview.sql | 4 +- .../latest_sdk_scanned_apps__matview.sql | 4 +- .../store_app_api_companies__matview.sql | 4 +- .../store_app_ranks_best_monthly__matview.sql | 4 +- .../schema/frontend/store_app_ranks_daily.sql | 4 +- .../store_app_ranks_latest__matview.sql | 4 +- .../frontend/store_app_ranks_weekly.sql | 4 +- .../frontend/store_apps_overview__matview.sql | 5 +- .../frontend/store_apps_z_scores__matview.sql | 4 +- .../total_categories_app_counts__matview.sql | 4 +- pg-ddl/schema/full_db_dump.sql | 245 ++---------------- pg-ddl/schema/logging/app_country_crawls.sql | 4 +- .../schema/logging/creative_scan_results.sql | 4 +- .../schema/logging/developers_crawled_at.sql | 4 +- pg-ddl/schema/logging/keywords_crawled_at.sql | 4 +- .../schema/logging/snapshot_pub_domains.sql | 4 +- pg-ddl/schema/logging/store_app_downloads.sql | 4 +- .../schema/logging/store_app_no_creatives.sql | 4 +- pg-ddl/schema/logging/store_app_sources.sql | 4 +- .../logging/store_app_waydroid_crawled_at.sql | 4 +- pg-ddl/schema/logging/store_apps_audit.sql | 4 +- pg-ddl/schema/logging/store_apps_snapshot.sql | 4 +- .../logging/version_code_api_scan_results.sql | 4 +- .../public/ad_network_sdk_keys__matview.sql | 4 +- pg-ddl/schema/public/adstxt_crawl_results.sql | 4 +- pg-ddl/schema/public/api_calls.sql | 4 +- pg-ddl/schema/public/app_ads_entrys.sql | 4 +- pg-ddl/schema/public/app_ads_map.sql | 4 +- .../public/app_country_metrics_history.sql | 4 +- .../app_country_metrics_latest__matview.sql | 4 +- .../public/app_global_metrics_history.sql | 4 +- .../app_global_metrics_latest__matview.sql | 4 +- ...p_global_metrics_weekly_diffs__matview.sql | 4 +- .../schema/public/app_keywords_extracted.sql | 4 +- pg-ddl/schema/public/app_urls_map.sql | 4 +- pg-ddl/schema/public/audit_dates__matview.sql | 59 ----- .../public/category_mapping__matview.sql | 4 +- pg-ddl/schema/public/countries.sql | 4 +- pg-ddl/schema/public/crawl_results.sql | 4 +- .../public/crawl_scenario_country_config.sql | 4 +- pg-ddl/schema/public/crawl_scenarios.sql | 4 +- pg-ddl/schema/public/creative_assets.sql | 4 +- pg-ddl/schema/public/creative_records.sql | 6 +- .../public/developer_store_apps__matview.sql | 4 +- pg-ddl/schema/public/developers.sql | 4 +- pg-ddl/schema/public/domains.sql | 4 +- pg-ddl/schema/public/ip_geo_snapshots.sql | 4 +- pg-ddl/schema/public/keywords.sql | 4 +- pg-ddl/schema/public/keywords_base.sql | 4 +- pg-ddl/schema/public/languages.sql | 4 +- .../public/mv_app_categories__matview.sql | 4 +- .../public/pg_stat_statements__view.sql | 4 +- .../public/pg_stat_statements_info__view.sql | 4 +- pg-ddl/schema/public/platforms.sql | 4 +- .../public/store_app_z_scores__matview.sql | 4 +- .../public/store_app_z_scores_history.sql | 4 +- pg-ddl/schema/public/store_apps.sql | 11 +- .../public/store_apps_created_at__matview.sql | 75 ------ .../schema/public/store_apps_descriptions.sql | 4 +- ...store_apps_in_latest_rankings__matview.sql | 4 +- .../public/store_apps_updated_at__matview.sql | 75 ------ pg-ddl/schema/public/store_categories.sql | 4 +- pg-ddl/schema/public/store_collections.sql | 4 +- pg-ddl/schema/public/stores.sql | 4 +- .../public/total_count_overview__matview.sql | 4 +- pg-ddl/schema/public/user_requested_scan.sql | 4 +- .../public/version_code_api_scan_results.sql | 4 +- .../public/version_code_sdk_scan_results.sql | 4 +- pg-ddl/schema/public/version_codes.sql | 4 +- pg-ddl/schema/public/version_details_map.sql | 4 +- pg-ddl/schema/public/version_manifests.sql | 4 +- pg-ddl/schema/public/version_strings.sql | 4 +- 116 files changed, 255 insertions(+), 800 deletions(-) delete mode 100644 pg-ddl/schema/frontend/companies_creative_rankings_new__matview.sql delete mode 100644 pg-ddl/schema/public/audit_dates__matview.sql delete mode 100644 pg-ddl/schema/public/store_apps_created_at__matview.sql delete mode 100644 pg-ddl/schema/public/store_apps_updated_at__matview.sql diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index 61b380f1..d2935bf6 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -133,7 +133,7 @@ def update_app_details( limit: int, country_priority_group: int, ) -> None: - """Process apps with dynamic work queue - simple and efficient.""" + """Process apps with dynamic work queue""" log_info = f"{store=} update app details" df = query_store_apps_to_update( @@ -751,9 +751,6 @@ def process_live_app_details( ) except Exception: logger.exception("failed to process app icon") - # I think only coming from S3? - # apps_df = apps_df.convert_dtypes(dtype_backend="pyarrow") - # apps_df = apps_df.replace({pd.NA: None}) apps_details_to_db( apps_df=apps_df, database_connection=database_connection, diff --git a/pg-ddl/schema/adtech/api_call_urls.sql b/pg-ddl/schema/adtech/api_call_urls.sql index 5b58aa6d..028739c9 100644 --- a/pg-ddl/schema/adtech/api_call_urls.sql +++ b/pg-ddl/schema/adtech/api_call_urls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 38G0NJG9vIHNAzq9375uXHvSOJfLoHpkPfKstrVrOrnB8DlboTy2aN1EW9hXDQo +\restrict O6Iu6aUFQFpuMLyxwstKXULZkUnROCjUTUFUO9QG6BR2HowuxEOQXVvAVMwhEr2 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -118,5 +118,5 @@ ALTER TABLE ONLY adtech.api_call_urls -- PostgreSQL database dump complete -- -\unrestrict 38G0NJG9vIHNAzq9375uXHvSOJfLoHpkPfKstrVrOrnB8DlboTy2aN1EW9hXDQo +\unrestrict O6Iu6aUFQFpuMLyxwstKXULZkUnROCjUTUFUO9QG6BR2HowuxEOQXVvAVMwhEr2 diff --git a/pg-ddl/schema/adtech/categories.sql b/pg-ddl/schema/adtech/categories.sql index 97399ff4..d098272c 100644 --- a/pg-ddl/schema/adtech/categories.sql +++ b/pg-ddl/schema/adtech/categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Llt9sYmeB1tkE9iwofOv1kiJvhYruy5swBHK423dLUOnbKOkd8x7y4jkNYt1j4Y +\restrict eYqO2is3C5pAa0rCcs8npDpgxyfZkSxESGiG538pX0ecXxIPissx319WnhwMoUb -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -62,5 +62,5 @@ ALTER TABLE ONLY adtech.categories -- PostgreSQL database dump complete -- -\unrestrict Llt9sYmeB1tkE9iwofOv1kiJvhYruy5swBHK423dLUOnbKOkd8x7y4jkNYt1j4Y +\unrestrict eYqO2is3C5pAa0rCcs8npDpgxyfZkSxESGiG538pX0ecXxIPissx319WnhwMoUb diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql index 045d2db0..023d348a 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 7OwreGWBbxzEvpXwZVWgLv96FzYLF633vsqF4yHBXEgqdTeunc33Qw8WSvfJgPy +\restrict grKihAFFwd3x7VqWpH32MhfR89OfAf49fNmBduE8JmySdbVxKMrAUejBLsmEORe -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -164,5 +164,5 @@ CREATE UNIQUE INDEX combined_store_app_companies_idx ON adtech.combined_store_ap -- PostgreSQL database dump complete -- -\unrestrict 7OwreGWBbxzEvpXwZVWgLv96FzYLF633vsqF4yHBXEgqdTeunc33Qw8WSvfJgPy +\unrestrict grKihAFFwd3x7VqWpH32MhfR89OfAf49fNmBduE8JmySdbVxKMrAUejBLsmEORe diff --git a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql index c7b25f8f..719f268e 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict NXVesePXIGPl0eIn5vBNJaikemldyKOJZ6cE3gsuLh7jx8l1GUAUcSctGnpAu06 +\restrict taOaz32dtEuVN67DWaVPs7OdHMKi6qwSesxpeYukeI0KfxQNCFWwMwR5P6BjnS4 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -59,5 +59,5 @@ CREATE UNIQUE INDEX idx_combined_store_apps_parent_companies_idx ON adtech.combi -- PostgreSQL database dump complete -- -\unrestrict NXVesePXIGPl0eIn5vBNJaikemldyKOJZ6cE3gsuLh7jx8l1GUAUcSctGnpAu06 +\unrestrict taOaz32dtEuVN67DWaVPs7OdHMKi6qwSesxpeYukeI0KfxQNCFWwMwR5P6BjnS4 diff --git a/pg-ddl/schema/adtech/companies.sql b/pg-ddl/schema/adtech/companies.sql index 56316dba..0e158fcf 100644 --- a/pg-ddl/schema/adtech/companies.sql +++ b/pg-ddl/schema/adtech/companies.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict r3BXDRIDdu0942Ig9rpQgkobJSwV0U3apg8QcAeaMOEShI23tI9c2xTaZIc0jmp +\restrict HUFjSkTafo91HbcVtZ9hktw8NmdOg2h9hov5e2CGXRjH51aBwzPGbi5UfjrM06j -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -98,5 +98,5 @@ ALTER TABLE ONLY adtech.companies -- PostgreSQL database dump complete -- -\unrestrict r3BXDRIDdu0942Ig9rpQgkobJSwV0U3apg8QcAeaMOEShI23tI9c2xTaZIc0jmp +\unrestrict HUFjSkTafo91HbcVtZ9hktw8NmdOg2h9hov5e2CGXRjH51aBwzPGbi5UfjrM06j diff --git a/pg-ddl/schema/adtech/company_categories__matview.sql b/pg-ddl/schema/adtech/company_categories__matview.sql index 38e49800..3f0a23ce 100644 --- a/pg-ddl/schema/adtech/company_categories__matview.sql +++ b/pg-ddl/schema/adtech/company_categories__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict MzO1AItAYShVzYxJ5pLJmeAJkreJ5HL8dtQ2Qxsv9TcknrARatfitvkGjfyOme0 +\restrict OABCCeo7stAutvtaesszt4cxJrFSiZ2a0xhdcIHzvzNVrYeVWboRBQyVeCFeFaI -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -42,5 +42,5 @@ ALTER MATERIALIZED VIEW adtech.company_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict MzO1AItAYShVzYxJ5pLJmeAJkreJ5HL8dtQ2Qxsv9TcknrARatfitvkGjfyOme0 +\unrestrict OABCCeo7stAutvtaesszt4cxJrFSiZ2a0xhdcIHzvzNVrYeVWboRBQyVeCFeFaI diff --git a/pg-ddl/schema/adtech/company_developers.sql b/pg-ddl/schema/adtech/company_developers.sql index 6f9ba918..1a3bc31d 100644 --- a/pg-ddl/schema/adtech/company_developers.sql +++ b/pg-ddl/schema/adtech/company_developers.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 6cMddTqmnhBsQ62bU5cRba25SoGoa0ASV3LArUV3BrykA9D0YzkGId1U7P7Sh6a +\restrict TOwgS1qrPfBT4XBhQJb3BHPVrCdw6K1fWu8ZeVsiioo4ZE2ZhJMrnOHZbHJBdLg -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.company_developers -- PostgreSQL database dump complete -- -\unrestrict 6cMddTqmnhBsQ62bU5cRba25SoGoa0ASV3LArUV3BrykA9D0YzkGId1U7P7Sh6a +\unrestrict TOwgS1qrPfBT4XBhQJb3BHPVrCdw6K1fWu8ZeVsiioo4ZE2ZhJMrnOHZbHJBdLg diff --git a/pg-ddl/schema/adtech/company_domain_mapping.sql b/pg-ddl/schema/adtech/company_domain_mapping.sql index d6879b23..09a66703 100644 --- a/pg-ddl/schema/adtech/company_domain_mapping.sql +++ b/pg-ddl/schema/adtech/company_domain_mapping.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict VY55BYeOqyhaCduQPaqs8IV7mVDYacxuTC0zv5wiRSXSmhrC5Ejb12U9OpNADlr +\restrict m449BazUGfCO9Y5hGDPRHY4qUk6v9d54sQ1PnVBLvqgefshHpGkgwXMEJ5wmKd6 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.company_domain_mapping -- PostgreSQL database dump complete -- -\unrestrict VY55BYeOqyhaCduQPaqs8IV7mVDYacxuTC0zv5wiRSXSmhrC5Ejb12U9OpNADlr +\unrestrict m449BazUGfCO9Y5hGDPRHY4qUk6v9d54sQ1PnVBLvqgefshHpGkgwXMEJ5wmKd6 diff --git a/pg-ddl/schema/adtech/company_sdk_strings__matview.sql b/pg-ddl/schema/adtech/company_sdk_strings__matview.sql index 8795be82..34f80c71 100644 --- a/pg-ddl/schema/adtech/company_sdk_strings__matview.sql +++ b/pg-ddl/schema/adtech/company_sdk_strings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict cht6nERLBNFXIxvqrGlUtTqRwtjaKM9BWiEiAcu7J2oXgMj5caQ1XzCEcJTa6OQ +\restrict R45HuOui3ZfuCQEEDtmydCfZagqRBYQZmgDfQiVCgkcMR0eVSrVpF1UYnDDNKcc -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -66,5 +66,5 @@ CREATE UNIQUE INDEX company_sdk_strings_version_string_id_company_id_idx ON adte -- PostgreSQL database dump complete -- -\unrestrict cht6nERLBNFXIxvqrGlUtTqRwtjaKM9BWiEiAcu7J2oXgMj5caQ1XzCEcJTa6OQ +\unrestrict R45HuOui3ZfuCQEEDtmydCfZagqRBYQZmgDfQiVCgkcMR0eVSrVpF1UYnDDNKcc diff --git a/pg-ddl/schema/adtech/sdk_categories.sql b/pg-ddl/schema/adtech/sdk_categories.sql index a00af8b6..7a371d4a 100644 --- a/pg-ddl/schema/adtech/sdk_categories.sql +++ b/pg-ddl/schema/adtech/sdk_categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fmD5vyFakEavtkvAtSm2Fz3dq6KlWtaMpeU46Wjghn9W2r8cGe6chSRNZ7QgHaP +\restrict KVmpFPbzEii23eFrc7lltWsVMdGYZMyVb7jcQ1gwGF2VgmmOMFi1DrixNuk2pzX -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.sdk_categories -- PostgreSQL database dump complete -- -\unrestrict fmD5vyFakEavtkvAtSm2Fz3dq6KlWtaMpeU46Wjghn9W2r8cGe6chSRNZ7QgHaP +\unrestrict KVmpFPbzEii23eFrc7lltWsVMdGYZMyVb7jcQ1gwGF2VgmmOMFi1DrixNuk2pzX diff --git a/pg-ddl/schema/adtech/sdk_packages.sql b/pg-ddl/schema/adtech/sdk_packages.sql index b93f2061..ae74c9f4 100644 --- a/pg-ddl/schema/adtech/sdk_packages.sql +++ b/pg-ddl/schema/adtech/sdk_packages.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict PhdBHpmIufPsEI4MCXIHvRNZZDmNxreN3a38bP5ToIVnsD8DjbM5CFkUhy2VVXz +\restrict NUqljQSWaQVFW5xAPBQwpch3cG9OZDB2qBlcMigR4w4QTxrnNn79k9PQ3Drghih -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -99,5 +99,5 @@ ALTER TABLE ONLY adtech.sdk_packages -- PostgreSQL database dump complete -- -\unrestrict PhdBHpmIufPsEI4MCXIHvRNZZDmNxreN3a38bP5ToIVnsD8DjbM5CFkUhy2VVXz +\unrestrict NUqljQSWaQVFW5xAPBQwpch3cG9OZDB2qBlcMigR4w4QTxrnNn79k9PQ3Drghih diff --git a/pg-ddl/schema/adtech/sdk_paths.sql b/pg-ddl/schema/adtech/sdk_paths.sql index 430606d1..1b295416 100644 --- a/pg-ddl/schema/adtech/sdk_paths.sql +++ b/pg-ddl/schema/adtech/sdk_paths.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict GgW7bkQHGR0ZGEInAKOCOlmvYRUWyG8bjLk4wHddqtJRKsC5MGOyO5gNPI2qsHh +\restrict LvTgrrnEv8kAN1AV913eC0GnzMC1BguoDBzRM80svql6G48BGa3bPDpwEXo63Wn -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdk_paths -- PostgreSQL database dump complete -- -\unrestrict GgW7bkQHGR0ZGEInAKOCOlmvYRUWyG8bjLk4wHddqtJRKsC5MGOyO5gNPI2qsHh +\unrestrict LvTgrrnEv8kAN1AV913eC0GnzMC1BguoDBzRM80svql6G48BGa3bPDpwEXo63Wn diff --git a/pg-ddl/schema/adtech/sdks.sql b/pg-ddl/schema/adtech/sdks.sql index b7b4a6d7..bd9b2cc6 100644 --- a/pg-ddl/schema/adtech/sdks.sql +++ b/pg-ddl/schema/adtech/sdks.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict xvpC9Ggm06xVBBmhDBPTX2ZUH1T4rP9CzhxfPZJP1aPm4vmQfTfPbkd9NOItuE3 +\restrict 1BcS0sSNSm14g7JugIW8X5WlHCOaUggTh3QK3HlEhxoHKQlZADLUeQ9byaYLWcU -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdks -- PostgreSQL database dump complete -- -\unrestrict xvpC9Ggm06xVBBmhDBPTX2ZUH1T4rP9CzhxfPZJP1aPm4vmQfTfPbkd9NOItuE3 +\unrestrict 1BcS0sSNSm14g7JugIW8X5WlHCOaUggTh3QK3HlEhxoHKQlZADLUeQ9byaYLWcU diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql index 9c24367c..d954e5b1 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict aYc2GTjxLUrbzUYzrpCvlzv64BmfXVbBxKSv5RTlksajeJaVU4v0F5igZeqRvna +\restrict klgKwiLNys0449QNhyIoJ98gEYfewLl3U0kYuKdh3L8qvzhPZRo1oKEQ8eamUl7 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -61,5 +61,5 @@ CREATE UNIQUE INDEX store_app_sdk_strings_idx ON adtech.store_app_sdk_strings US -- PostgreSQL database dump complete -- -\unrestrict aYc2GTjxLUrbzUYzrpCvlzv64BmfXVbBxKSv5RTlksajeJaVU4v0F5igZeqRvna +\unrestrict klgKwiLNys0449QNhyIoJ98gEYfewLl3U0kYuKdh3L8qvzhPZRo1oKEQ8eamUl7 diff --git a/pg-ddl/schema/adtech/url_redirect_chains.sql b/pg-ddl/schema/adtech/url_redirect_chains.sql index 94018f48..f1a9ed00 100644 --- a/pg-ddl/schema/adtech/url_redirect_chains.sql +++ b/pg-ddl/schema/adtech/url_redirect_chains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict TsJ6r4abbscPYaYqNldS9XdJfW3BZDCm7AI4lJgXNiCJoWp5pOD39HBMqfAOWPK +\restrict p0LExNn9lRC7svobIOmRy1kSFwYt3UPh4hKLRTr9QBAHn4ryVPIgsgCzQcTWE47 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -122,5 +122,5 @@ ALTER TABLE ONLY adtech.url_redirect_chains -- PostgreSQL database dump complete -- -\unrestrict TsJ6r4abbscPYaYqNldS9XdJfW3BZDCm7AI4lJgXNiCJoWp5pOD39HBMqfAOWPK +\unrestrict p0LExNn9lRC7svobIOmRy1kSFwYt3UPh4hKLRTr9QBAHn4ryVPIgsgCzQcTWE47 diff --git a/pg-ddl/schema/adtech/urls.sql b/pg-ddl/schema/adtech/urls.sql index a75d6296..ce7a1a1d 100644 --- a/pg-ddl/schema/adtech/urls.sql +++ b/pg-ddl/schema/adtech/urls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qgfVXyetkc14xrTahsb4z7mBd1KoMcegOJGzM7Bhl61K2lcTrroPH9wc0hhFAtF +\restrict fSlwh9mTckU8Zs2jZUn5KH2RLEuIKj7Q2nzATNSz5hJgBaqcHatn9DpPewFKUsi -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -30,12 +30,12 @@ SET default_table_access_method = heap; CREATE TABLE adtech.urls ( id integer NOT NULL, url text NOT NULL, - url_hash character(32) GENERATED ALWAYS AS (md5(url)) STORED, domain_id integer, scheme text NOT NULL, is_deep_link boolean GENERATED ALWAYS AS ((scheme <> ALL (ARRAY['http'::text, 'https'::text, 'ftp'::text]))) STORED, created_at timestamp with time zone DEFAULT now(), - hostname text + hostname text, + url_hash character(32) ); @@ -93,10 +93,10 @@ CREATE INDEX idx_urls_scheme ON adtech.urls USING btree (scheme); -- --- Name: urls_idx; Type: INDEX; Schema: adtech; Owner: postgres +-- Name: urls_url_hash_idx; Type: INDEX; Schema: adtech; Owner: postgres -- -CREATE UNIQUE INDEX urls_idx ON adtech.urls USING btree (md5(url)); +CREATE UNIQUE INDEX urls_url_hash_idx ON adtech.urls USING btree (url_hash); -- @@ -111,5 +111,5 @@ ALTER TABLE ONLY adtech.urls -- PostgreSQL database dump complete -- -\unrestrict qgfVXyetkc14xrTahsb4z7mBd1KoMcegOJGzM7Bhl61K2lcTrroPH9wc0hhFAtF +\unrestrict fSlwh9mTckU8Zs2jZUn5KH2RLEuIKj7Q2nzATNSz5hJgBaqcHatn9DpPewFKUsi diff --git a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql index 152fb369..c87998b4 100644 --- a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict HwagwFRwm9G970NNu9gbnVXivZG98TYyGoNw1k85dcA2Q0FApjnTlmHGYpczwEe +\restrict QlYpna1bSaki5bgKEJdO7SDTKlajbXwFzxdutRhZ80YgsQ0LjuFEvjtUv8yZajw -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX adstxt_ad_domain_overview_unique_idx ON frontend.adstxt_ad_d -- PostgreSQL database dump complete -- -\unrestrict HwagwFRwm9G970NNu9gbnVXivZG98TYyGoNw1k85dcA2Q0FApjnTlmHGYpczwEe +\unrestrict QlYpna1bSaki5bgKEJdO7SDTKlajbXwFzxdutRhZ80YgsQ0LjuFEvjtUv8yZajw diff --git a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql index cc068ca7..3737e680 100644 --- a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict yd264uxmobtXeQYh2l5OjwHIYy3UAHnNrSjgy0ct7fLDu84dMSaljSQW6pM3UAP +\restrict m8P9afMp8f4YEuVjwBmiKz5dZt8Ul5xPyQufNJlSoLQXYGb2mBeYiETz5yYw2RY -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -81,5 +81,5 @@ CREATE UNIQUE INDEX adstxt_entries_store_apps_unique_idx ON frontend.adstxt_entr -- PostgreSQL database dump complete -- -\unrestrict yd264uxmobtXeQYh2l5OjwHIYy3UAHnNrSjgy0ct7fLDu84dMSaljSQW6pM3UAP +\unrestrict m8P9afMp8f4YEuVjwBmiKz5dZt8Ul5xPyQufNJlSoLQXYGb2mBeYiETz5yYw2RY diff --git a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql index a7487666..951b4602 100644 --- a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict EyAIG933vwqTl43CKUad5AqrhmTkIgI9tHJZVoAcyTXRh8RnJfJy6wsxbcyjxIy +\restrict cdgcbpLeRiTBXzO9ZKQawvnorkvX0mRv1j8SSjkK8UQZxJrfGXb2maz8rlfLaTu -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -74,5 +74,5 @@ CREATE UNIQUE INDEX adstxt_publishers_overview_ad_domain_unique_idx ON frontend. -- PostgreSQL database dump complete -- -\unrestrict EyAIG933vwqTl43CKUad5AqrhmTkIgI9tHJZVoAcyTXRh8RnJfJy6wsxbcyjxIy +\unrestrict cdgcbpLeRiTBXzO9ZKQawvnorkvX0mRv1j8SSjkK8UQZxJrfGXb2maz8rlfLaTu diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql index eefcfa66..e4b783fa 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict jcJhldx3HcSg85kntUNxlRN1gIOZGQJTRPn2LuAnYuxFWvuSq1bjCfwf6xgz7IY +\restrict xWXFj8Q7xiMIJOvDF6hcVKMlh2s0IMIzF194L8rhxmzPFEuoLVCmxTgdIomtgWP -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -107,5 +107,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict jcJhldx3HcSg85kntUNxlRN1gIOZGQJTRPn2LuAnYuxFWvuSq1bjCfwf6xgz7IY +\unrestrict xWXFj8Q7xiMIJOvDF6hcVKMlh2s0IMIzF194L8rhxmzPFEuoLVCmxTgdIomtgWP diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql index 12aeb01c..3b6ce2dd 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ykcr8uEgLkcMj7f04cAtCqoLz1mGoP4QDxjRuwiMG2fVqFxluzaWdN1TBUCurZA +\restrict gTMUvUksi3R1sibnN73LPjyW7Q0NkegdNLGA37YYrfHQAa1ljHJ5Ri9DRuXjDkT -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -114,5 +114,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings_recent_month OWNER -- PostgreSQL database dump complete -- -\unrestrict ykcr8uEgLkcMj7f04cAtCqoLz1mGoP4QDxjRuwiMG2fVqFxluzaWdN1TBUCurZA +\unrestrict gTMUvUksi3R1sibnN73LPjyW7Q0NkegdNLGA37YYrfHQAa1ljHJ5Ri9DRuXjDkT diff --git a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql index 9d1c7a60..7f092b06 100644 --- a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict mxahKZBThRIO2EYH5JLAer4d51pE9k7xwrDggcWdfeiJKtY18yefivCZqm3mbZU +\restrict qofAthzbWJil30wUYXxMwRjE3lVIfrot1rgOMNNbisDxB5IqZ094Gx54Bcypbgj -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict mxahKZBThRIO2EYH5JLAer4d51pE9k7xwrDggcWdfeiJKtY18yefivCZqm3mbZU +\unrestrict qofAthzbWJil30wUYXxMwRjE3lVIfrot1rgOMNNbisDxB5IqZ094Gx54Bcypbgj diff --git a/pg-ddl/schema/frontend/api_call_countries__matview.sql b/pg-ddl/schema/frontend/api_call_countries__matview.sql index 02efa819..5333713a 100644 --- a/pg-ddl/schema/frontend/api_call_countries__matview.sql +++ b/pg-ddl/schema/frontend/api_call_countries__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict r1eIIv1QJhgIZPkkoehlLF5yCgeinoVsOXbWeOMhgdSCsVihmYh6ZNPb6c7UCmD +\restrict zF7fsx8oEkpdsEMVz6EwRx76p5usxr4A9a38hF5FKz4LlmtEV46YAuPqJraaLWz -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -87,5 +87,5 @@ CREATE UNIQUE INDEX api_call_countries_unique ON frontend.api_call_countries USI -- PostgreSQL database dump complete -- -\unrestrict r1eIIv1QJhgIZPkkoehlLF5yCgeinoVsOXbWeOMhgdSCsVihmYh6ZNPb6c7UCmD +\unrestrict zF7fsx8oEkpdsEMVz6EwRx76p5usxr4A9a38hF5FKz4LlmtEV46YAuPqJraaLWz diff --git a/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql index a887eaf1..7d6950a2 100644 --- a/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql +++ b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 6rLTR1kGUj6du2O0u7Ds4W2Pr6wfmfhSlRxFywwVB55VAyfEhnFoPipMZLlf25L +\restrict E6H0HhPx7E6yFEQEeFEE5DUdFh36I8U1PKGG19lyi4ihtv4cogNVombfxo7yEh4 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -72,5 +72,5 @@ ALTER MATERIALIZED VIEW frontend.app_keyword_rank_stats OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 6rLTR1kGUj6du2O0u7Ds4W2Pr6wfmfhSlRxFywwVB55VAyfEhnFoPipMZLlf25L +\unrestrict E6H0HhPx7E6yFEQEeFEE5DUdFh36I8U1PKGG19lyi4ihtv4cogNVombfxo7yEh4 diff --git a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql index e2b684a7..74ef20d3 100644 --- a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql +++ b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict IL1Pjl1aNEmwraVYKnXd9MMaPS3DmGjJaVv2tXcFAh5pBA7c09870htBJYSkufN +\restrict 1mMnRH6R7kXcZKVDDQGxMjgUDoSszeobggHxiImJCbht0cGaJMcgoPrueqPGJTr -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -104,5 +104,5 @@ ALTER TABLE ONLY frontend.app_keyword_ranks_daily -- PostgreSQL database dump complete -- -\unrestrict IL1Pjl1aNEmwraVYKnXd9MMaPS3DmGjJaVv2tXcFAh5pBA7c09870htBJYSkufN +\unrestrict 1mMnRH6R7kXcZKVDDQGxMjgUDoSszeobggHxiImJCbht0cGaJMcgoPrueqPGJTr diff --git a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql index f71c7dd9..4ec13e9f 100644 --- a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1CEfzbnpluN7MaExGFn5moWmGAl83YrTmeYennxQ7DQUCKcLbMeNvT5LFj4ry3B +\restrict qlplaXth8V4UAZ6l9ga418LARLpVqwyyXRjXls5bF2IacuMunGGCzDfWxvvQc04 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -116,5 +116,5 @@ CREATE UNIQUE INDEX idx_apps_new_monthly ON frontend.apps_new_monthly USING btre -- PostgreSQL database dump complete -- -\unrestrict 1CEfzbnpluN7MaExGFn5moWmGAl83YrTmeYennxQ7DQUCKcLbMeNvT5LFj4ry3B +\unrestrict qlplaXth8V4UAZ6l9ga418LARLpVqwyyXRjXls5bF2IacuMunGGCzDfWxvvQc04 diff --git a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql index e3b1e4f2..9e635257 100644 --- a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ri8agGwbXOdUukN0pQW6Pb9EodJhuAwsQEC1AhBBhE0VBDFhfwmoyKia8z7WuWD +\restrict 8IdCNsZlny6NxasrX0dFiIUco0eo4I0A5OtW9DT6ldWprKwCo0WwiGaCau5hB2a -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -123,5 +123,5 @@ CREATE UNIQUE INDEX idx_apps_new_weekly_f ON frontend.apps_new_weekly USING btre -- PostgreSQL database dump complete -- -\unrestrict ri8agGwbXOdUukN0pQW6Pb9EodJhuAwsQEC1AhBBhE0VBDFhfwmoyKia8z7WuWD +\unrestrict 8IdCNsZlny6NxasrX0dFiIUco0eo4I0A5OtW9DT6ldWprKwCo0WwiGaCau5hB2a diff --git a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql index e22aed14..873462c0 100644 --- a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict UKXxbH66FTpCeNEUgrJoOJdQYCdKUWgTmjUSS9oJQJcDwAHeEnvkToxgPhLlKcX +\restrict ZOJDbRplnLNhTM0WDSpS7d0gmlACDRDSew51Ozw2cWLetwPDEOyM6mRh5aCWXFT -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -116,5 +116,5 @@ CREATE UNIQUE INDEX idx_apps_new_yearly ON frontend.apps_new_yearly USING btree -- PostgreSQL database dump complete -- -\unrestrict UKXxbH66FTpCeNEUgrJoOJdQYCdKUWgTmjUSS9oJQJcDwAHeEnvkToxgPhLlKcX +\unrestrict ZOJDbRplnLNhTM0WDSpS7d0gmlACDRDSew51Ozw2cWLetwPDEOyM6mRh5aCWXFT diff --git a/pg-ddl/schema/frontend/category_tag_stats__matview.sql b/pg-ddl/schema/frontend/category_tag_stats__matview.sql index e2cc8983..ec050a7e 100644 --- a/pg-ddl/schema/frontend/category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict uGILP63aDoh1adICjxLZLTISI50GXFpZLARpKQwdxz2hjDpi412gJ4Rw6nemdr2 +\restrict TUhPecNTua36IbAdU1BLHv31kZhQaafPez6yRGPVSYhj9spCifCnuJpl3upheyv -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -74,5 +74,5 @@ CREATE UNIQUE INDEX idx_category_tag_stats ON frontend.category_tag_stats USING -- PostgreSQL database dump complete -- -\unrestrict uGILP63aDoh1adICjxLZLTISI50GXFpZLARpKQwdxz2hjDpi412gJ4Rw6nemdr2 +\unrestrict TUhPecNTua36IbAdU1BLHv31kZhQaafPez6yRGPVSYhj9spCifCnuJpl3upheyv diff --git a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql index 9fad3501..50ff8203 100644 --- a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict dzg8Oh5Beseueawp5V1pKJULXDsnf0FcDbwZijMB9xXHZ1e7pD4oA5GCAWEmSH3 +\restrict yIXmBFhhBgLeaffr5UB5vAphWLU5dgc6JdLNgwebdglPED3ishiTzLShWaAjMwz -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -68,5 +68,5 @@ CREATE UNIQUE INDEX companies_apps_overview_unique_idx ON frontend.companies_app -- PostgreSQL database dump complete -- -\unrestrict dzg8Oh5Beseueawp5V1pKJULXDsnf0FcDbwZijMB9xXHZ1e7pD4oA5GCAWEmSH3 +\unrestrict yIXmBFhhBgLeaffr5UB5vAphWLU5dgc6JdLNgwebdglPED3ishiTzLShWaAjMwz diff --git a/pg-ddl/schema/frontend/companies_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_stats__matview.sql index 5812b160..9ae0b633 100644 --- a/pg-ddl/schema/frontend/companies_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict NLN1cdWNefww8IcoSZBTTWq72kY1KhhrczdOjjaieSg5UXuU4aDwwzOQ9Xdtn4t +\restrict U2McsSTiu6IMQwJss6MJpUkbQzXbC0DcfSx8pP9j9BNx7xpztydVfm1UNN08AmX -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -82,5 +82,5 @@ CREATE INDEX companies_category_stats_query_idx ON frontend.companies_category_s -- PostgreSQL database dump complete -- -\unrestrict NLN1cdWNefww8IcoSZBTTWq72kY1KhhrczdOjjaieSg5UXuU4aDwwzOQ9Xdtn4t +\unrestrict U2McsSTiu6IMQwJss6MJpUkbQzXbC0DcfSx8pP9j9BNx7xpztydVfm1UNN08AmX diff --git a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql index f20c8a8d..1c0f8f46 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict FdmzAXrxbBguT4LUXPDONKmzINnebobfctid4ZxtaxD85mf0iYLwtSVhcMoqaa1 +\restrict 0m8Qrma9OWGrD72QNq5oX5uofgd4KIQx33f8fPItgzcwZy88axJDJgxyuWmKnEZ -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -86,5 +86,5 @@ CREATE UNIQUE INDEX companies_category_tag_stats_idx ON frontend.companies_categ -- PostgreSQL database dump complete -- -\unrestrict FdmzAXrxbBguT4LUXPDONKmzINnebobfctid4ZxtaxD85mf0iYLwtSVhcMoqaa1 +\unrestrict 0m8Qrma9OWGrD72QNq5oX5uofgd4KIQx33f8fPItgzcwZy88axJDJgxyuWmKnEZ diff --git a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql index aa4bc7b7..7b8142ee 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict dRtUUeSXzHktDqrptdhfMmGvxlYUYDtOryXog1EQO1tLSg6tb67zvl732I8uvCE +\restrict NMUsAEPWtPcHwcXeefUR9EVq2C7RKCIwEargInP5nOEcxZoZdL3AeYPbg29ePXC -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -86,5 +86,5 @@ CREATE INDEX companies_category_tag_type_stats_query_idx ON frontend.companies_c -- PostgreSQL database dump complete -- -\unrestrict dRtUUeSXzHktDqrptdhfMmGvxlYUYDtOryXog1EQO1tLSg6tb67zvl732I8uvCE +\unrestrict NMUsAEPWtPcHwcXeefUR9EVq2C7RKCIwEargInP5nOEcxZoZdL3AeYPbg29ePXC diff --git a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql index 7110f636..ae3926cc 100644 --- a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict zrEPmlJkuE9ChT6kYgoG44KmG3moFScNEybvCxCbZvZVPDMUcKwCAZlU11IMueE +\restrict 6xctBjXgKBSlPrzH2yqBfbvlHQttoSAzbtd1Iu93VwC3M9owh0or9FyZ4CPvzJ0 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -32,6 +32,7 @@ CREATE MATERIALIZED VIEW frontend.companies_creative_rankings AS SELECT ca.file_extension, ac_1.id AS api_call_id, cr.advertiser_store_app_id, + cr.advertiser_domain_id, cr.creative_initial_domain_id, cr.creative_host_domain_id, cr.additional_ad_domain_ids, @@ -49,6 +50,7 @@ CREATE MATERIALIZED VIEW frontend.companies_creative_rankings AS cr.file_extension, cr.creative_initial_domain_id AS domain_id, cr.advertiser_store_app_id, + cr.advertiser_domain_id, cr.run_at FROM creative_rankings cr UNION @@ -58,6 +60,7 @@ CREATE MATERIALIZED VIEW frontend.companies_creative_rankings AS cr.file_extension, cr.creative_host_domain_id, cr.advertiser_store_app_id, + cr.advertiser_domain_id, cr.run_at FROM creative_rankings cr UNION @@ -67,19 +70,21 @@ CREATE MATERIALIZED VIEW frontend.companies_creative_rankings AS cr.file_extension, unnest(cr.additional_ad_domain_ids) AS unnest, cr.advertiser_store_app_id, + cr.advertiser_domain_id, cr.run_at FROM creative_rankings cr ), visually_distinct AS ( SELECT cdm.company_id, cd.file_extension, cd.advertiser_store_app_id, + cd.advertiser_domain_id, cd.vhash, min((cd.md5_hash)::text) AS md5_hash, max(cd.api_call_id) AS last_api_call_id, max(cd.run_at) AS last_seen FROM (combined_domains cd LEFT JOIN adtech.company_domain_mapping cdm ON ((cd.domain_id = cdm.domain_id))) - GROUP BY cdm.company_id, cd.file_extension, cd.advertiser_store_app_id, cd.vhash + GROUP BY cdm.company_id, cd.file_extension, cd.advertiser_store_app_id, cd.advertiser_domain_id, cd.vhash ) SELECT vd.company_id, vd.md5_hash, @@ -88,6 +93,7 @@ CREATE MATERIALIZED VIEW frontend.companies_creative_rankings AS saa.name AS advertiser_name, saa.store, saa.store_id AS advertiser_store_id, + adv.domain_name AS advertiser_domain_name, sap.store_id AS publisher_store_id, sap.name AS publisher_name, saa.installs, @@ -106,10 +112,11 @@ CREATE MATERIALIZED VIEW frontend.companies_creative_rankings AS WHEN (sap.icon_url_100 IS NOT NULL) THEN (concat('https://media.appgoblin.info/app-icons/', sap.store_id, '/', sap.icon_url_100))::character varying ELSE sap.icon_url_512 END AS publisher_icon_url - FROM (((((visually_distinct vd + FROM ((((((visually_distinct vd LEFT JOIN public.api_calls ac ON ((vd.last_api_call_id = ac.id))) LEFT JOIN adtech.companies c ON ((vd.company_id = c.id))) LEFT JOIN public.domains ad ON ((c.domain_id = ad.id))) + LEFT JOIN public.domains adv ON ((vd.advertiser_domain_id = adv.id))) LEFT JOIN frontend.store_apps_overview saa ON ((vd.advertiser_store_app_id = saa.id))) LEFT JOIN frontend.store_apps_overview sap ON ((ac.store_app = sap.id))) WHERE (c.id IS NOT NULL) @@ -123,5 +130,5 @@ ALTER MATERIALIZED VIEW frontend.companies_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict zrEPmlJkuE9ChT6kYgoG44KmG3moFScNEybvCxCbZvZVPDMUcKwCAZlU11IMueE +\unrestrict 6xctBjXgKBSlPrzH2yqBfbvlHQttoSAzbtd1Iu93VwC3M9owh0or9FyZ4CPvzJ0 diff --git a/pg-ddl/schema/frontend/companies_creative_rankings_new__matview.sql b/pg-ddl/schema/frontend/companies_creative_rankings_new__matview.sql deleted file mode 100644 index de1ad595..00000000 --- a/pg-ddl/schema/frontend/companies_creative_rankings_new__matview.sql +++ /dev/null @@ -1,127 +0,0 @@ --- --- PostgreSQL database dump --- - -\restrict j55r8Pc7urycUBbK9c9JdvNeMYJ6ccvIK9VIYC4VUGm6ChCL16eFt0buXIbJfvw - --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) - -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET transaction_timeout = 0; -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); -SET check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - -SET default_tablespace = ''; - -SET default_table_access_method = heap; - --- --- Name: companies_creative_rankings_new; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres --- - -CREATE MATERIALIZED VIEW frontend.companies_creative_rankings_new AS - WITH creative_rankings AS ( - SELECT ca.file_extension, - ac_1.id AS api_call_id, - cr.advertiser_store_app_id, - cr.creative_initial_domain_id, - cr.creative_host_domain_id, - cr.additional_ad_domain_ids, - vcasr.run_at, - ca.md5_hash, - COALESCE(ca.phash, ca.md5_hash) AS vhash - FROM (((public.creative_records cr - LEFT JOIN public.creative_assets ca ON ((cr.creative_asset_id = ca.id))) - LEFT JOIN public.api_calls ac_1 ON ((cr.api_call_id = ac_1.id))) - LEFT JOIN public.version_code_api_scan_results vcasr ON ((ac_1.run_id = vcasr.id))) - ), combined_domains AS ( - SELECT cr.api_call_id, - cr.vhash, - cr.md5_hash, - cr.file_extension, - cr.creative_initial_domain_id AS domain_id, - cr.advertiser_store_app_id, - cr.run_at - FROM creative_rankings cr - UNION - SELECT cr.api_call_id, - cr.vhash, - cr.md5_hash, - cr.file_extension, - cr.creative_host_domain_id, - cr.advertiser_store_app_id, - cr.run_at - FROM creative_rankings cr - UNION - SELECT cr.api_call_id, - cr.vhash, - cr.md5_hash, - cr.file_extension, - unnest(cr.additional_ad_domain_ids) AS unnest, - cr.advertiser_store_app_id, - cr.run_at - FROM creative_rankings cr - ), visually_distinct AS ( - SELECT cdm.company_id, - cd.file_extension, - cd.advertiser_store_app_id, - cd.vhash, - min((cd.md5_hash)::text) AS md5_hash, - max(cd.api_call_id) AS last_api_call_id, - max(cd.run_at) AS last_seen - FROM (combined_domains cd - LEFT JOIN adtech.company_domain_mapping cdm ON ((cd.domain_id = cdm.domain_id))) - GROUP BY cdm.company_id, cd.file_extension, cd.advertiser_store_app_id, cd.vhash - ) - SELECT vd.company_id, - vd.md5_hash, - vd.file_extension, - ad.domain_name AS company_domain, - saa.name AS advertiser_name, - saa.store, - saa.store_id AS advertiser_store_id, - sap.store_id AS publisher_store_id, - sap.name AS publisher_name, - saa.installs, - saa.rating_count, - saa.rating, - saa.installs_sum_1w, - saa.ratings_sum_1w, - saa.installs_sum_4w, - saa.ratings_sum_4w, - vd.last_seen, - CASE - WHEN (saa.icon_url_100 IS NOT NULL) THEN (concat('https://media.appgoblin.info/app-icons/', saa.store_id, '/', saa.icon_url_100))::character varying - ELSE saa.icon_url_512 - END AS advertiser_icon_url, - CASE - WHEN (sap.icon_url_100 IS NOT NULL) THEN (concat('https://media.appgoblin.info/app-icons/', sap.store_id, '/', sap.icon_url_100))::character varying - ELSE sap.icon_url_512 - END AS publisher_icon_url - FROM (((((visually_distinct vd - LEFT JOIN public.api_calls ac ON ((vd.last_api_call_id = ac.id))) - LEFT JOIN adtech.companies c ON ((vd.company_id = c.id))) - LEFT JOIN public.domains ad ON ((c.domain_id = ad.id))) - LEFT JOIN frontend.store_apps_overview saa ON ((vd.advertiser_store_app_id = saa.id))) - LEFT JOIN frontend.store_apps_overview sap ON ((ac.store_app = sap.id))) - WHERE (c.id IS NOT NULL) - ORDER BY vd.last_seen DESC - WITH NO DATA; - - -ALTER MATERIALIZED VIEW frontend.companies_creative_rankings_new OWNER TO postgres; - --- --- PostgreSQL database dump complete --- - -\unrestrict j55r8Pc7urycUBbK9c9JdvNeMYJ6ccvIK9VIYC4VUGm6ChCL16eFt0buXIbJfvw - diff --git a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql index e73345b7..1376abbf 100644 --- a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql +++ b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ORNBhPIWdfvIDObFDuSEQuW33ixvIjsG9jr1LZZvyJSqs0rdo7VWjuhiJlwroVT +\restrict rEpoW2Agibv5vCySyBOlz0QN8d4XniyiHJHHYNSE7FOPjyTXgyuQcDWCmP1wFGv -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -54,5 +54,5 @@ CREATE UNIQUE INDEX companies_open_source_percent_unique ON frontend.companies_o -- PostgreSQL database dump complete -- -\unrestrict ORNBhPIWdfvIDObFDuSEQuW33ixvIjsG9jr1LZZvyJSqs0rdo7VWjuhiJlwroVT +\unrestrict rEpoW2Agibv5vCySyBOlz0QN8d4XniyiHJHHYNSE7FOPjyTXgyuQcDWCmP1wFGv diff --git a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql index bb4e45c9..320dc0a1 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict TvXQVVXZiOdcNZlk1BhNegXXAwTakIHOke0ucCLWx23SAL775R3tzybqmkqc5Ha +\restrict VmwGOpcNAlbiWlJJzfxKxMFd0uvpa2S1GfgzR7o4yCfi2zCLXjCMzhF0kzo18tA -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -87,5 +87,5 @@ CREATE INDEX companies_parent_category_stats_query_idx ON frontend.companies_par -- PostgreSQL database dump complete -- -\unrestrict TvXQVVXZiOdcNZlk1BhNegXXAwTakIHOke0ucCLWx23SAL775R3tzybqmkqc5Ha +\unrestrict VmwGOpcNAlbiWlJJzfxKxMFd0uvpa2S1GfgzR7o4yCfi2zCLXjCMzhF0kzo18tA diff --git a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql index cb4c7367..fc6f8d74 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict mJdcKOJNABjwBMxN6WkUOZETq05paskRLj4EcBr8QvRbR8s97alaN7fjG5jOwrk +\restrict aXDpvLlOdhTq8V0paz3AWW3eCWQcxzfxP9XTbyle1st7Ftv3c127viFXABTSJGN -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -90,5 +90,5 @@ CREATE INDEX companies_parent_category_tag_stats_query_idx ON frontend.companies -- PostgreSQL database dump complete -- -\unrestrict mJdcKOJNABjwBMxN6WkUOZETq05paskRLj4EcBr8QvRbR8s97alaN7fjG5jOwrk +\unrestrict aXDpvLlOdhTq8V0paz3AWW3eCWQcxzfxP9XTbyle1st7Ftv3c127viFXABTSJGN diff --git a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql index 94f8d6c2..fc19f776 100644 --- a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict cHMhC96OKJI7p0dKaubji24WMOUzdovvNka635fouHtJeNdaEEeqGQAplnsXGfE +\restrict 2HcC7aVyMTpdXelYQ3NtPQXW9ePgAjFZeSaVebiib7tWAN6QE2b3dJ4eqdmMY03 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX companies_sdks_overview_unique_idx ON frontend.companies_sdk -- PostgreSQL database dump complete -- -\unrestrict cHMhC96OKJI7p0dKaubji24WMOUzdovvNka635fouHtJeNdaEEeqGQAplnsXGfE +\unrestrict 2HcC7aVyMTpdXelYQ3NtPQXW9ePgAjFZeSaVebiib7tWAN6QE2b3dJ4eqdmMY03 diff --git a/pg-ddl/schema/frontend/company_domain_country__matview.sql b/pg-ddl/schema/frontend/company_domain_country__matview.sql index fe7e50cb..800d0658 100644 --- a/pg-ddl/schema/frontend/company_domain_country__matview.sql +++ b/pg-ddl/schema/frontend/company_domain_country__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict re3CIe32JbajnUpMJvnqrgh1JzegMxP9bNb4WEh0V9RRbJeagIWQCPm3J3ijv6u +\restrict l9t88IX0dKTWZWMTQEfc13cZtxRIwbmFuxWvMfCf413w7iSoYKgWTx9kzJaFmoJ -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -74,5 +74,5 @@ ALTER MATERIALIZED VIEW frontend.company_domain_country OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict re3CIe32JbajnUpMJvnqrgh1JzegMxP9bNb4WEh0V9RRbJeagIWQCPm3J3ijv6u +\unrestrict l9t88IX0dKTWZWMTQEfc13cZtxRIwbmFuxWvMfCf413w7iSoYKgWTx9kzJaFmoJ diff --git a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql index a1d09607..21510ea2 100644 --- a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ZIHa09rzhfl3bb95NsPXkA5hwkbmbYLqbb9LjqbqH1QCknVM8dJcq6CSLUXQh47 +\restrict N72ergLo1yc27KZsIdvpY85bWGwrIWq3u5TyEAbCJytr5aGhkEjlUeyfKndnEXm -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -115,5 +115,5 @@ CREATE UNIQUE INDEX idx_unique_company_domains_top_apps ON frontend.company_doma -- PostgreSQL database dump complete -- -\unrestrict ZIHa09rzhfl3bb95NsPXkA5hwkbmbYLqbb9LjqbqH1QCknVM8dJcq6CSLUXQh47 +\unrestrict N72ergLo1yc27KZsIdvpY85bWGwrIWq3u5TyEAbCJytr5aGhkEjlUeyfKndnEXm diff --git a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql index 01daf559..c212c4fd 100644 --- a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 6Awlohn2wWf5LJfJlQbvdwAfzeTtFWVQjQY7JMCP9POjIGclusbRlvfGqEiT0gR +\restrict SPd5ziSUMwwOrV4v6rSkG3179lnO9ZGL3cIzHFui5kNLT5ZVrJxSQcFdcwfNkJl -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -105,5 +105,5 @@ CREATE UNIQUE INDEX idx_company_parent_top_apps_unique ON frontend.company_paren -- PostgreSQL database dump complete -- -\unrestrict 6Awlohn2wWf5LJfJlQbvdwAfzeTtFWVQjQY7JMCP9POjIGclusbRlvfGqEiT0gR +\unrestrict SPd5ziSUMwwOrV4v6rSkG3179lnO9ZGL3cIzHFui5kNLT5ZVrJxSQcFdcwfNkJl diff --git a/pg-ddl/schema/frontend/company_top_apps__matview.sql b/pg-ddl/schema/frontend/company_top_apps__matview.sql index 5fd16cb7..e33b1f0e 100644 --- a/pg-ddl/schema/frontend/company_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict b4FJEig232oD76dYpf2CoOjnHudfeYXj3TjMXA3QDATTeH87HKv2UeDJoPYb6Zm +\restrict XxEfxl6THS9PjOfct9W3igBPnQz7Oj9hKSzSNG3hTqAUNK4v9IwfcDyQ7SilvkO -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -112,5 +112,5 @@ CREATE UNIQUE INDEX idx_unique_company_top_apps ON frontend.company_top_apps USI -- PostgreSQL database dump complete -- -\unrestrict b4FJEig232oD76dYpf2CoOjnHudfeYXj3TjMXA3QDATTeH87HKv2UeDJoPYb6Zm +\unrestrict XxEfxl6THS9PjOfct9W3igBPnQz7Oj9hKSzSNG3hTqAUNK4v9IwfcDyQ7SilvkO diff --git a/pg-ddl/schema/frontend/keyword_scores__matview.sql b/pg-ddl/schema/frontend/keyword_scores__matview.sql index 3e4d2a0d..f4417fef 100644 --- a/pg-ddl/schema/frontend/keyword_scores__matview.sql +++ b/pg-ddl/schema/frontend/keyword_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Y0JJIFw521sNVOCa8Iz8rVnOmLkH9ujeefWBNQZuu2DFzcqOnZ17o7Dv7qSRgfU +\restrict Zx22EPBQ6dcYL5UGYFRAXzzjdonQya9hQ5EYACkhOcTgiHhxIJ6PdmwiMAYA88h -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -137,5 +137,5 @@ ALTER MATERIALIZED VIEW frontend.keyword_scores OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict Y0JJIFw521sNVOCa8Iz8rVnOmLkH9ujeefWBNQZuu2DFzcqOnZ17o7Dv7qSRgfU +\unrestrict Zx22EPBQ6dcYL5UGYFRAXzzjdonQya9hQ5EYACkhOcTgiHhxIJ6PdmwiMAYA88h diff --git a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql index 357afca1..6c501dbf 100644 --- a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql +++ b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 6B4UJlq8T0WZPGRCc8HdwEdMndGhHTJZvLC18e21wBMzNsm5WJB2FgPBd0Htvfd +\restrict ayaWPjLOFRF0GpS4YHOMzOP7rqPVjEznLcgIlde6EtYWbOTzCY1AnZM3rexa6op -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -77,5 +77,5 @@ CREATE UNIQUE INDEX latest_sdk_scanned_apps_unique_index ON frontend.latest_sdk_ -- PostgreSQL database dump complete -- -\unrestrict 6B4UJlq8T0WZPGRCc8HdwEdMndGhHTJZvLC18e21wBMzNsm5WJB2FgPBd0Htvfd +\unrestrict ayaWPjLOFRF0GpS4YHOMzOP7rqPVjEznLcgIlde6EtYWbOTzCY1AnZM3rexa6op diff --git a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql index bf43502e..d95745da 100644 --- a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql +++ b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict zOuWBqD1LFskVHgV5aF1jiM7cxpJB4U4opQOXxYoHKZwNVdPVBskvoo4t37YYzz +\restrict SzwTtfXsb6uefc6KWILGs2UMg50BqKbbF2JrJ7B9D4GiDEq56tP4bagHo2jaKCb -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -61,5 +61,5 @@ ALTER MATERIALIZED VIEW frontend.store_app_api_companies OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict zOuWBqD1LFskVHgV5aF1jiM7cxpJB4U4opQOXxYoHKZwNVdPVBskvoo4t37YYzz +\unrestrict SzwTtfXsb6uefc6KWILGs2UMg50BqKbbF2JrJ7B9D4GiDEq56tP4bagHo2jaKCb diff --git a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql index fa3f8fe2..a0708a37 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict MvZ56RObHxdF13gGjQajGNNcj0qvvGyFeeBGlv8LzR4rapOwA8S9TS3kwCVHl08 +\restrict j2Q6JLTGm0fBTUJhtXfc43HqI3AvTIM6ZD4fasxIrfRSjl6bu5q3t2gGxaBFYeD -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -71,5 +71,5 @@ CREATE UNIQUE INDEX store_app_ranks_best_monthly_uidx ON frontend.store_app_rank -- PostgreSQL database dump complete -- -\unrestrict MvZ56RObHxdF13gGjQajGNNcj0qvvGyFeeBGlv8LzR4rapOwA8S9TS3kwCVHl08 +\unrestrict j2Q6JLTGm0fBTUJhtXfc43HqI3AvTIM6ZD4fasxIrfRSjl6bu5q3t2gGxaBFYeD diff --git a/pg-ddl/schema/frontend/store_app_ranks_daily.sql b/pg-ddl/schema/frontend/store_app_ranks_daily.sql index a208004c..cee00f3a 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_daily.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_daily.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict loczMEyeXAgtbokadehqG9eL7198UYarQStKNc0PI7HE61tijh7tpWtj9Fa21Pw +\restrict 3a14UnSaPoBD9f7QnyNbHYWozszxyUSWDyFTp8bfSHyUVWN6ruqM5ItrjU9eg4U -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -91,5 +91,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_daily -- PostgreSQL database dump complete -- -\unrestrict loczMEyeXAgtbokadehqG9eL7198UYarQStKNc0PI7HE61tijh7tpWtj9Fa21Pw +\unrestrict 3a14UnSaPoBD9f7QnyNbHYWozszxyUSWDyFTp8bfSHyUVWN6ruqM5ItrjU9eg4U diff --git a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql index 9dabe66c..18767fee 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 2l2p4ayjl2qgvzEigMCr3RXzDoiFU81R0wLT6MfKCKq77qObbZ7aTuabSyQMaTx +\restrict fEyHVcgo87CzsvOdE7oghqfFZWADd1hTu2NIO1eXxwmPKUxNCjo2o90bY0ojmBz -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -72,5 +72,5 @@ CREATE UNIQUE INDEX idx_store_app_ranks_latest_filter_sort ON frontend.store_app -- PostgreSQL database dump complete -- -\unrestrict 2l2p4ayjl2qgvzEigMCr3RXzDoiFU81R0wLT6MfKCKq77qObbZ7aTuabSyQMaTx +\unrestrict fEyHVcgo87CzsvOdE7oghqfFZWADd1hTu2NIO1eXxwmPKUxNCjo2o90bY0ojmBz diff --git a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql index 20588f0f..ec05381f 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1UyZhnNyPThFABwDkPk1iITOkgLa0NT1UcFvLIYawHzuJWOaaqdbsCZSa80rCde +\restrict IdEdcrCWgT1TtgEvf80GhKK8kJt6hKD2btJS38wvXW24AZXHZ735gu87QMtUVAX -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -98,5 +98,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_weekly -- PostgreSQL database dump complete -- -\unrestrict 1UyZhnNyPThFABwDkPk1iITOkgLa0NT1UcFvLIYawHzuJWOaaqdbsCZSa80rCde +\unrestrict IdEdcrCWgT1TtgEvf80GhKK8kJt6hKD2btJS38wvXW24AZXHZ735gu87QMtUVAX diff --git a/pg-ddl/schema/frontend/store_apps_overview__matview.sql b/pg-ddl/schema/frontend/store_apps_overview__matview.sql index 011e62dd..2894d67c 100644 --- a/pg-ddl/schema/frontend/store_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/store_apps_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5myfyV5cXRCcNXH2GRftdW7aaP18MwOap1KABOWrzXoDCYdARN0nQumN5Pc3ujN +\restrict psQnnMWzQO1a5s2QvM8EpFMcygZRCOfwbkxmANZt7knt3q74DVv9v6Mc3ixhgUi -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -134,6 +134,7 @@ CREATE MATERIALIZED VIEW frontend.store_apps_overview AS sa.tablet_image_url_1, sa.tablet_image_url_2, sa.tablet_image_url_3, + to_tsvector('simple'::regconfig, (((((COALESCE(sa.name, ''::character varying))::text || ' '::text) || (COALESCE(sa.store_id, ''::character varying))::text) || ' '::text) || (COALESCE(d.name, ''::character varying))::text)) AS textsearchable, d.developer_id, d.name AS developer_name, pd.domain_name AS developer_url, @@ -197,5 +198,5 @@ CREATE UNIQUE INDEX store_apps_overview_unique_store_id_idx ON frontend.store_ap -- PostgreSQL database dump complete -- -\unrestrict 5myfyV5cXRCcNXH2GRftdW7aaP18MwOap1KABOWrzXoDCYdARN0nQumN5Pc3ujN +\unrestrict psQnnMWzQO1a5s2QvM8EpFMcygZRCOfwbkxmANZt7knt3q74DVv9v6Mc3ixhgUi diff --git a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql b/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql index 6a856e30..672d6935 100644 --- a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql +++ b/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1XwdI5IQl7AjB51xGmRX7SRrMjrhGwuf1kr7BLhCcne7letSSSaTpNOMoHta4pu +\restrict KYWGYsz8MymhwUazSNBApSjqleqjYaWgOIxRa5pjI3OWyuhSXbe3SpwNYHBt0zi -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -124,5 +124,5 @@ CREATE UNIQUE INDEX frontend_store_apps_z_scores_unique ON frontend.store_apps_z -- PostgreSQL database dump complete -- -\unrestrict 1XwdI5IQl7AjB51xGmRX7SRrMjrhGwuf1kr7BLhCcne7letSSSaTpNOMoHta4pu +\unrestrict KYWGYsz8MymhwUazSNBApSjqleqjYaWgOIxRa5pjI3OWyuhSXbe3SpwNYHBt0zi diff --git a/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql b/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql index 4e1b9f67..b861056c 100644 --- a/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql +++ b/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 3GAERtGTVe7PQPy2NNL1w4vHl9XXRLWiz2PwAGApOwTDorFrEiP2MLjhSMXpdbc +\restrict tkmKeABKHpjurbQtyplLmE5hhLckZJe30EFZeWwzuRmLCignWjD79CMyTOYcbcE -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -53,5 +53,5 @@ CREATE UNIQUE INDEX idx_total_categories_app_counts ON frontend.total_categories -- PostgreSQL database dump complete -- -\unrestrict 3GAERtGTVe7PQPy2NNL1w4vHl9XXRLWiz2PwAGApOwTDorFrEiP2MLjhSMXpdbc +\unrestrict tkmKeABKHpjurbQtyplLmE5hhLckZJe30EFZeWwzuRmLCignWjD79CMyTOYcbcE diff --git a/pg-ddl/schema/full_db_dump.sql b/pg-ddl/schema/full_db_dump.sql index d4eea629..c5e455a0 100644 --- a/pg-ddl/schema/full_db_dump.sql +++ b/pg-ddl/schema/full_db_dump.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ySc2meWErSxCQVEpDkycKZtM3csY5mSwW2VJpw5QrDlus0OfJGEc3iNClUysXTC +\restrict CJQVCBsnAPakytBZfez5IIoNv5kKAuHgoLwfP308aWlkrButsWv9fYs0KjFSzDE -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -844,6 +844,8 @@ CREATE TABLE public.creative_records ( additional_ad_domain_ids integer[], created_at timestamp with time zone DEFAULT timezone('utc'::text, now()) NOT NULL, updated_at timestamp with time zone DEFAULT timezone('utc'::text, now()) NOT NULL, + click_ids integer[], + click_url_ids integer[], CONSTRAINT check_advertiser_or_advertiser_domain CHECK (((advertiser_store_app_id IS NOT NULL) OR (advertiser_domain_id IS NOT NULL) OR ((advertiser_store_app_id IS NULL) AND (advertiser_domain_id IS NULL)))) ); @@ -1152,6 +1154,7 @@ CREATE MATERIALIZED VIEW frontend.store_apps_overview AS sa.tablet_image_url_1, sa.tablet_image_url_2, sa.tablet_image_url_3, + to_tsvector('simple'::regconfig, (((((COALESCE(sa.name, ''::character varying))::text || ' '::text) || (COALESCE(sa.store_id, ''::character varying))::text) || ' '::text) || (COALESCE(d.name, ''::character varying))::text)) AS textsearchable, d.developer_id, d.name AS developer_name, pd.domain_name AS developer_url, @@ -1509,12 +1512,12 @@ ALTER SEQUENCE adtech.url_redirect_chains_id_seq OWNED BY adtech.url_redirect_ch CREATE TABLE adtech.urls ( id integer NOT NULL, url text NOT NULL, - url_hash character(32) GENERATED ALWAYS AS (md5(url)) STORED, domain_id integer, scheme text NOT NULL, is_deep_link boolean GENERATED ALWAYS AS ((scheme <> ALL (ARRAY['http'::text, 'https'::text, 'ftp'::text]))) STORED, created_at timestamp with time zone DEFAULT now(), - hostname text + hostname text, + url_hash character(32) ); @@ -2448,6 +2451,7 @@ CREATE MATERIALIZED VIEW frontend.companies_creative_rankings AS SELECT ca.file_extension, ac_1.id AS api_call_id, cr.advertiser_store_app_id, + cr.advertiser_domain_id, cr.creative_initial_domain_id, cr.creative_host_domain_id, cr.additional_ad_domain_ids, @@ -2465,6 +2469,7 @@ CREATE MATERIALIZED VIEW frontend.companies_creative_rankings AS cr.file_extension, cr.creative_initial_domain_id AS domain_id, cr.advertiser_store_app_id, + cr.advertiser_domain_id, cr.run_at FROM creative_rankings cr UNION @@ -2474,6 +2479,7 @@ CREATE MATERIALIZED VIEW frontend.companies_creative_rankings AS cr.file_extension, cr.creative_host_domain_id, cr.advertiser_store_app_id, + cr.advertiser_domain_id, cr.run_at FROM creative_rankings cr UNION @@ -2483,19 +2489,21 @@ CREATE MATERIALIZED VIEW frontend.companies_creative_rankings AS cr.file_extension, unnest(cr.additional_ad_domain_ids) AS unnest, cr.advertiser_store_app_id, + cr.advertiser_domain_id, cr.run_at FROM creative_rankings cr ), visually_distinct AS ( SELECT cdm.company_id, cd.file_extension, cd.advertiser_store_app_id, + cd.advertiser_domain_id, cd.vhash, min((cd.md5_hash)::text) AS md5_hash, max(cd.api_call_id) AS last_api_call_id, max(cd.run_at) AS last_seen FROM (combined_domains cd LEFT JOIN adtech.company_domain_mapping cdm ON ((cd.domain_id = cdm.domain_id))) - GROUP BY cdm.company_id, cd.file_extension, cd.advertiser_store_app_id, cd.vhash + GROUP BY cdm.company_id, cd.file_extension, cd.advertiser_store_app_id, cd.advertiser_domain_id, cd.vhash ) SELECT vd.company_id, vd.md5_hash, @@ -2504,6 +2512,7 @@ CREATE MATERIALIZED VIEW frontend.companies_creative_rankings AS saa.name AS advertiser_name, saa.store, saa.store_id AS advertiser_store_id, + adv.domain_name AS advertiser_domain_name, sap.store_id AS publisher_store_id, sap.name AS publisher_name, saa.installs, @@ -2522,10 +2531,11 @@ CREATE MATERIALIZED VIEW frontend.companies_creative_rankings AS WHEN (sap.icon_url_100 IS NOT NULL) THEN (concat('https://media.appgoblin.info/app-icons/', sap.store_id, '/', sap.icon_url_100))::character varying ELSE sap.icon_url_512 END AS publisher_icon_url - FROM (((((visually_distinct vd + FROM ((((((visually_distinct vd LEFT JOIN public.api_calls ac ON ((vd.last_api_call_id = ac.id))) LEFT JOIN adtech.companies c ON ((vd.company_id = c.id))) LEFT JOIN public.domains ad ON ((c.domain_id = ad.id))) + LEFT JOIN public.domains adv ON ((vd.advertiser_domain_id = adv.id))) LEFT JOIN frontend.store_apps_overview saa ON ((vd.advertiser_store_app_id = saa.id))) LEFT JOIN frontend.store_apps_overview sap ON ((ac.store_app = sap.id))) WHERE (c.id IS NOT NULL) @@ -2535,102 +2545,6 @@ CREATE MATERIALIZED VIEW frontend.companies_creative_rankings AS ALTER MATERIALIZED VIEW frontend.companies_creative_rankings OWNER TO postgres; --- --- Name: companies_creative_rankings_new; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres --- - -CREATE MATERIALIZED VIEW frontend.companies_creative_rankings_new AS - WITH creative_rankings AS ( - SELECT ca.file_extension, - ac_1.id AS api_call_id, - cr.advertiser_store_app_id, - cr.creative_initial_domain_id, - cr.creative_host_domain_id, - cr.additional_ad_domain_ids, - vcasr.run_at, - ca.md5_hash, - COALESCE(ca.phash, ca.md5_hash) AS vhash - FROM (((public.creative_records cr - LEFT JOIN public.creative_assets ca ON ((cr.creative_asset_id = ca.id))) - LEFT JOIN public.api_calls ac_1 ON ((cr.api_call_id = ac_1.id))) - LEFT JOIN public.version_code_api_scan_results vcasr ON ((ac_1.run_id = vcasr.id))) - ), combined_domains AS ( - SELECT cr.api_call_id, - cr.vhash, - cr.md5_hash, - cr.file_extension, - cr.creative_initial_domain_id AS domain_id, - cr.advertiser_store_app_id, - cr.run_at - FROM creative_rankings cr - UNION - SELECT cr.api_call_id, - cr.vhash, - cr.md5_hash, - cr.file_extension, - cr.creative_host_domain_id, - cr.advertiser_store_app_id, - cr.run_at - FROM creative_rankings cr - UNION - SELECT cr.api_call_id, - cr.vhash, - cr.md5_hash, - cr.file_extension, - unnest(cr.additional_ad_domain_ids) AS unnest, - cr.advertiser_store_app_id, - cr.run_at - FROM creative_rankings cr - ), visually_distinct AS ( - SELECT cdm.company_id, - cd.file_extension, - cd.advertiser_store_app_id, - cd.vhash, - min((cd.md5_hash)::text) AS md5_hash, - max(cd.api_call_id) AS last_api_call_id, - max(cd.run_at) AS last_seen - FROM (combined_domains cd - LEFT JOIN adtech.company_domain_mapping cdm ON ((cd.domain_id = cdm.domain_id))) - GROUP BY cdm.company_id, cd.file_extension, cd.advertiser_store_app_id, cd.vhash - ) - SELECT vd.company_id, - vd.md5_hash, - vd.file_extension, - ad.domain_name AS company_domain, - saa.name AS advertiser_name, - saa.store, - saa.store_id AS advertiser_store_id, - sap.store_id AS publisher_store_id, - sap.name AS publisher_name, - saa.installs, - saa.rating_count, - saa.rating, - saa.installs_sum_1w, - saa.ratings_sum_1w, - saa.installs_sum_4w, - saa.ratings_sum_4w, - vd.last_seen, - CASE - WHEN (saa.icon_url_100 IS NOT NULL) THEN (concat('https://media.appgoblin.info/app-icons/', saa.store_id, '/', saa.icon_url_100))::character varying - ELSE saa.icon_url_512 - END AS advertiser_icon_url, - CASE - WHEN (sap.icon_url_100 IS NOT NULL) THEN (concat('https://media.appgoblin.info/app-icons/', sap.store_id, '/', sap.icon_url_100))::character varying - ELSE sap.icon_url_512 - END AS publisher_icon_url - FROM (((((visually_distinct vd - LEFT JOIN public.api_calls ac ON ((vd.last_api_call_id = ac.id))) - LEFT JOIN adtech.companies c ON ((vd.company_id = c.id))) - LEFT JOIN public.domains ad ON ((c.domain_id = ad.id))) - LEFT JOIN frontend.store_apps_overview saa ON ((vd.advertiser_store_app_id = saa.id))) - LEFT JOIN frontend.store_apps_overview sap ON ((ac.store_app = sap.id))) - WHERE (c.id IS NOT NULL) - ORDER BY vd.last_seen DESC - WITH NO DATA; - - -ALTER MATERIALIZED VIEW frontend.companies_creative_rankings_new OWNER TO postgres; - -- -- Name: companies_open_source_percent; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres -- @@ -3793,27 +3707,6 @@ ALTER TABLE public.app_urls_map ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDEN ); --- --- Name: audit_dates; Type: MATERIALIZED VIEW; Schema: public; Owner: postgres --- - -CREATE MATERIALIZED VIEW public.audit_dates AS - WITH sa AS ( - SELECT (store_apps_audit.stamp)::date AS updated_date, - 'store_apps'::text AS table_name, - count(*) AS updated_count - FROM logging.store_apps_audit - GROUP BY ((store_apps_audit.stamp)::date) - ) - SELECT updated_date, - table_name, - updated_count - FROM sa - WITH NO DATA; - - -ALTER MATERIALIZED VIEW public.audit_dates OWNER TO postgres; - -- -- Name: crawl_results; Type: TABLE; Schema: public; Owner: james -- @@ -4193,36 +4086,6 @@ CREATE TABLE public.store_app_z_scores_history ( ALTER TABLE public.store_app_z_scores_history OWNER TO postgres; --- --- Name: store_apps_created_at; Type: MATERIALIZED VIEW; Schema: public; Owner: postgres --- - -CREATE MATERIALIZED VIEW public.store_apps_created_at AS - WITH my_dates AS ( - SELECT num_series.store, - (generate_series((CURRENT_DATE - '365 days'::interval), (CURRENT_DATE)::timestamp without time zone, '1 day'::interval))::date AS date - FROM generate_series(1, 2, 1) num_series(store) - ), created_dates AS ( - SELECT sa.store, - (sa.created_at)::date AS created_date, - sas.crawl_source, - count(*) AS created_count - FROM (public.store_apps sa - LEFT JOIN logging.store_app_sources sas ON (((sa.id = sas.store_app) AND (sa.store = sas.store)))) - WHERE (sa.created_at >= (CURRENT_DATE - '365 days'::interval)) - GROUP BY sa.store, ((sa.created_at)::date), sas.crawl_source - ) - SELECT my_dates.store, - my_dates.date, - created_dates.crawl_source, - created_dates.created_count - FROM (my_dates - LEFT JOIN created_dates ON (((my_dates.date = created_dates.created_date) AND (my_dates.store = created_dates.store)))) - WITH NO DATA; - - -ALTER MATERIALIZED VIEW public.store_apps_created_at OWNER TO postgres; - -- -- Name: store_apps_descriptions_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- @@ -4312,36 +4175,6 @@ UNION ALTER MATERIALIZED VIEW public.store_apps_in_latest_rankings OWNER TO postgres; --- --- Name: store_apps_updated_at; Type: MATERIALIZED VIEW; Schema: public; Owner: postgres --- - -CREATE MATERIALIZED VIEW public.store_apps_updated_at AS - WITH my_dates AS ( - SELECT num_series.store, - (generate_series((CURRENT_DATE - '365 days'::interval), (CURRENT_DATE)::timestamp without time zone, '1 day'::interval))::date AS date - FROM generate_series(1, 2, 1) num_series(store) - ), updated_dates AS ( - SELECT store_apps.store, - (store_apps.updated_at)::date AS last_updated_date, - count(*) AS last_updated_count - FROM public.store_apps - WHERE (store_apps.updated_at >= (CURRENT_DATE - '365 days'::interval)) - GROUP BY store_apps.store, ((store_apps.updated_at)::date) - ) - SELECT my_dates.store, - my_dates.date, - updated_dates.last_updated_count, - audit_dates.updated_count - FROM ((my_dates - LEFT JOIN updated_dates ON (((my_dates.date = updated_dates.last_updated_date) AND (my_dates.store = updated_dates.store)))) - LEFT JOIN public.audit_dates ON ((my_dates.date = audit_dates.updated_date))) - ORDER BY my_dates.date DESC - WITH NO DATA; - - -ALTER MATERIALIZED VIEW public.store_apps_updated_at OWNER TO postgres; - -- -- Name: store_categories_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- @@ -5544,10 +5377,10 @@ CREATE UNIQUE INDEX url_redirect_chains_unique_idx ON adtech.url_redirect_chains -- --- Name: urls_idx; Type: INDEX; Schema: adtech; Owner: postgres +-- Name: urls_url_hash_idx; Type: INDEX; Schema: adtech; Owner: postgres -- -CREATE UNIQUE INDEX urls_idx ON adtech.urls USING btree (md5(url)); +CREATE UNIQUE INDEX urls_url_hash_idx ON adtech.urls USING btree (url_hash); -- @@ -6026,13 +5859,6 @@ CREATE UNIQUE INDEX app_global_metrics_weekly_diffs_week_start_store_app_idx ON CREATE INDEX app_keywords_app_index ON public.app_keywords_extracted USING btree (store_app); --- --- Name: audit_dates_updated_date_idx; Type: INDEX; Schema: public; Owner: postgres --- - -CREATE UNIQUE INDEX audit_dates_updated_date_idx ON public.audit_dates USING btree (updated_date, table_name); - - -- -- Name: category_mapping_idx; Type: INDEX; Schema: public; Owner: postgres -- @@ -6138,34 +5964,6 @@ CREATE INDEX idx_ip_geo_ip_created ON public.ip_geo_snapshots USING btree (ip_ad CREATE INDEX idx_ip_geo_mitm_uuid ON public.ip_geo_snapshots USING btree (mitm_uuid); --- --- Name: idx_my_materialized_view_store_date; Type: INDEX; Schema: public; Owner: postgres --- - -CREATE INDEX idx_my_materialized_view_store_date ON public.store_apps_updated_at USING btree (store, date); - - --- --- Name: idx_store_apps_created_at; Type: INDEX; Schema: public; Owner: postgres --- - -CREATE INDEX idx_store_apps_created_at ON public.store_apps_created_at USING btree (store, date, crawl_source); - - --- --- Name: idx_store_apps_created_atx; Type: INDEX; Schema: public; Owner: postgres --- - -CREATE UNIQUE INDEX idx_store_apps_created_atx ON public.store_apps_created_at USING btree (store, date, crawl_source); - - --- --- Name: idx_store_apps_updated_at; Type: INDEX; Schema: public; Owner: postgres --- - -CREATE UNIQUE INDEX idx_store_apps_updated_at ON public.store_apps_updated_at USING btree (store, date); - - -- -- Name: store_apps_descriptions_unique_hash_idx; Type: INDEX; Schema: public; Owner: postgres -- @@ -6271,13 +6069,6 @@ CREATE TRIGGER app_urls_map_updated_at BEFORE UPDATE ON public.app_urls_map FOR CREATE TRIGGER developers_updated_at BEFORE UPDATE ON public.developers FOR EACH ROW EXECUTE FUNCTION public.update_modified_column(); --- --- Name: store_apps store_app_audit; Type: TRIGGER; Schema: public; Owner: james --- - -CREATE TRIGGER store_app_audit AFTER INSERT OR DELETE OR UPDATE ON public.store_apps FOR EACH ROW EXECUTE FUNCTION public.process_store_app_audit(); - - -- -- Name: store_apps store_apps_updated_at; Type: TRIGGER; Schema: public; Owner: james -- @@ -6920,5 +6711,5 @@ GRANT ALL ON SCHEMA public TO PUBLIC; -- PostgreSQL database dump complete -- -\unrestrict ySc2meWErSxCQVEpDkycKZtM3csY5mSwW2VJpw5QrDlus0OfJGEc3iNClUysXTC +\unrestrict CJQVCBsnAPakytBZfez5IIoNv5kKAuHgoLwfP308aWlkrButsWv9fYs0KjFSzDE diff --git a/pg-ddl/schema/logging/app_country_crawls.sql b/pg-ddl/schema/logging/app_country_crawls.sql index 4dd7967b..66501eb8 100644 --- a/pg-ddl/schema/logging/app_country_crawls.sql +++ b/pg-ddl/schema/logging/app_country_crawls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict VXyyhHoTxV5OOAfVxhxBqfE2YEElmhf496ByhQnk0IzrRN7hQTolSQqMaIbf2SM +\restrict FChUABdyt1zZ0J0zG6eG6t1GFKJ8KiyeCLNkNEFRpd0ZbSQGGHdKYSwwTnxWC1t -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -57,5 +57,5 @@ ALTER TABLE ONLY logging.app_country_crawls -- PostgreSQL database dump complete -- -\unrestrict VXyyhHoTxV5OOAfVxhxBqfE2YEElmhf496ByhQnk0IzrRN7hQTolSQqMaIbf2SM +\unrestrict FChUABdyt1zZ0J0zG6eG6t1GFKJ8KiyeCLNkNEFRpd0ZbSQGGHdKYSwwTnxWC1t diff --git a/pg-ddl/schema/logging/creative_scan_results.sql b/pg-ddl/schema/logging/creative_scan_results.sql index 8582bf18..d72f9d9b 100644 --- a/pg-ddl/schema/logging/creative_scan_results.sql +++ b/pg-ddl/schema/logging/creative_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 2MUyqGk3yQfCM7yGoGwrDs36eNyjEE2ek3jLBgSd8TJvEQvrbZWalUvorXpS36G +\restrict DJ9DeAEzd5ucGX2Xr2WDCRVjSObKTtwOuZSHzORF3fadghgxZcMwhqNTVGn05hN -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -47,5 +47,5 @@ ALTER TABLE logging.creative_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 2MUyqGk3yQfCM7yGoGwrDs36eNyjEE2ek3jLBgSd8TJvEQvrbZWalUvorXpS36G +\unrestrict DJ9DeAEzd5ucGX2Xr2WDCRVjSObKTtwOuZSHzORF3fadghgxZcMwhqNTVGn05hN diff --git a/pg-ddl/schema/logging/developers_crawled_at.sql b/pg-ddl/schema/logging/developers_crawled_at.sql index ff29c36f..3ba5d0f4 100644 --- a/pg-ddl/schema/logging/developers_crawled_at.sql +++ b/pg-ddl/schema/logging/developers_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict LMLrpwRlUO0MFGlkIubyhSehn9pfM2FwwM1zdnjyz5tUDk7R5Tyb4i7L8eW56sQ +\restrict EPrpKsn7JMGvP49rzA1IUDHvQkmUE6KIiamz8dVTaMuHyXVhGfHTUeMyZ79T7ja -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.developers_crawled_at -- PostgreSQL database dump complete -- -\unrestrict LMLrpwRlUO0MFGlkIubyhSehn9pfM2FwwM1zdnjyz5tUDk7R5Tyb4i7L8eW56sQ +\unrestrict EPrpKsn7JMGvP49rzA1IUDHvQkmUE6KIiamz8dVTaMuHyXVhGfHTUeMyZ79T7ja diff --git a/pg-ddl/schema/logging/keywords_crawled_at.sql b/pg-ddl/schema/logging/keywords_crawled_at.sql index 2dfbdecf..c46d5759 100644 --- a/pg-ddl/schema/logging/keywords_crawled_at.sql +++ b/pg-ddl/schema/logging/keywords_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict EKrPVaBEZCNgPvvKk9lYFNUgDjURKBd7DG4KBp98JaSeIrZM15ks4p40IO3QAH7 +\restrict 6b3ZM2xAKgqEOjxyzD8Xh7QQJdMyppwHpoc392MpUJ2uo4g3xzgdUa4UPQoGNv4 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.keywords_crawled_at -- PostgreSQL database dump complete -- -\unrestrict EKrPVaBEZCNgPvvKk9lYFNUgDjURKBd7DG4KBp98JaSeIrZM15ks4p40IO3QAH7 +\unrestrict 6b3ZM2xAKgqEOjxyzD8Xh7QQJdMyppwHpoc392MpUJ2uo4g3xzgdUa4UPQoGNv4 diff --git a/pg-ddl/schema/logging/snapshot_pub_domains.sql b/pg-ddl/schema/logging/snapshot_pub_domains.sql index 1384c667..8410c26f 100644 --- a/pg-ddl/schema/logging/snapshot_pub_domains.sql +++ b/pg-ddl/schema/logging/snapshot_pub_domains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict xFlp2n9Y4auNRUi3lkhUdmq6DcWMiEE6y1Z9Iak8cfZXNmfl767TzgwZQEEi4U0 +\restrict 8DJ6zcSBuSmBXeTvF6dwelgmcgeoVcqIdL9fHxsuzZUZXvLeSeL2EOPEunb6Hde -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -43,5 +43,5 @@ ALTER TABLE logging.snapshot_pub_domains OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict xFlp2n9Y4auNRUi3lkhUdmq6DcWMiEE6y1Z9Iak8cfZXNmfl767TzgwZQEEi4U0 +\unrestrict 8DJ6zcSBuSmBXeTvF6dwelgmcgeoVcqIdL9fHxsuzZUZXvLeSeL2EOPEunb6Hde diff --git a/pg-ddl/schema/logging/store_app_downloads.sql b/pg-ddl/schema/logging/store_app_downloads.sql index 8159982d..86272d8c 100644 --- a/pg-ddl/schema/logging/store_app_downloads.sql +++ b/pg-ddl/schema/logging/store_app_downloads.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict nfNQwmdrsQEMOHAnQr6fnWR2hdcHJsDEE5V1nNcfCuQO7ALOOrVfSrciInhfpI5 +\restrict XBbdOC9NwSrIM7krZ6XKhsYbEfR8YOqAE5KEnjSLAvLrDpz3v1bqv2DeNJQNlMZ -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -49,5 +49,5 @@ ALTER TABLE ONLY logging.store_app_downloads -- PostgreSQL database dump complete -- -\unrestrict nfNQwmdrsQEMOHAnQr6fnWR2hdcHJsDEE5V1nNcfCuQO7ALOOrVfSrciInhfpI5 +\unrestrict XBbdOC9NwSrIM7krZ6XKhsYbEfR8YOqAE5KEnjSLAvLrDpz3v1bqv2DeNJQNlMZ diff --git a/pg-ddl/schema/logging/store_app_no_creatives.sql b/pg-ddl/schema/logging/store_app_no_creatives.sql index d913829e..b2acc879 100644 --- a/pg-ddl/schema/logging/store_app_no_creatives.sql +++ b/pg-ddl/schema/logging/store_app_no_creatives.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict EYhqakrqIZfm61j9iPbRrhoqrJmhg0H3UjN75i7mxwbnqUedyyECW9TNjwc2CPH +\restrict 1asLxBpT76J3f7fKVosOfwh6OiQUTqrbgHeDmvAnmDBLD3lkihkdgpzakcXBb2r -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -40,5 +40,5 @@ ALTER TABLE logging.store_app_no_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict EYhqakrqIZfm61j9iPbRrhoqrJmhg0H3UjN75i7mxwbnqUedyyECW9TNjwc2CPH +\unrestrict 1asLxBpT76J3f7fKVosOfwh6OiQUTqrbgHeDmvAnmDBLD3lkihkdgpzakcXBb2r diff --git a/pg-ddl/schema/logging/store_app_sources.sql b/pg-ddl/schema/logging/store_app_sources.sql index 49ef8b92..af6324bf 100644 --- a/pg-ddl/schema/logging/store_app_sources.sql +++ b/pg-ddl/schema/logging/store_app_sources.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict yXN5isfGKNlMA4gmIVULgQZcDhVLdribZIl5X7f8j7G9lWQlrT07JVedYedwlJn +\restrict oiyAAXHX5h9yu0AGhcMa082tBXeQjey9sZVodMMToV4YKBpUQhZhDxXS4vvP6xg -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -64,5 +64,5 @@ ALTER TABLE ONLY logging.store_app_sources -- PostgreSQL database dump complete -- -\unrestrict yXN5isfGKNlMA4gmIVULgQZcDhVLdribZIl5X7f8j7G9lWQlrT07JVedYedwlJn +\unrestrict oiyAAXHX5h9yu0AGhcMa082tBXeQjey9sZVodMMToV4YKBpUQhZhDxXS4vvP6xg diff --git a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql index e361519a..b5fd64c6 100644 --- a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql +++ b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict sNBHedcgyIQjakX0cQ9bedY6y1zH2YGIm7cdrge5IEyojKcd4nwV23k4v9qlb0W +\restrict rcr3D1lnaapPRzAhHMRKbJSH1SZnLXA9jVkZwsSl2phZLoZdEpPVBJ9artV2AkG -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -63,5 +63,5 @@ ALTER TABLE ONLY logging.store_app_waydroid_crawled_at -- PostgreSQL database dump complete -- -\unrestrict sNBHedcgyIQjakX0cQ9bedY6y1zH2YGIm7cdrge5IEyojKcd4nwV23k4v9qlb0W +\unrestrict rcr3D1lnaapPRzAhHMRKbJSH1SZnLXA9jVkZwsSl2phZLoZdEpPVBJ9artV2AkG diff --git a/pg-ddl/schema/logging/store_apps_audit.sql b/pg-ddl/schema/logging/store_apps_audit.sql index 1092efba..99eddc70 100644 --- a/pg-ddl/schema/logging/store_apps_audit.sql +++ b/pg-ddl/schema/logging/store_apps_audit.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Z6LBhmP3rtL0nqwCNRJkxEjzdXcWFPQTkykgC3TQEmaT9i9AU8oUsrDKfz8RXVK +\restrict AZ9q6rCieMNdfChCz8JIlINx6VPYRdHQzqEvPHmeCI4y0K4H4DXeeaOaKv4Ck7g -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -51,5 +51,5 @@ CREATE INDEX store_apps_audit_stamp_idx ON logging.store_apps_audit USING btree -- PostgreSQL database dump complete -- -\unrestrict Z6LBhmP3rtL0nqwCNRJkxEjzdXcWFPQTkykgC3TQEmaT9i9AU8oUsrDKfz8RXVK +\unrestrict AZ9q6rCieMNdfChCz8JIlINx6VPYRdHQzqEvPHmeCI4y0K4H4DXeeaOaKv4Ck7g diff --git a/pg-ddl/schema/logging/store_apps_snapshot.sql b/pg-ddl/schema/logging/store_apps_snapshot.sql index 2adca4a1..b0ef78ed 100644 --- a/pg-ddl/schema/logging/store_apps_snapshot.sql +++ b/pg-ddl/schema/logging/store_apps_snapshot.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict wmtUV9yCW1Kszn6txwI9hBlzQGRTbB7kCDlbxaPJNr0qzHcIJVnXbJwBmvY8neM +\restrict JlLMUquRWImJ7nXFpB8rCH2L7NnMNAV8K3Givi1UOxlYgOYlRhAjTbiUaGtVE9l -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -44,5 +44,5 @@ ALTER TABLE logging.store_apps_snapshot OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict wmtUV9yCW1Kszn6txwI9hBlzQGRTbB7kCDlbxaPJNr0qzHcIJVnXbJwBmvY8neM +\unrestrict JlLMUquRWImJ7nXFpB8rCH2L7NnMNAV8K3Givi1UOxlYgOYlRhAjTbiUaGtVE9l diff --git a/pg-ddl/schema/logging/version_code_api_scan_results.sql b/pg-ddl/schema/logging/version_code_api_scan_results.sql index 5c8fb007..43bf0cb5 100644 --- a/pg-ddl/schema/logging/version_code_api_scan_results.sql +++ b/pg-ddl/schema/logging/version_code_api_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5Cc2XCEATj2Ls3S7G1Qsw3T4esPoBcabs7v56ThzHH1UoMVZ0eCQfGV4FDHe1VY +\restrict aF3lNloopHkMTV0wSZ5BNfMhgdbqg1RVV4sVO6gsoPPoNcFll3WtDU1bLZl2z5x -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -42,5 +42,5 @@ ALTER TABLE logging.version_code_api_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 5Cc2XCEATj2Ls3S7G1Qsw3T4esPoBcabs7v56ThzHH1UoMVZ0eCQfGV4FDHe1VY +\unrestrict aF3lNloopHkMTV0wSZ5BNfMhgdbqg1RVV4sVO6gsoPPoNcFll3WtDU1bLZl2z5x diff --git a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql index e9bef726..c8a1dbaf 100644 --- a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql +++ b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict noUqOIjgfeCaTuY9EqIDwoDm3W4xfrqK4IyHQZMaYY27DtIVBReJXmBqJQVYD8L +\restrict MhprDpEy8exZOrOIsRdI8PtC6ZDF39HmGShR3GTerHH1JaAjqdmv3bospezBXn8 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -60,5 +60,5 @@ ALTER MATERIALIZED VIEW public.ad_network_sdk_keys OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict noUqOIjgfeCaTuY9EqIDwoDm3W4xfrqK4IyHQZMaYY27DtIVBReJXmBqJQVYD8L +\unrestrict MhprDpEy8exZOrOIsRdI8PtC6ZDF39HmGShR3GTerHH1JaAjqdmv3bospezBXn8 diff --git a/pg-ddl/schema/public/adstxt_crawl_results.sql b/pg-ddl/schema/public/adstxt_crawl_results.sql index 53ebc22d..30a14e32 100644 --- a/pg-ddl/schema/public/adstxt_crawl_results.sql +++ b/pg-ddl/schema/public/adstxt_crawl_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict EBcJQZi0dGuZJ19lDUIKrIDjBKp95fgtlHCUUrSpFhdxsAZgaXYP1TvsMU01krB +\restrict iGTqNrb5g1yhXkahnpQHAIUjDQ9z7izf6H4aFRqvG1a9uTiPjgCipTMcYJmIF6T -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -96,5 +96,5 @@ ALTER TABLE ONLY public.adstxt_crawl_results -- PostgreSQL database dump complete -- -\unrestrict EBcJQZi0dGuZJ19lDUIKrIDjBKp95fgtlHCUUrSpFhdxsAZgaXYP1TvsMU01krB +\unrestrict iGTqNrb5g1yhXkahnpQHAIUjDQ9z7izf6H4aFRqvG1a9uTiPjgCipTMcYJmIF6T diff --git a/pg-ddl/schema/public/api_calls.sql b/pg-ddl/schema/public/api_calls.sql index 6005c423..7304a59a 100644 --- a/pg-ddl/schema/public/api_calls.sql +++ b/pg-ddl/schema/public/api_calls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict M8e99cciykegLK8mqWRkkgjvUdkeps978gMR35oIHIa8NcbgzRaaDsBPNeySDYW +\restrict nOSwGYMjQ6CSJZ05dgFuklTqt15hEJRO7hiLSoxYcyKa0tLLaA5bgdd80r9EFu9 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -135,5 +135,5 @@ ALTER TABLE ONLY public.api_calls -- PostgreSQL database dump complete -- -\unrestrict M8e99cciykegLK8mqWRkkgjvUdkeps978gMR35oIHIa8NcbgzRaaDsBPNeySDYW +\unrestrict nOSwGYMjQ6CSJZ05dgFuklTqt15hEJRO7hiLSoxYcyKa0tLLaA5bgdd80r9EFu9 diff --git a/pg-ddl/schema/public/app_ads_entrys.sql b/pg-ddl/schema/public/app_ads_entrys.sql index 27be0e21..15a921d2 100644 --- a/pg-ddl/schema/public/app_ads_entrys.sql +++ b/pg-ddl/schema/public/app_ads_entrys.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict gdOD8IShZ01FtaTMfD0VCYcGjufwBoGw379OUQXnfmZWc7cytmMeEGs3pIah4q6 +\restrict vckewcQqcfb2vhpyKRrDjATQKsXwiHe9Tqdkw21bn9qUmIMZZqvp8jK8qbViBzk -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -90,5 +90,5 @@ ALTER TABLE ONLY public.app_ads_entrys -- PostgreSQL database dump complete -- -\unrestrict gdOD8IShZ01FtaTMfD0VCYcGjufwBoGw379OUQXnfmZWc7cytmMeEGs3pIah4q6 +\unrestrict vckewcQqcfb2vhpyKRrDjATQKsXwiHe9Tqdkw21bn9qUmIMZZqvp8jK8qbViBzk diff --git a/pg-ddl/schema/public/app_ads_map.sql b/pg-ddl/schema/public/app_ads_map.sql index df94d2d7..e6e102b7 100644 --- a/pg-ddl/schema/public/app_ads_map.sql +++ b/pg-ddl/schema/public/app_ads_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict yHIWcYtYR1Vgdncw8CEmXDzAG9Pp3hu4ZX5Kic5T576nf3RW12IjWeq5mhR5GKb +\restrict lBRvDWRbAg23RBYQ3tCRjQiGWbIGaUkRHg5lObWnrldFqE0Vc4nOPv1djbAA4nw -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_ads_map -- PostgreSQL database dump complete -- -\unrestrict yHIWcYtYR1Vgdncw8CEmXDzAG9Pp3hu4ZX5Kic5T576nf3RW12IjWeq5mhR5GKb +\unrestrict lBRvDWRbAg23RBYQ3tCRjQiGWbIGaUkRHg5lObWnrldFqE0Vc4nOPv1djbAA4nw diff --git a/pg-ddl/schema/public/app_country_metrics_history.sql b/pg-ddl/schema/public/app_country_metrics_history.sql index 56b40ea6..c3ff3a91 100644 --- a/pg-ddl/schema/public/app_country_metrics_history.sql +++ b/pg-ddl/schema/public/app_country_metrics_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict g47eTH7m7lKHRd1P5fWbguPtwNS6I0RPHanqHx2od6KHX9ntPz6qY8OJKmJF1aV +\restrict cqTdgyrix5UKSpXcBi1jLakQKLhxUzWP8OZMjN2FMQerLoDrvcewbZg7ExhgfR7 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.app_country_metrics_history -- PostgreSQL database dump complete -- -\unrestrict g47eTH7m7lKHRd1P5fWbguPtwNS6I0RPHanqHx2od6KHX9ntPz6qY8OJKmJF1aV +\unrestrict cqTdgyrix5UKSpXcBi1jLakQKLhxUzWP8OZMjN2FMQerLoDrvcewbZg7ExhgfR7 diff --git a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql index 670b5207..5b766d3f 100644 --- a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict DT2sxvzBOdIlkgsis5gvKgk5lbRfuzS1N4cKggT8N7Tb3iuurj0rfWfhBNvvC49 +\restrict 1vNicCTX7sevQhVSU2pdJe65eHWLXPbPvZmXtDpKBNvi8Lp9Uha7g6TDcx9jbi3 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -57,5 +57,5 @@ CREATE UNIQUE INDEX app_country_metrics_latest_idx ON public.app_country_metrics -- PostgreSQL database dump complete -- -\unrestrict DT2sxvzBOdIlkgsis5gvKgk5lbRfuzS1N4cKggT8N7Tb3iuurj0rfWfhBNvvC49 +\unrestrict 1vNicCTX7sevQhVSU2pdJe65eHWLXPbPvZmXtDpKBNvi8Lp9Uha7g6TDcx9jbi3 diff --git a/pg-ddl/schema/public/app_global_metrics_history.sql b/pg-ddl/schema/public/app_global_metrics_history.sql index 106f9012..31c4db84 100644 --- a/pg-ddl/schema/public/app_global_metrics_history.sql +++ b/pg-ddl/schema/public/app_global_metrics_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict q0q0GxHbSm1fWwEf8MANlQMRa3dLDMyvXC2Ukjy3M4yWeJDQT0gYQthRxtA2a2H +\restrict SAWFzb2Ocsw4NenxalSrhrOec4xh4Lw8byu0ZdK4EdoKwS7YXRB02a4dGguRbBe -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.app_global_metrics_history -- PostgreSQL database dump complete -- -\unrestrict q0q0GxHbSm1fWwEf8MANlQMRa3dLDMyvXC2Ukjy3M4yWeJDQT0gYQthRxtA2a2H +\unrestrict SAWFzb2Ocsw4NenxalSrhrOec4xh4Lw8byu0ZdK4EdoKwS7YXRB02a4dGguRbBe diff --git a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql index bbde1001..78fbf991 100644 --- a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict pxlgibO5O1L3b9zBapJzsAuaNJfK1xIngxi4O4JIspn5aYjDxSOWZEHmCsGQhkS +\restrict H2LJ4kih6YssGjnqdPhz7TPKOW8geE1IaN9LarIaHPLDpA9g6DVeKfV4cJWSokR -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX app_global_metrics_latest_idx ON public.app_global_metrics_l -- PostgreSQL database dump complete -- -\unrestrict pxlgibO5O1L3b9zBapJzsAuaNJfK1xIngxi4O4JIspn5aYjDxSOWZEHmCsGQhkS +\unrestrict H2LJ4kih6YssGjnqdPhz7TPKOW8geE1IaN9LarIaHPLDpA9g6DVeKfV4cJWSokR diff --git a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql index 96e4f3fb..12295794 100644 --- a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ddyohlmuMta3TXOAOCqj7tIRlabvAaAmNofIEEJXpGMlExnJDGQVHi4zosKh1wa +\restrict tTl3EfTrDI7IOd8HVQlAtWAahE8ovKidscCU0v2IGnQjp9o32NRFnSibuX6Z9S8 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX app_global_metrics_weekly_diffs_week_start_store_app_idx ON -- PostgreSQL database dump complete -- -\unrestrict ddyohlmuMta3TXOAOCqj7tIRlabvAaAmNofIEEJXpGMlExnJDGQVHi4zosKh1wa +\unrestrict tTl3EfTrDI7IOd8HVQlAtWAahE8ovKidscCU0v2IGnQjp9o32NRFnSibuX6Z9S8 diff --git a/pg-ddl/schema/public/app_keywords_extracted.sql b/pg-ddl/schema/public/app_keywords_extracted.sql index ad2d29af..6d9a08db 100644 --- a/pg-ddl/schema/public/app_keywords_extracted.sql +++ b/pg-ddl/schema/public/app_keywords_extracted.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict uGiMEKfsc7XXgBWkkudigWwZcVAyem9xe7cOKW54MbxgiCwxsKisC2y7slJJsXz +\restrict CYVfvN79ujiwPXidg4dHtVLE3KzDhxuiek0TI928BVXes8ndMdaV01BKEzbhCiI -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -72,5 +72,5 @@ ALTER TABLE ONLY public.app_keywords_extracted -- PostgreSQL database dump complete -- -\unrestrict uGiMEKfsc7XXgBWkkudigWwZcVAyem9xe7cOKW54MbxgiCwxsKisC2y7slJJsXz +\unrestrict CYVfvN79ujiwPXidg4dHtVLE3KzDhxuiek0TI928BVXes8ndMdaV01BKEzbhCiI diff --git a/pg-ddl/schema/public/app_urls_map.sql b/pg-ddl/schema/public/app_urls_map.sql index 9224948b..5cffc88f 100644 --- a/pg-ddl/schema/public/app_urls_map.sql +++ b/pg-ddl/schema/public/app_urls_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict hMVYRj3qaFbeiCPJQgdjO71hwj8e9SQyb2vfhiTGqsgSI8SDz8BWkCj3Ds9brcm +\restrict z0tp5XvOYTmEdHR64Oo5v9LPyBmKIPYCTjMItsGcEzPl58oH1IwFKSwrc9Hlt34 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_urls_map -- PostgreSQL database dump complete -- -\unrestrict hMVYRj3qaFbeiCPJQgdjO71hwj8e9SQyb2vfhiTGqsgSI8SDz8BWkCj3Ds9brcm +\unrestrict z0tp5XvOYTmEdHR64Oo5v9LPyBmKIPYCTjMItsGcEzPl58oH1IwFKSwrc9Hlt34 diff --git a/pg-ddl/schema/public/audit_dates__matview.sql b/pg-ddl/schema/public/audit_dates__matview.sql deleted file mode 100644 index 2f11facf..00000000 --- a/pg-ddl/schema/public/audit_dates__matview.sql +++ /dev/null @@ -1,59 +0,0 @@ --- --- PostgreSQL database dump --- - -\restrict mXd1rEMuK90Yef8Fodg9BHx4s5dvIE9w3bQKFzNwYZhQgA018RQb0XVK6fbhGXw - --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) - -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET transaction_timeout = 0; -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); -SET check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - -SET default_tablespace = ''; - -SET default_table_access_method = heap; - --- --- Name: audit_dates; Type: MATERIALIZED VIEW; Schema: public; Owner: postgres --- - -CREATE MATERIALIZED VIEW public.audit_dates AS - WITH sa AS ( - SELECT (store_apps_audit.stamp)::date AS updated_date, - 'store_apps'::text AS table_name, - count(*) AS updated_count - FROM logging.store_apps_audit - GROUP BY ((store_apps_audit.stamp)::date) - ) - SELECT updated_date, - table_name, - updated_count - FROM sa - WITH NO DATA; - - -ALTER MATERIALIZED VIEW public.audit_dates OWNER TO postgres; - --- --- Name: audit_dates_updated_date_idx; Type: INDEX; Schema: public; Owner: postgres --- - -CREATE UNIQUE INDEX audit_dates_updated_date_idx ON public.audit_dates USING btree (updated_date, table_name); - - --- --- PostgreSQL database dump complete --- - -\unrestrict mXd1rEMuK90Yef8Fodg9BHx4s5dvIE9w3bQKFzNwYZhQgA018RQb0XVK6fbhGXw - diff --git a/pg-ddl/schema/public/category_mapping__matview.sql b/pg-ddl/schema/public/category_mapping__matview.sql index 614dca41..000770f1 100644 --- a/pg-ddl/schema/public/category_mapping__matview.sql +++ b/pg-ddl/schema/public/category_mapping__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Auyxx7CZ6SIr9ePADNfDdJVxf2eJOiFRY5GyNC9bjHBuvmRIeI3mEWDJju7Dmbz +\restrict kxfapKfbbmWop7Vb8e2GdDlJKlRYkdoaioKhoJnILwHeBI79StUQFez7cAUKJSA -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -67,5 +67,5 @@ CREATE UNIQUE INDEX category_mapping_idx ON public.category_mapping USING btree -- PostgreSQL database dump complete -- -\unrestrict Auyxx7CZ6SIr9ePADNfDdJVxf2eJOiFRY5GyNC9bjHBuvmRIeI3mEWDJju7Dmbz +\unrestrict kxfapKfbbmWop7Vb8e2GdDlJKlRYkdoaioKhoJnILwHeBI79StUQFez7cAUKJSA diff --git a/pg-ddl/schema/public/countries.sql b/pg-ddl/schema/public/countries.sql index 82d5b620..2b7d4c35 100644 --- a/pg-ddl/schema/public/countries.sql +++ b/pg-ddl/schema/public/countries.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict xorKiuXYtsQKYXbltEYaAAo9Mlsdk8P0ePiKCvuaSptmF6b6wgQEylIWoQVpFWH +\restrict DG2E35hghUVm28fCyzy6dc2DId8yyb0qYXc7ysd7bn7c3LYawddFsbU1TdpDnDD -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -71,5 +71,5 @@ ALTER TABLE ONLY public.countries -- PostgreSQL database dump complete -- -\unrestrict xorKiuXYtsQKYXbltEYaAAo9Mlsdk8P0ePiKCvuaSptmF6b6wgQEylIWoQVpFWH +\unrestrict DG2E35hghUVm28fCyzy6dc2DId8yyb0qYXc7ysd7bn7c3LYawddFsbU1TdpDnDD diff --git a/pg-ddl/schema/public/crawl_results.sql b/pg-ddl/schema/public/crawl_results.sql index 550779f6..ebff3968 100644 --- a/pg-ddl/schema/public/crawl_results.sql +++ b/pg-ddl/schema/public/crawl_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict h0G8z1Zc59dchXG1dnpz48C3LfQ4m4vVJJ1855xw1vYhxNSWcAPE9the6GpglCv +\restrict 5W6dNgjNREH2gzmEVZlhx5UWa6eyrH8Oc7SmbZbDT7ZiRO9aCTnDLFqlGXRq8Fb -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -61,5 +61,5 @@ ALTER TABLE ONLY public.crawl_results -- PostgreSQL database dump complete -- -\unrestrict h0G8z1Zc59dchXG1dnpz48C3LfQ4m4vVJJ1855xw1vYhxNSWcAPE9the6GpglCv +\unrestrict 5W6dNgjNREH2gzmEVZlhx5UWa6eyrH8Oc7SmbZbDT7ZiRO9aCTnDLFqlGXRq8Fb diff --git a/pg-ddl/schema/public/crawl_scenario_country_config.sql b/pg-ddl/schema/public/crawl_scenario_country_config.sql index c6682fbe..129f6778 100644 --- a/pg-ddl/schema/public/crawl_scenario_country_config.sql +++ b/pg-ddl/schema/public/crawl_scenario_country_config.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Qb4LwhBaB5Ws4r8ShLEwAnPFnMlvBdXjXRrL1e2YRrVFDQIF0eYin03DVgyDNmv +\restrict a5nJ21dmVf2HX5PZ1G8sYFQcFmKCUalxapwRwVDyGn8SrnHhljy1akhD9bcBdHa -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.crawl_scenario_country_config -- PostgreSQL database dump complete -- -\unrestrict Qb4LwhBaB5Ws4r8ShLEwAnPFnMlvBdXjXRrL1e2YRrVFDQIF0eYin03DVgyDNmv +\unrestrict a5nJ21dmVf2HX5PZ1G8sYFQcFmKCUalxapwRwVDyGn8SrnHhljy1akhD9bcBdHa diff --git a/pg-ddl/schema/public/crawl_scenarios.sql b/pg-ddl/schema/public/crawl_scenarios.sql index 5d06ff36..77a38da6 100644 --- a/pg-ddl/schema/public/crawl_scenarios.sql +++ b/pg-ddl/schema/public/crawl_scenarios.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict rdUVa2qGnO6LbCwMfXhktA3VCh5gD2eTZcrHvijgPXbBuIvo3PW8NkLK5llS1ap +\restrict 2XFUwpwMgAUXWTCpfeMpssfvg6m9crI4BfigENhgBaSWcDcpIrEZ0jJYzEEBZmm -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.crawl_scenarios -- PostgreSQL database dump complete -- -\unrestrict rdUVa2qGnO6LbCwMfXhktA3VCh5gD2eTZcrHvijgPXbBuIvo3PW8NkLK5llS1ap +\unrestrict 2XFUwpwMgAUXWTCpfeMpssfvg6m9crI4BfigENhgBaSWcDcpIrEZ0jJYzEEBZmm diff --git a/pg-ddl/schema/public/creative_assets.sql b/pg-ddl/schema/public/creative_assets.sql index ffc0903c..866c0107 100644 --- a/pg-ddl/schema/public/creative_assets.sql +++ b/pg-ddl/schema/public/creative_assets.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 7P7x1hjRO8B7UVD5n9yoQQhX8KAt6VU3xOmo3ao5tSpqlaerP8kIzAS48GygORz +\restrict ZeT5rJ4GDFKhlOxWTkXicQbPZDm0I2F6MAemrNR2OytppmBhtbBg2G8JARf8sKj -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -94,5 +94,5 @@ CREATE INDEX idx_creative_assets_phash ON public.creative_assets USING btree (ph -- PostgreSQL database dump complete -- -\unrestrict 7P7x1hjRO8B7UVD5n9yoQQhX8KAt6VU3xOmo3ao5tSpqlaerP8kIzAS48GygORz +\unrestrict ZeT5rJ4GDFKhlOxWTkXicQbPZDm0I2F6MAemrNR2OytppmBhtbBg2G8JARf8sKj diff --git a/pg-ddl/schema/public/creative_records.sql b/pg-ddl/schema/public/creative_records.sql index e5b469dd..287e1a12 100644 --- a/pg-ddl/schema/public/creative_records.sql +++ b/pg-ddl/schema/public/creative_records.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 4mWazm5O8vuUHzmHWAZSVM1Up9VKf0ijrAM9XBVcTTq0IIFbeSP50q5AXGbBccr +\restrict AY5sueoCobFuOfbTmT67Q7XZ19QJcmewwsc6Qp12HjzU6cyg412PHVREDEgTWeC -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -40,6 +40,8 @@ CREATE TABLE public.creative_records ( additional_ad_domain_ids integer[], created_at timestamp with time zone DEFAULT timezone('utc'::text, now()) NOT NULL, updated_at timestamp with time zone DEFAULT timezone('utc'::text, now()) NOT NULL, + click_ids integer[], + click_url_ids integer[], CONSTRAINT check_advertiser_or_advertiser_domain CHECK (((advertiser_store_app_id IS NOT NULL) OR (advertiser_domain_id IS NOT NULL) OR ((advertiser_store_app_id IS NULL) AND (advertiser_domain_id IS NULL)))) ); @@ -151,5 +153,5 @@ ALTER TABLE ONLY public.creative_records -- PostgreSQL database dump complete -- -\unrestrict 4mWazm5O8vuUHzmHWAZSVM1Up9VKf0ijrAM9XBVcTTq0IIFbeSP50q5AXGbBccr +\unrestrict AY5sueoCobFuOfbTmT67Q7XZ19QJcmewwsc6Qp12HjzU6cyg412PHVREDEgTWeC diff --git a/pg-ddl/schema/public/developer_store_apps__matview.sql b/pg-ddl/schema/public/developer_store_apps__matview.sql index 5d72fa65..027dd453 100644 --- a/pg-ddl/schema/public/developer_store_apps__matview.sql +++ b/pg-ddl/schema/public/developer_store_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict CbEKbHvbu8zKUzaMm645em4q3XmlE6wVX7Kaw3SrapHK3OiTy5E4LbANk1QXIba +\restrict CwupsWx0iEuRsHzobKUTDrq0VNba0SpL0XgrvdbX2tunlEbTOB6hrhjW7qbCAic -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -83,5 +83,5 @@ CREATE UNIQUE INDEX idx_developer_store_apps_unique ON public.developer_store_ap -- PostgreSQL database dump complete -- -\unrestrict CbEKbHvbu8zKUzaMm645em4q3XmlE6wVX7Kaw3SrapHK3OiTy5E4LbANk1QXIba +\unrestrict CwupsWx0iEuRsHzobKUTDrq0VNba0SpL0XgrvdbX2tunlEbTOB6hrhjW7qbCAic diff --git a/pg-ddl/schema/public/developers.sql b/pg-ddl/schema/public/developers.sql index fae6c5bb..0fc18bf5 100644 --- a/pg-ddl/schema/public/developers.sql +++ b/pg-ddl/schema/public/developers.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict QpBwkoMA9evT5HhwYc8Xh2Dy4ZQPdYwyHzEVt6HbGnoYTeTJcbhc4TCVVN4LPiz +\restrict sfHmYhfxxVAgQxltIyehXLR7dxd8nBhQKvgOzd3z0OIJgLk6puLHpt0I3AstTZ4 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -110,5 +110,5 @@ ALTER TABLE ONLY public.developers -- PostgreSQL database dump complete -- -\unrestrict QpBwkoMA9evT5HhwYc8Xh2Dy4ZQPdYwyHzEVt6HbGnoYTeTJcbhc4TCVVN4LPiz +\unrestrict sfHmYhfxxVAgQxltIyehXLR7dxd8nBhQKvgOzd3z0OIJgLk6puLHpt0I3AstTZ4 diff --git a/pg-ddl/schema/public/domains.sql b/pg-ddl/schema/public/domains.sql index 34aa5c74..da6b06e3 100644 --- a/pg-ddl/schema/public/domains.sql +++ b/pg-ddl/schema/public/domains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict JqeXgG1xtPCnNRGzeHaKReUFDu9lUiUzMj6QsWlAi3c6GiRNba8FMLfR9W4YwZC +\restrict oJOmgk3ylKAm3MfVhMQteoQTGrGqgfejjZWpeTa0W9la9qOGnKGTrmoAb3EF8Xk -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.domains -- PostgreSQL database dump complete -- -\unrestrict JqeXgG1xtPCnNRGzeHaKReUFDu9lUiUzMj6QsWlAi3c6GiRNba8FMLfR9W4YwZC +\unrestrict oJOmgk3ylKAm3MfVhMQteoQTGrGqgfejjZWpeTa0W9la9qOGnKGTrmoAb3EF8Xk diff --git a/pg-ddl/schema/public/ip_geo_snapshots.sql b/pg-ddl/schema/public/ip_geo_snapshots.sql index 979c4745..cb8c8c26 100644 --- a/pg-ddl/schema/public/ip_geo_snapshots.sql +++ b/pg-ddl/schema/public/ip_geo_snapshots.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict gdXzg1EoY3YvTMvWogcIaI4SXcKMQIeJMI3MtYsPS0GvNua4ZtoerItEMCBK8rn +\restrict b59DucOdsZydzbGsCmgK4niJFMUmyY2hdMrtgQ3iiI9TYqUF74AF08aSiIaW4yQ -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.ip_geo_snapshots -- PostgreSQL database dump complete -- -\unrestrict gdXzg1EoY3YvTMvWogcIaI4SXcKMQIeJMI3MtYsPS0GvNua4ZtoerItEMCBK8rn +\unrestrict b59DucOdsZydzbGsCmgK4niJFMUmyY2hdMrtgQ3iiI9TYqUF74AF08aSiIaW4yQ diff --git a/pg-ddl/schema/public/keywords.sql b/pg-ddl/schema/public/keywords.sql index 33e3bf27..5b8a2c00 100644 --- a/pg-ddl/schema/public/keywords.sql +++ b/pg-ddl/schema/public/keywords.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 4KkbNTKS8tFEreq2vy71coCc3UwKfy64pp0X558hgCHvFvLOR1hzzkRepEHeVBk +\restrict HflxmWIUC6VYAbYq7VC4aP1mmZ0L2h4T7i9Qtl8ZEP2fnKi66IfYq8jzuATcDf7 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.keywords -- PostgreSQL database dump complete -- -\unrestrict 4KkbNTKS8tFEreq2vy71coCc3UwKfy64pp0X558hgCHvFvLOR1hzzkRepEHeVBk +\unrestrict HflxmWIUC6VYAbYq7VC4aP1mmZ0L2h4T7i9Qtl8ZEP2fnKi66IfYq8jzuATcDf7 diff --git a/pg-ddl/schema/public/keywords_base.sql b/pg-ddl/schema/public/keywords_base.sql index ada5db72..51d37e84 100644 --- a/pg-ddl/schema/public/keywords_base.sql +++ b/pg-ddl/schema/public/keywords_base.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict v7uo8OocB3FjtHZEWlLpu86u4xeFxRs4VhSTsBxNZfyADnlaRdeC9qYrpwolSrk +\restrict BwuRTrp8j1lsEaL0J19uxha88C8zQkgk9aDppkYeFX0pIIPdddqmwSspSAKrsbp -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -38,5 +38,5 @@ ALTER TABLE public.keywords_base OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict v7uo8OocB3FjtHZEWlLpu86u4xeFxRs4VhSTsBxNZfyADnlaRdeC9qYrpwolSrk +\unrestrict BwuRTrp8j1lsEaL0J19uxha88C8zQkgk9aDppkYeFX0pIIPdddqmwSspSAKrsbp diff --git a/pg-ddl/schema/public/languages.sql b/pg-ddl/schema/public/languages.sql index c3420a7e..e0d5a76e 100644 --- a/pg-ddl/schema/public/languages.sql +++ b/pg-ddl/schema/public/languages.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict shRyxwhS5IBGCCZ0046aYp0Wl3GRnnqY4XPSicqnLuKbOUaYlDlBEkmphnhw32n +\restrict PKrhmXaIM9dF1IyOFx8c0WTZEoZAMjmFda6V2fv7rh1vzpYQ3G1B1FPZ3qhnzx5 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.languages -- PostgreSQL database dump complete -- -\unrestrict shRyxwhS5IBGCCZ0046aYp0Wl3GRnnqY4XPSicqnLuKbOUaYlDlBEkmphnhw32n +\unrestrict PKrhmXaIM9dF1IyOFx8c0WTZEoZAMjmFda6V2fv7rh1vzpYQ3G1B1FPZ3qhnzx5 diff --git a/pg-ddl/schema/public/mv_app_categories__matview.sql b/pg-ddl/schema/public/mv_app_categories__matview.sql index ac2b3d2b..f36481c7 100644 --- a/pg-ddl/schema/public/mv_app_categories__matview.sql +++ b/pg-ddl/schema/public/mv_app_categories__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5cYwisZ0kcnXfoCwnzUiGHxYLIWaltvpO4k1WvFEI067lvbK0eRlgV37FUQoGvZ +\restrict SeJofMU4vO3SCmNY4p1f2R2MvIZl0cbxOe2szOggZEDMU8dFJTXyK0AHHIScSwt -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -45,5 +45,5 @@ ALTER MATERIALIZED VIEW public.mv_app_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 5cYwisZ0kcnXfoCwnzUiGHxYLIWaltvpO4k1WvFEI067lvbK0eRlgV37FUQoGvZ +\unrestrict SeJofMU4vO3SCmNY4p1f2R2MvIZl0cbxOe2szOggZEDMU8dFJTXyK0AHHIScSwt diff --git a/pg-ddl/schema/public/pg_stat_statements__view.sql b/pg-ddl/schema/public/pg_stat_statements__view.sql index 1d06259e..65e038ca 100644 --- a/pg-ddl/schema/public/pg_stat_statements__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements__view.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict PY8vDxwm0fzAdQ5dRk4cDoP87oP3Cp0I2nDQ45CaHkRnO66xpZeSjHHqPjaqZIR +\restrict wIIJtrChQcWjYW4KqYPTeaEvXBIwzxyIA4QizuR4jBs1bCSXdU7l5Xe5UHdaDOW -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict PY8vDxwm0fzAdQ5dRk4cDoP87oP3Cp0I2nDQ45CaHkRnO66xpZeSjHHqPjaqZIR +\unrestrict wIIJtrChQcWjYW4KqYPTeaEvXBIwzxyIA4QizuR4jBs1bCSXdU7l5Xe5UHdaDOW diff --git a/pg-ddl/schema/public/pg_stat_statements_info__view.sql b/pg-ddl/schema/public/pg_stat_statements_info__view.sql index bc6476df..a950c4dc 100644 --- a/pg-ddl/schema/public/pg_stat_statements_info__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements_info__view.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict vZRCblqKwqmbWn5c8s3i4NFqwzViRfjPhPqYwJOGlhbck3LRzw1CzMqgRg2W84l +\restrict mFqnWMV8R63JgsVoMsMZQowHFep4h1eq0ntOVdf8At8E5nMuywH2Htka0FI2wOa -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict vZRCblqKwqmbWn5c8s3i4NFqwzViRfjPhPqYwJOGlhbck3LRzw1CzMqgRg2W84l +\unrestrict mFqnWMV8R63JgsVoMsMZQowHFep4h1eq0ntOVdf8At8E5nMuywH2Htka0FI2wOa diff --git a/pg-ddl/schema/public/platforms.sql b/pg-ddl/schema/public/platforms.sql index e4dc4367..bae1f93b 100644 --- a/pg-ddl/schema/public/platforms.sql +++ b/pg-ddl/schema/public/platforms.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 6ywcHqongalT2mHnvVGagkztUU4nyTlSuhZn4nEcxSJBWFbATe4dRLNMAj0h4Te +\restrict T59JlT6NYLF8HyYLxDbKnbeHy5PGylLTXcYzbtRvooMaBxXazxFoeLs1RlAKb6g -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.platforms -- PostgreSQL database dump complete -- -\unrestrict 6ywcHqongalT2mHnvVGagkztUU4nyTlSuhZn4nEcxSJBWFbATe4dRLNMAj0h4Te +\unrestrict T59JlT6NYLF8HyYLxDbKnbeHy5PGylLTXcYzbtRvooMaBxXazxFoeLs1RlAKb6g diff --git a/pg-ddl/schema/public/store_app_z_scores__matview.sql b/pg-ddl/schema/public/store_app_z_scores__matview.sql index 892907fb..ec37479c 100644 --- a/pg-ddl/schema/public/store_app_z_scores__matview.sql +++ b/pg-ddl/schema/public/store_app_z_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict H78odCXfLvkeTjlGbTulNcbz4uybUe4s7EBtFzhRe6E1itlt5reqYuxhxzlXYHx +\restrict 1c3e0dwGEVAw1CBFNs6Ap9ovGhjZFlSHn747frEmiSwerxCVciGJgkxbFJta1gD -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -155,5 +155,5 @@ ALTER MATERIALIZED VIEW public.store_app_z_scores OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict H78odCXfLvkeTjlGbTulNcbz4uybUe4s7EBtFzhRe6E1itlt5reqYuxhxzlXYHx +\unrestrict 1c3e0dwGEVAw1CBFNs6Ap9ovGhjZFlSHn747frEmiSwerxCVciGJgkxbFJta1gD diff --git a/pg-ddl/schema/public/store_app_z_scores_history.sql b/pg-ddl/schema/public/store_app_z_scores_history.sql index c0153bc8..c6a85c4f 100644 --- a/pg-ddl/schema/public/store_app_z_scores_history.sql +++ b/pg-ddl/schema/public/store_app_z_scores_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict EK03O1XLnQC7j4t6XGyKa7pEJZfxMom1rTvBzrceeRdWYhvhBNUgliXpxF8kNlJ +\restrict yRTpepwe2luhX7MEiohXonE2pDYh4WpSOYxUocOac6F4pXGjAoFE0fTrv5WpGh5 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -64,5 +64,5 @@ ALTER TABLE ONLY public.store_app_z_scores_history -- PostgreSQL database dump complete -- -\unrestrict EK03O1XLnQC7j4t6XGyKa7pEJZfxMom1rTvBzrceeRdWYhvhBNUgliXpxF8kNlJ +\unrestrict yRTpepwe2luhX7MEiohXonE2pDYh4WpSOYxUocOac6F4pXGjAoFE0fTrv5WpGh5 diff --git a/pg-ddl/schema/public/store_apps.sql b/pg-ddl/schema/public/store_apps.sql index cb4ed99d..3ff62b58 100644 --- a/pg-ddl/schema/public/store_apps.sql +++ b/pg-ddl/schema/public/store_apps.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict gSyzhupDV8JFuOXozTckfRYqJ6TjHNZAkqnS8zfKJpDFX7HCSQs4urxK4IdZptw +\restrict RXwGpwVNii2M9pQdc1lyWfTFHMEvmxjSd1IpZ5QnJn4GFbQepjUX0qsHGCFwPb9 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -128,13 +128,6 @@ CREATE INDEX store_apps_updated_at_idx ON public.store_apps USING btree (updated CREATE INDEX textsearch_generated_idx ON public.store_apps USING gin (textsearchable_index_col); --- --- Name: store_apps store_app_audit; Type: TRIGGER; Schema: public; Owner: james --- - -CREATE TRIGGER store_app_audit AFTER INSERT OR DELETE OR UPDATE ON public.store_apps FOR EACH ROW EXECUTE FUNCTION public.process_store_app_audit(); - - -- -- Name: store_apps store_apps_updated_at; Type: TRIGGER; Schema: public; Owner: james -- @@ -170,5 +163,5 @@ ALTER TABLE ONLY public.store_apps -- PostgreSQL database dump complete -- -\unrestrict gSyzhupDV8JFuOXozTckfRYqJ6TjHNZAkqnS8zfKJpDFX7HCSQs4urxK4IdZptw +\unrestrict RXwGpwVNii2M9pQdc1lyWfTFHMEvmxjSd1IpZ5QnJn4GFbQepjUX0qsHGCFwPb9 diff --git a/pg-ddl/schema/public/store_apps_created_at__matview.sql b/pg-ddl/schema/public/store_apps_created_at__matview.sql deleted file mode 100644 index cdc435f1..00000000 --- a/pg-ddl/schema/public/store_apps_created_at__matview.sql +++ /dev/null @@ -1,75 +0,0 @@ --- --- PostgreSQL database dump --- - -\restrict n6dJ4fJFcWfCrfXfPX1lL2QL2uu8DfzM1vhidnAQ76zhXoYFcOGurk8cg2dh03t - --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) - -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET transaction_timeout = 0; -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); -SET check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - -SET default_tablespace = ''; - -SET default_table_access_method = heap; - --- --- Name: store_apps_created_at; Type: MATERIALIZED VIEW; Schema: public; Owner: postgres --- - -CREATE MATERIALIZED VIEW public.store_apps_created_at AS - WITH my_dates AS ( - SELECT num_series.store, - (generate_series((CURRENT_DATE - '365 days'::interval), (CURRENT_DATE)::timestamp without time zone, '1 day'::interval))::date AS date - FROM generate_series(1, 2, 1) num_series(store) - ), created_dates AS ( - SELECT sa.store, - (sa.created_at)::date AS created_date, - sas.crawl_source, - count(*) AS created_count - FROM (public.store_apps sa - LEFT JOIN logging.store_app_sources sas ON (((sa.id = sas.store_app) AND (sa.store = sas.store)))) - WHERE (sa.created_at >= (CURRENT_DATE - '365 days'::interval)) - GROUP BY sa.store, ((sa.created_at)::date), sas.crawl_source - ) - SELECT my_dates.store, - my_dates.date, - created_dates.crawl_source, - created_dates.created_count - FROM (my_dates - LEFT JOIN created_dates ON (((my_dates.date = created_dates.created_date) AND (my_dates.store = created_dates.store)))) - WITH NO DATA; - - -ALTER MATERIALIZED VIEW public.store_apps_created_at OWNER TO postgres; - --- --- Name: idx_store_apps_created_at; Type: INDEX; Schema: public; Owner: postgres --- - -CREATE INDEX idx_store_apps_created_at ON public.store_apps_created_at USING btree (store, date, crawl_source); - - --- --- Name: idx_store_apps_created_atx; Type: INDEX; Schema: public; Owner: postgres --- - -CREATE UNIQUE INDEX idx_store_apps_created_atx ON public.store_apps_created_at USING btree (store, date, crawl_source); - - --- --- PostgreSQL database dump complete --- - -\unrestrict n6dJ4fJFcWfCrfXfPX1lL2QL2uu8DfzM1vhidnAQ76zhXoYFcOGurk8cg2dh03t - diff --git a/pg-ddl/schema/public/store_apps_descriptions.sql b/pg-ddl/schema/public/store_apps_descriptions.sql index 9b809405..6d168be5 100644 --- a/pg-ddl/schema/public/store_apps_descriptions.sql +++ b/pg-ddl/schema/public/store_apps_descriptions.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 0oQiSS9cJnDuOSs5JxPB8O1yXVA9lxiGgYgaD63UQuZLCtmtkxAmCBzgWuebLgS +\restrict 3OaaEnypCiotgmw0cAcmbWp9jT5GNatmzsSmoJMaJjw0Kab39tRt63cvH3lUpEo -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.store_apps_descriptions -- PostgreSQL database dump complete -- -\unrestrict 0oQiSS9cJnDuOSs5JxPB8O1yXVA9lxiGgYgaD63UQuZLCtmtkxAmCBzgWuebLgS +\unrestrict 3OaaEnypCiotgmw0cAcmbWp9jT5GNatmzsSmoJMaJjw0Kab39tRt63cvH3lUpEo diff --git a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql index 99494c72..f828a00f 100644 --- a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql +++ b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict yzG7cCnCah9TgEDCpQbAlXPKKFvOCiaDIAWh8xVubVCWywSnyJIebttdbB9IGbH +\restrict 8c4ppSygKVDKFkSg3FgMrnbh68FUqQSUbfVKuutfu6cj1BMrQaaFZpxlFpkzNMg -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW public.store_apps_in_latest_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict yzG7cCnCah9TgEDCpQbAlXPKKFvOCiaDIAWh8xVubVCWywSnyJIebttdbB9IGbH +\unrestrict 8c4ppSygKVDKFkSg3FgMrnbh68FUqQSUbfVKuutfu6cj1BMrQaaFZpxlFpkzNMg diff --git a/pg-ddl/schema/public/store_apps_updated_at__matview.sql b/pg-ddl/schema/public/store_apps_updated_at__matview.sql deleted file mode 100644 index c0bfdd67..00000000 --- a/pg-ddl/schema/public/store_apps_updated_at__matview.sql +++ /dev/null @@ -1,75 +0,0 @@ --- --- PostgreSQL database dump --- - -\restrict 5mWeewqnatfT4r2vuqo7HZDgOgJiuuddJdMe4ZF1hS6aAdDay2Gw3nlc560fijK - --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) - -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET transaction_timeout = 0; -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); -SET check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - -SET default_tablespace = ''; - -SET default_table_access_method = heap; - --- --- Name: store_apps_updated_at; Type: MATERIALIZED VIEW; Schema: public; Owner: postgres --- - -CREATE MATERIALIZED VIEW public.store_apps_updated_at AS - WITH my_dates AS ( - SELECT num_series.store, - (generate_series((CURRENT_DATE - '365 days'::interval), (CURRENT_DATE)::timestamp without time zone, '1 day'::interval))::date AS date - FROM generate_series(1, 2, 1) num_series(store) - ), updated_dates AS ( - SELECT store_apps.store, - (store_apps.updated_at)::date AS last_updated_date, - count(*) AS last_updated_count - FROM public.store_apps - WHERE (store_apps.updated_at >= (CURRENT_DATE - '365 days'::interval)) - GROUP BY store_apps.store, ((store_apps.updated_at)::date) - ) - SELECT my_dates.store, - my_dates.date, - updated_dates.last_updated_count, - audit_dates.updated_count - FROM ((my_dates - LEFT JOIN updated_dates ON (((my_dates.date = updated_dates.last_updated_date) AND (my_dates.store = updated_dates.store)))) - LEFT JOIN public.audit_dates ON ((my_dates.date = audit_dates.updated_date))) - ORDER BY my_dates.date DESC - WITH NO DATA; - - -ALTER MATERIALIZED VIEW public.store_apps_updated_at OWNER TO postgres; - --- --- Name: idx_my_materialized_view_store_date; Type: INDEX; Schema: public; Owner: postgres --- - -CREATE INDEX idx_my_materialized_view_store_date ON public.store_apps_updated_at USING btree (store, date); - - --- --- Name: idx_store_apps_updated_at; Type: INDEX; Schema: public; Owner: postgres --- - -CREATE UNIQUE INDEX idx_store_apps_updated_at ON public.store_apps_updated_at USING btree (store, date); - - --- --- PostgreSQL database dump complete --- - -\unrestrict 5mWeewqnatfT4r2vuqo7HZDgOgJiuuddJdMe4ZF1hS6aAdDay2Gw3nlc560fijK - diff --git a/pg-ddl/schema/public/store_categories.sql b/pg-ddl/schema/public/store_categories.sql index 44cfbae2..3c7e9c24 100644 --- a/pg-ddl/schema/public/store_categories.sql +++ b/pg-ddl/schema/public/store_categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict UBuEkvYb0FAEqRMC9TPZ9PDKk7f5nhfcF97IdzSBgD9NuNVLfEnLuglHiwgnA3S +\restrict qlVNf4OnCvTiMgGFvDIxUaxjC7PJ545EEgfVFdzBOrLmrPwKZfOYzSaasGc430n -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_categories -- PostgreSQL database dump complete -- -\unrestrict UBuEkvYb0FAEqRMC9TPZ9PDKk7f5nhfcF97IdzSBgD9NuNVLfEnLuglHiwgnA3S +\unrestrict qlVNf4OnCvTiMgGFvDIxUaxjC7PJ545EEgfVFdzBOrLmrPwKZfOYzSaasGc430n diff --git a/pg-ddl/schema/public/store_collections.sql b/pg-ddl/schema/public/store_collections.sql index 9106831f..fd092b5c 100644 --- a/pg-ddl/schema/public/store_collections.sql +++ b/pg-ddl/schema/public/store_collections.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict XxlvlwZhmN85gyz7t5fEFt0k8jmKOC6wlBNaE5E8L5N8aQF6UtRzvtUHc8hyVCB +\restrict 4Fh9AYe0zAUE4ZKeF3KxbhgadCzkJvkmldpNIny3AAZ4UmaXOAOPx2E61FDfdcz -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_collections -- PostgreSQL database dump complete -- -\unrestrict XxlvlwZhmN85gyz7t5fEFt0k8jmKOC6wlBNaE5E8L5N8aQF6UtRzvtUHc8hyVCB +\unrestrict 4Fh9AYe0zAUE4ZKeF3KxbhgadCzkJvkmldpNIny3AAZ4UmaXOAOPx2E61FDfdcz diff --git a/pg-ddl/schema/public/stores.sql b/pg-ddl/schema/public/stores.sql index bc5d2381..35575b0f 100644 --- a/pg-ddl/schema/public/stores.sql +++ b/pg-ddl/schema/public/stores.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict IoekVnoFVLqRN11hmawoJwbc0vOIqzIV3NEQgQCTdppaDqM5oLxodQkB4TpcRLd +\restrict 3WCtbK7OqirZB4jKgTqKoTcN5hLRamV1ElkkEyRgNuA9xkLhMdQNYV5csnAcf2L -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -93,5 +93,5 @@ ALTER TABLE ONLY public.stores -- PostgreSQL database dump complete -- -\unrestrict IoekVnoFVLqRN11hmawoJwbc0vOIqzIV3NEQgQCTdppaDqM5oLxodQkB4TpcRLd +\unrestrict 3WCtbK7OqirZB4jKgTqKoTcN5hLRamV1ElkkEyRgNuA9xkLhMdQNYV5csnAcf2L diff --git a/pg-ddl/schema/public/total_count_overview__matview.sql b/pg-ddl/schema/public/total_count_overview__matview.sql index ef7acfed..ebf24785 100644 --- a/pg-ddl/schema/public/total_count_overview__matview.sql +++ b/pg-ddl/schema/public/total_count_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict yeq8SA0F76IEMorta006S0T8IXCgYcmjqf4V0TG2UqA6BgNltzqQdZlye4rsUQm +\restrict bFE1JRPJ7TU9Tl8B6CZi2a8lLrmZVcDB39rgzZ9qhwi3SRFf56eqCfM9zBH81MT -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -166,5 +166,5 @@ ALTER MATERIALIZED VIEW public.total_count_overview OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict yeq8SA0F76IEMorta006S0T8IXCgYcmjqf4V0TG2UqA6BgNltzqQdZlye4rsUQm +\unrestrict bFE1JRPJ7TU9Tl8B6CZi2a8lLrmZVcDB39rgzZ9qhwi3SRFf56eqCfM9zBH81MT diff --git a/pg-ddl/schema/public/user_requested_scan.sql b/pg-ddl/schema/public/user_requested_scan.sql index 17e33a02..4e9be4b3 100644 --- a/pg-ddl/schema/public/user_requested_scan.sql +++ b/pg-ddl/schema/public/user_requested_scan.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 0iAsZ7y6Yi92AhmIvq7snjqNv8ecgCjf0gClGATsckrQyvAhNW0LGmedgKdgSDw +\restrict EDZ2sVXDf1dWeyWb7AOXMPpQJD94oJxet2eHezUcaFmWcVdc5yAWOSRu2ftKhJx -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -77,5 +77,5 @@ ALTER TABLE ONLY public.user_requested_scan -- PostgreSQL database dump complete -- -\unrestrict 0iAsZ7y6Yi92AhmIvq7snjqNv8ecgCjf0gClGATsckrQyvAhNW0LGmedgKdgSDw +\unrestrict EDZ2sVXDf1dWeyWb7AOXMPpQJD94oJxet2eHezUcaFmWcVdc5yAWOSRu2ftKhJx diff --git a/pg-ddl/schema/public/version_code_api_scan_results.sql b/pg-ddl/schema/public/version_code_api_scan_results.sql index b37f8cd3..7580eb25 100644 --- a/pg-ddl/schema/public/version_code_api_scan_results.sql +++ b/pg-ddl/schema/public/version_code_api_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict lx4ylUucy53kq29Ub28XtRYo4vTRtZ5EgGBFSVrDkapMrKhUfeJDMzpvRSyXi5H +\restrict Sg49kU2zZ6gmxmhkq3u3h7mYWweAAarAu2Lme1ZwFg23Fw6FBjlyK9DseUWHGgc -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -87,5 +87,5 @@ ALTER TABLE ONLY public.version_code_api_scan_results -- PostgreSQL database dump complete -- -\unrestrict lx4ylUucy53kq29Ub28XtRYo4vTRtZ5EgGBFSVrDkapMrKhUfeJDMzpvRSyXi5H +\unrestrict Sg49kU2zZ6gmxmhkq3u3h7mYWweAAarAu2Lme1ZwFg23Fw6FBjlyK9DseUWHGgc diff --git a/pg-ddl/schema/public/version_code_sdk_scan_results.sql b/pg-ddl/schema/public/version_code_sdk_scan_results.sql index 9db6267d..7f1b165b 100644 --- a/pg-ddl/schema/public/version_code_sdk_scan_results.sql +++ b/pg-ddl/schema/public/version_code_sdk_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 0QzgxVbEWqlcR5gfd4OyWWj2pYuTr34SHwO6gWobcAa1AXOgveMa3cr5urkyDsB +\restrict aJXWwCHuLRNiMYDAxkvPvATcx9V04DokO7qlnU8LV5P7wxqh24YMpDYzQ4HiuUA -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.version_code_sdk_scan_results -- PostgreSQL database dump complete -- -\unrestrict 0QzgxVbEWqlcR5gfd4OyWWj2pYuTr34SHwO6gWobcAa1AXOgveMa3cr5urkyDsB +\unrestrict aJXWwCHuLRNiMYDAxkvPvATcx9V04DokO7qlnU8LV5P7wxqh24YMpDYzQ4HiuUA diff --git a/pg-ddl/schema/public/version_codes.sql b/pg-ddl/schema/public/version_codes.sql index 5deadfee..b7fcb671 100644 --- a/pg-ddl/schema/public/version_codes.sql +++ b/pg-ddl/schema/public/version_codes.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict uxYxRoadolPUJokKQVbib2QoLVPGSgz0dgyaORScVicNGcwH4jcJCjcLMFfTE8Y +\restrict dfhtOzcGxSHdcCzLeFNtIYrMSAcr4cfvQjXQXOvceWkn3HLDka4k3KEWlERHPo9 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -89,5 +89,5 @@ ALTER TABLE ONLY public.version_codes -- PostgreSQL database dump complete -- -\unrestrict uxYxRoadolPUJokKQVbib2QoLVPGSgz0dgyaORScVicNGcwH4jcJCjcLMFfTE8Y +\unrestrict dfhtOzcGxSHdcCzLeFNtIYrMSAcr4cfvQjXQXOvceWkn3HLDka4k3KEWlERHPo9 diff --git a/pg-ddl/schema/public/version_details_map.sql b/pg-ddl/schema/public/version_details_map.sql index d1acb062..b17ee29f 100644 --- a/pg-ddl/schema/public/version_details_map.sql +++ b/pg-ddl/schema/public/version_details_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict xVasvbbeOlNDb7u8Ct5LpeP5deARNaE3toUdnpqnH1KcWZsRlyt7p20GJJ8T3OM +\restrict XY4LjqH2f3ZcmmznOOhwIdwEK01tuilDzgyAUeJ2srsDtfT0MoZjSdgl1K54uL0 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_details_map -- PostgreSQL database dump complete -- -\unrestrict xVasvbbeOlNDb7u8Ct5LpeP5deARNaE3toUdnpqnH1KcWZsRlyt7p20GJJ8T3OM +\unrestrict XY4LjqH2f3ZcmmznOOhwIdwEK01tuilDzgyAUeJ2srsDtfT0MoZjSdgl1K54uL0 diff --git a/pg-ddl/schema/public/version_manifests.sql b/pg-ddl/schema/public/version_manifests.sql index b979cd5f..05a98a94 100644 --- a/pg-ddl/schema/public/version_manifests.sql +++ b/pg-ddl/schema/public/version_manifests.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict LTkeitY9c2Wecu4ewi01g5qbT3kWyhk5UtdWAlYo7PngI4osSveTwPsAH9aJih2 +\restrict 9pv6rcPV4eSQshRkVYnYnaLJVGI5U4ruTHD9nXGy4LcX6XORrJQnOv5Qs646v6P -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_manifests -- PostgreSQL database dump complete -- -\unrestrict LTkeitY9c2Wecu4ewi01g5qbT3kWyhk5UtdWAlYo7PngI4osSveTwPsAH9aJih2 +\unrestrict 9pv6rcPV4eSQshRkVYnYnaLJVGI5U4ruTHD9nXGy4LcX6XORrJQnOv5Qs646v6P diff --git a/pg-ddl/schema/public/version_strings.sql b/pg-ddl/schema/public/version_strings.sql index b794c717..e7002b13 100644 --- a/pg-ddl/schema/public/version_strings.sql +++ b/pg-ddl/schema/public/version_strings.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict QN1QbqOCrcfUVFFxZHvEa3jfoaf0RkdlSqElLDBNwxE3AtwGeQy2jaBNUnm8it5 +\restrict aFPabVsZQHhkD4fblrSfTopjamO5qsZkc0yO555wDmd4Wet4xviBdL9FdaTDPpd -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -106,5 +106,5 @@ CREATE INDEX version_strings_xml_path_trgm_idx ON public.version_strings USING g -- PostgreSQL database dump complete -- -\unrestrict QN1QbqOCrcfUVFFxZHvEa3jfoaf0RkdlSqElLDBNwxE3AtwGeQy2jaBNUnm8it5 +\unrestrict aFPabVsZQHhkD4fblrSfTopjamO5qsZkc0yO555wDmd4Wet4xviBdL9FdaTDPpd From 4bd7742cd95df4d42b93825e0ce20c84e32d0d88 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Mon, 24 Nov 2025 10:09:14 +0800 Subject: [PATCH 23/81] Refresh schema --- pg-ddl/schema/adtech/api_call_urls.sql | 4 +- pg-ddl/schema/adtech/categories.sql | 4 +- ...combined_store_apps_companies__matview.sql | 4 +- ...d_store_apps_parent_companies__matview.sql | 4 +- pg-ddl/schema/adtech/companies.sql | 4 +- .../adtech/company_categories__matview.sql | 4 +- pg-ddl/schema/adtech/company_developers.sql | 4 +- .../schema/adtech/company_domain_mapping.sql | 4 +- .../adtech/company_sdk_strings__matview.sql | 4 +- pg-ddl/schema/adtech/sdk_categories.sql | 4 +- pg-ddl/schema/adtech/sdk_packages.sql | 4 +- pg-ddl/schema/adtech/sdk_paths.sql | 4 +- pg-ddl/schema/adtech/sdks.sql | 4 +- .../adtech/store_app_sdk_strings__matview.sql | 4 +- pg-ddl/schema/adtech/url_redirect_chains.sql | 4 +- pg-ddl/schema/adtech/urls.sql | 4 +- .../adstxt_ad_domain_overview__matview.sql | 4 +- .../adstxt_entries_store_apps__matview.sql | 4 +- .../adstxt_publishers_overview__matview.sql | 4 +- .../advertiser_creative_rankings__matview.sql | 4 +- ...reative_rankings_recent_month__matview.sql | 4 +- .../advertiser_creatives__matview.sql | 4 +- .../frontend/api_call_countries__matview.sql | 4 +- .../app_keyword_rank_stats__matview.sql | 4 +- .../frontend/app_keyword_ranks_daily.sql | 4 +- .../frontend/apps_new_monthly__matview.sql | 4 +- .../frontend/apps_new_weekly__matview.sql | 4 +- .../frontend/apps_new_yearly__matview.sql | 4 +- .../frontend/category_tag_stats__matview.sql | 4 +- .../companies_apps_overview__matview.sql | 4 +- .../companies_category_stats__matview.sql | 4 +- .../companies_category_tag_stats__matview.sql | 4 +- ...anies_category_tag_type_stats__matview.sql | 4 +- .../companies_creative_rankings__matview.sql | 4 +- ...companies_open_source_percent__matview.sql | 4 +- ...mpanies_parent_category_stats__matview.sql | 4 +- ...ies_parent_category_tag_stats__matview.sql | 4 +- .../companies_sdks_overview__matview.sql | 4 +- .../company_domain_country__matview.sql | 4 +- .../company_domains_top_apps__matview.sql | 4 +- .../company_parent_top_apps__matview.sql | 4 +- .../frontend/company_top_apps__matview.sql | 4 +- .../frontend/keyword_scores__matview.sql | 4 +- .../latest_sdk_scanned_apps__matview.sql | 4 +- .../store_app_api_companies__matview.sql | 4 +- .../store_app_ranks_best_monthly__matview.sql | 4 +- .../schema/frontend/store_app_ranks_daily.sql | 4 +- .../store_app_ranks_latest__matview.sql | 4 +- .../frontend/store_app_ranks_weekly.sql | 4 +- .../frontend/store_apps_overview__matview.sql | 4 +- .../frontend/store_apps_z_scores__matview.sql | 4 +- .../total_categories_app_counts__matview.sql | 4 +- pg-ddl/schema/full_db_dump.sql | 28 +--------- pg-ddl/schema/logging/app_country_crawls.sql | 4 +- .../schema/logging/creative_scan_results.sql | 4 +- .../schema/logging/developers_crawled_at.sql | 4 +- pg-ddl/schema/logging/keywords_crawled_at.sql | 4 +- .../schema/logging/snapshot_pub_domains.sql | 4 +- pg-ddl/schema/logging/store_app_downloads.sql | 4 +- .../schema/logging/store_app_no_creatives.sql | 4 +- pg-ddl/schema/logging/store_app_sources.sql | 4 +- .../logging/store_app_waydroid_crawled_at.sql | 4 +- pg-ddl/schema/logging/store_apps_audit.sql | 55 ------------------- pg-ddl/schema/logging/store_apps_snapshot.sql | 4 +- .../logging/version_code_api_scan_results.sql | 4 +- .../public/ad_network_sdk_keys__matview.sql | 4 +- pg-ddl/schema/public/adstxt_crawl_results.sql | 4 +- pg-ddl/schema/public/api_calls.sql | 4 +- pg-ddl/schema/public/app_ads_entrys.sql | 4 +- pg-ddl/schema/public/app_ads_map.sql | 4 +- .../public/app_country_metrics_history.sql | 4 +- .../app_country_metrics_latest__matview.sql | 4 +- .../public/app_global_metrics_history.sql | 4 +- .../app_global_metrics_latest__matview.sql | 4 +- ...p_global_metrics_weekly_diffs__matview.sql | 4 +- .../schema/public/app_keywords_extracted.sql | 4 +- pg-ddl/schema/public/app_urls_map.sql | 4 +- .../public/category_mapping__matview.sql | 4 +- pg-ddl/schema/public/countries.sql | 4 +- pg-ddl/schema/public/crawl_results.sql | 4 +- .../public/crawl_scenario_country_config.sql | 4 +- pg-ddl/schema/public/crawl_scenarios.sql | 4 +- pg-ddl/schema/public/creative_assets.sql | 4 +- pg-ddl/schema/public/creative_records.sql | 4 +- .../public/developer_store_apps__matview.sql | 4 +- pg-ddl/schema/public/developers.sql | 4 +- pg-ddl/schema/public/domains.sql | 4 +- pg-ddl/schema/public/ip_geo_snapshots.sql | 4 +- pg-ddl/schema/public/keywords.sql | 4 +- pg-ddl/schema/public/keywords_base.sql | 4 +- pg-ddl/schema/public/languages.sql | 4 +- .../public/mv_app_categories__matview.sql | 4 +- .../public/pg_stat_statements__view.sql | 4 +- .../public/pg_stat_statements_info__view.sql | 4 +- pg-ddl/schema/public/platforms.sql | 4 +- .../public/store_app_z_scores__matview.sql | 4 +- .../public/store_app_z_scores_history.sql | 4 +- pg-ddl/schema/public/store_apps.sql | 4 +- .../schema/public/store_apps_descriptions.sql | 4 +- ...store_apps_in_latest_rankings__matview.sql | 4 +- pg-ddl/schema/public/store_categories.sql | 4 +- pg-ddl/schema/public/store_collections.sql | 4 +- pg-ddl/schema/public/stores.sql | 4 +- .../public/total_count_overview__matview.sql | 4 +- pg-ddl/schema/public/user_requested_scan.sql | 4 +- .../public/version_code_api_scan_results.sql | 4 +- .../public/version_code_sdk_scan_results.sql | 4 +- pg-ddl/schema/public/version_codes.sql | 4 +- pg-ddl/schema/public/version_details_map.sql | 4 +- pg-ddl/schema/public/version_manifests.sql | 4 +- pg-ddl/schema/public/version_strings.sql | 4 +- 111 files changed, 220 insertions(+), 299 deletions(-) delete mode 100644 pg-ddl/schema/logging/store_apps_audit.sql diff --git a/pg-ddl/schema/adtech/api_call_urls.sql b/pg-ddl/schema/adtech/api_call_urls.sql index 028739c9..ff2c5f70 100644 --- a/pg-ddl/schema/adtech/api_call_urls.sql +++ b/pg-ddl/schema/adtech/api_call_urls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict O6Iu6aUFQFpuMLyxwstKXULZkUnROCjUTUFUO9QG6BR2HowuxEOQXVvAVMwhEr2 +\restrict KmaPiymVLTG0W4FUncbRdUH7NaMU2hHlS9fcrDsHSFtDdq35C2kHII7ZcY4BQ00 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -118,5 +118,5 @@ ALTER TABLE ONLY adtech.api_call_urls -- PostgreSQL database dump complete -- -\unrestrict O6Iu6aUFQFpuMLyxwstKXULZkUnROCjUTUFUO9QG6BR2HowuxEOQXVvAVMwhEr2 +\unrestrict KmaPiymVLTG0W4FUncbRdUH7NaMU2hHlS9fcrDsHSFtDdq35C2kHII7ZcY4BQ00 diff --git a/pg-ddl/schema/adtech/categories.sql b/pg-ddl/schema/adtech/categories.sql index d098272c..6b9ea5de 100644 --- a/pg-ddl/schema/adtech/categories.sql +++ b/pg-ddl/schema/adtech/categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict eYqO2is3C5pAa0rCcs8npDpgxyfZkSxESGiG538pX0ecXxIPissx319WnhwMoUb +\restrict jtpDDLOKcIdCzVdP9z1Hhqohdke2u1ty396V8vhAJ7S6NdNDa7UjwxTmFrdh4ae -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -62,5 +62,5 @@ ALTER TABLE ONLY adtech.categories -- PostgreSQL database dump complete -- -\unrestrict eYqO2is3C5pAa0rCcs8npDpgxyfZkSxESGiG538pX0ecXxIPissx319WnhwMoUb +\unrestrict jtpDDLOKcIdCzVdP9z1Hhqohdke2u1ty396V8vhAJ7S6NdNDa7UjwxTmFrdh4ae diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql index 023d348a..6ea86acd 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict grKihAFFwd3x7VqWpH32MhfR89OfAf49fNmBduE8JmySdbVxKMrAUejBLsmEORe +\restrict QBe0hItBIcOV4rOmpvm10RGptOMvo1e1iEljHXjeYPdOp6ihMeKimOmQXacv6Uc -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -164,5 +164,5 @@ CREATE UNIQUE INDEX combined_store_app_companies_idx ON adtech.combined_store_ap -- PostgreSQL database dump complete -- -\unrestrict grKihAFFwd3x7VqWpH32MhfR89OfAf49fNmBduE8JmySdbVxKMrAUejBLsmEORe +\unrestrict QBe0hItBIcOV4rOmpvm10RGptOMvo1e1iEljHXjeYPdOp6ihMeKimOmQXacv6Uc diff --git a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql index 719f268e..b0797ac7 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict taOaz32dtEuVN67DWaVPs7OdHMKi6qwSesxpeYukeI0KfxQNCFWwMwR5P6BjnS4 +\restrict 6v4a8RhAdoTYlF1fY3ChFAYW2qLKFSNMpM4pcuQtVJd26Ydr82DPGTMOIjzJCqo -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -59,5 +59,5 @@ CREATE UNIQUE INDEX idx_combined_store_apps_parent_companies_idx ON adtech.combi -- PostgreSQL database dump complete -- -\unrestrict taOaz32dtEuVN67DWaVPs7OdHMKi6qwSesxpeYukeI0KfxQNCFWwMwR5P6BjnS4 +\unrestrict 6v4a8RhAdoTYlF1fY3ChFAYW2qLKFSNMpM4pcuQtVJd26Ydr82DPGTMOIjzJCqo diff --git a/pg-ddl/schema/adtech/companies.sql b/pg-ddl/schema/adtech/companies.sql index 0e158fcf..0f547cd8 100644 --- a/pg-ddl/schema/adtech/companies.sql +++ b/pg-ddl/schema/adtech/companies.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict HUFjSkTafo91HbcVtZ9hktw8NmdOg2h9hov5e2CGXRjH51aBwzPGbi5UfjrM06j +\restrict hfu4WY7SYvgMd5MrRWiuca0QPEQh6uQQBuX6WlPQ5fehMUcTIbF5tQOgsXQQwSv -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -98,5 +98,5 @@ ALTER TABLE ONLY adtech.companies -- PostgreSQL database dump complete -- -\unrestrict HUFjSkTafo91HbcVtZ9hktw8NmdOg2h9hov5e2CGXRjH51aBwzPGbi5UfjrM06j +\unrestrict hfu4WY7SYvgMd5MrRWiuca0QPEQh6uQQBuX6WlPQ5fehMUcTIbF5tQOgsXQQwSv diff --git a/pg-ddl/schema/adtech/company_categories__matview.sql b/pg-ddl/schema/adtech/company_categories__matview.sql index 3f0a23ce..776388f7 100644 --- a/pg-ddl/schema/adtech/company_categories__matview.sql +++ b/pg-ddl/schema/adtech/company_categories__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict OABCCeo7stAutvtaesszt4cxJrFSiZ2a0xhdcIHzvzNVrYeVWboRBQyVeCFeFaI +\restrict xo8ia6rwW2ScRCiwTra6d4XKycKxb87xgskAgEDKdN3fhnv0iSTOzXGt62hcNYe -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -42,5 +42,5 @@ ALTER MATERIALIZED VIEW adtech.company_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict OABCCeo7stAutvtaesszt4cxJrFSiZ2a0xhdcIHzvzNVrYeVWboRBQyVeCFeFaI +\unrestrict xo8ia6rwW2ScRCiwTra6d4XKycKxb87xgskAgEDKdN3fhnv0iSTOzXGt62hcNYe diff --git a/pg-ddl/schema/adtech/company_developers.sql b/pg-ddl/schema/adtech/company_developers.sql index 1a3bc31d..ddcfccb3 100644 --- a/pg-ddl/schema/adtech/company_developers.sql +++ b/pg-ddl/schema/adtech/company_developers.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict TOwgS1qrPfBT4XBhQJb3BHPVrCdw6K1fWu8ZeVsiioo4ZE2ZhJMrnOHZbHJBdLg +\restrict fcUekSa5Eby6Guf9XvjRHJLQikmPmul7jVmMW3ZD3cFZWXtiHleUyxx36CXGc4A -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.company_developers -- PostgreSQL database dump complete -- -\unrestrict TOwgS1qrPfBT4XBhQJb3BHPVrCdw6K1fWu8ZeVsiioo4ZE2ZhJMrnOHZbHJBdLg +\unrestrict fcUekSa5Eby6Guf9XvjRHJLQikmPmul7jVmMW3ZD3cFZWXtiHleUyxx36CXGc4A diff --git a/pg-ddl/schema/adtech/company_domain_mapping.sql b/pg-ddl/schema/adtech/company_domain_mapping.sql index 09a66703..1ba2cd20 100644 --- a/pg-ddl/schema/adtech/company_domain_mapping.sql +++ b/pg-ddl/schema/adtech/company_domain_mapping.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict m449BazUGfCO9Y5hGDPRHY4qUk6v9d54sQ1PnVBLvqgefshHpGkgwXMEJ5wmKd6 +\restrict t3vWfJNXK4drHeKquzsztAWG39HTff8c67q1nz9xGBr74X7QUU8ZtvifvMlqx9b -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.company_domain_mapping -- PostgreSQL database dump complete -- -\unrestrict m449BazUGfCO9Y5hGDPRHY4qUk6v9d54sQ1PnVBLvqgefshHpGkgwXMEJ5wmKd6 +\unrestrict t3vWfJNXK4drHeKquzsztAWG39HTff8c67q1nz9xGBr74X7QUU8ZtvifvMlqx9b diff --git a/pg-ddl/schema/adtech/company_sdk_strings__matview.sql b/pg-ddl/schema/adtech/company_sdk_strings__matview.sql index 34f80c71..0c20d79e 100644 --- a/pg-ddl/schema/adtech/company_sdk_strings__matview.sql +++ b/pg-ddl/schema/adtech/company_sdk_strings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict R45HuOui3ZfuCQEEDtmydCfZagqRBYQZmgDfQiVCgkcMR0eVSrVpF1UYnDDNKcc +\restrict slXgFDG7DoDZmWmNkf4QeBnwJ1eADbWlBrjHLgwpM2ilWCgzWYzWaDV7IFSZZVd -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -66,5 +66,5 @@ CREATE UNIQUE INDEX company_sdk_strings_version_string_id_company_id_idx ON adte -- PostgreSQL database dump complete -- -\unrestrict R45HuOui3ZfuCQEEDtmydCfZagqRBYQZmgDfQiVCgkcMR0eVSrVpF1UYnDDNKcc +\unrestrict slXgFDG7DoDZmWmNkf4QeBnwJ1eADbWlBrjHLgwpM2ilWCgzWYzWaDV7IFSZZVd diff --git a/pg-ddl/schema/adtech/sdk_categories.sql b/pg-ddl/schema/adtech/sdk_categories.sql index 7a371d4a..16b6f4be 100644 --- a/pg-ddl/schema/adtech/sdk_categories.sql +++ b/pg-ddl/schema/adtech/sdk_categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict KVmpFPbzEii23eFrc7lltWsVMdGYZMyVb7jcQ1gwGF2VgmmOMFi1DrixNuk2pzX +\restrict 8LE8ke2fWqnNdXzvEWYrh1DPPB79md0mWgEy3Qi73VEdDEjafZIVYISmedZO9PL -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.sdk_categories -- PostgreSQL database dump complete -- -\unrestrict KVmpFPbzEii23eFrc7lltWsVMdGYZMyVb7jcQ1gwGF2VgmmOMFi1DrixNuk2pzX +\unrestrict 8LE8ke2fWqnNdXzvEWYrh1DPPB79md0mWgEy3Qi73VEdDEjafZIVYISmedZO9PL diff --git a/pg-ddl/schema/adtech/sdk_packages.sql b/pg-ddl/schema/adtech/sdk_packages.sql index ae74c9f4..c4335aea 100644 --- a/pg-ddl/schema/adtech/sdk_packages.sql +++ b/pg-ddl/schema/adtech/sdk_packages.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict NUqljQSWaQVFW5xAPBQwpch3cG9OZDB2qBlcMigR4w4QTxrnNn79k9PQ3Drghih +\restrict nzNFl85IJ4tgwzfdKRXWeLL3JrB9fyoGWrDO5N2asRZ0XPougedzvkekKETsBqR -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -99,5 +99,5 @@ ALTER TABLE ONLY adtech.sdk_packages -- PostgreSQL database dump complete -- -\unrestrict NUqljQSWaQVFW5xAPBQwpch3cG9OZDB2qBlcMigR4w4QTxrnNn79k9PQ3Drghih +\unrestrict nzNFl85IJ4tgwzfdKRXWeLL3JrB9fyoGWrDO5N2asRZ0XPougedzvkekKETsBqR diff --git a/pg-ddl/schema/adtech/sdk_paths.sql b/pg-ddl/schema/adtech/sdk_paths.sql index 1b295416..112bb7d0 100644 --- a/pg-ddl/schema/adtech/sdk_paths.sql +++ b/pg-ddl/schema/adtech/sdk_paths.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict LvTgrrnEv8kAN1AV913eC0GnzMC1BguoDBzRM80svql6G48BGa3bPDpwEXo63Wn +\restrict EhGb6MCCa4Ar3MeEdnQG82wtJGqNZWeOlejzfhXaPbBBLWeyGy0YCiPPY1CNV2m -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdk_paths -- PostgreSQL database dump complete -- -\unrestrict LvTgrrnEv8kAN1AV913eC0GnzMC1BguoDBzRM80svql6G48BGa3bPDpwEXo63Wn +\unrestrict EhGb6MCCa4Ar3MeEdnQG82wtJGqNZWeOlejzfhXaPbBBLWeyGy0YCiPPY1CNV2m diff --git a/pg-ddl/schema/adtech/sdks.sql b/pg-ddl/schema/adtech/sdks.sql index bd9b2cc6..c210357e 100644 --- a/pg-ddl/schema/adtech/sdks.sql +++ b/pg-ddl/schema/adtech/sdks.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1BcS0sSNSm14g7JugIW8X5WlHCOaUggTh3QK3HlEhxoHKQlZADLUeQ9byaYLWcU +\restrict bDMu5cX8U1sc0ViVDaGNdhVkhK4siegga7OxNSgGeG6nEwQ7dlXL0fj40g1c26Z -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdks -- PostgreSQL database dump complete -- -\unrestrict 1BcS0sSNSm14g7JugIW8X5WlHCOaUggTh3QK3HlEhxoHKQlZADLUeQ9byaYLWcU +\unrestrict bDMu5cX8U1sc0ViVDaGNdhVkhK4siegga7OxNSgGeG6nEwQ7dlXL0fj40g1c26Z diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql index d954e5b1..1714f55e 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict klgKwiLNys0449QNhyIoJ98gEYfewLl3U0kYuKdh3L8qvzhPZRo1oKEQ8eamUl7 +\restrict uGd5FftiM55EqmocqeRn2efCnVczv9xaoWT4Xa18XhRuLqwdNrgxvDmgcdvWa0K -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -61,5 +61,5 @@ CREATE UNIQUE INDEX store_app_sdk_strings_idx ON adtech.store_app_sdk_strings US -- PostgreSQL database dump complete -- -\unrestrict klgKwiLNys0449QNhyIoJ98gEYfewLl3U0kYuKdh3L8qvzhPZRo1oKEQ8eamUl7 +\unrestrict uGd5FftiM55EqmocqeRn2efCnVczv9xaoWT4Xa18XhRuLqwdNrgxvDmgcdvWa0K diff --git a/pg-ddl/schema/adtech/url_redirect_chains.sql b/pg-ddl/schema/adtech/url_redirect_chains.sql index f1a9ed00..b26f252e 100644 --- a/pg-ddl/schema/adtech/url_redirect_chains.sql +++ b/pg-ddl/schema/adtech/url_redirect_chains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict p0LExNn9lRC7svobIOmRy1kSFwYt3UPh4hKLRTr9QBAHn4ryVPIgsgCzQcTWE47 +\restrict j5wQwZWrpTAvOnbLbcGacXjs4nTj0AlnT5rdUQwefbDFtlapDylfv6JguBF82a7 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -122,5 +122,5 @@ ALTER TABLE ONLY adtech.url_redirect_chains -- PostgreSQL database dump complete -- -\unrestrict p0LExNn9lRC7svobIOmRy1kSFwYt3UPh4hKLRTr9QBAHn4ryVPIgsgCzQcTWE47 +\unrestrict j5wQwZWrpTAvOnbLbcGacXjs4nTj0AlnT5rdUQwefbDFtlapDylfv6JguBF82a7 diff --git a/pg-ddl/schema/adtech/urls.sql b/pg-ddl/schema/adtech/urls.sql index ce7a1a1d..1b2a62ba 100644 --- a/pg-ddl/schema/adtech/urls.sql +++ b/pg-ddl/schema/adtech/urls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fSlwh9mTckU8Zs2jZUn5KH2RLEuIKj7Q2nzATNSz5hJgBaqcHatn9DpPewFKUsi +\restrict bHGZAuwFaMNDznyHdWLYzX9FsTnngUTJASKtbymbs43cl40fuR40EGjSMoBbuEU -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -111,5 +111,5 @@ ALTER TABLE ONLY adtech.urls -- PostgreSQL database dump complete -- -\unrestrict fSlwh9mTckU8Zs2jZUn5KH2RLEuIKj7Q2nzATNSz5hJgBaqcHatn9DpPewFKUsi +\unrestrict bHGZAuwFaMNDznyHdWLYzX9FsTnngUTJASKtbymbs43cl40fuR40EGjSMoBbuEU diff --git a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql index c87998b4..65c9d029 100644 --- a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict QlYpna1bSaki5bgKEJdO7SDTKlajbXwFzxdutRhZ80YgsQ0LjuFEvjtUv8yZajw +\restrict PrP00PEdtMIHXdThj4UchXyTkVD9aMbP85zk2on4l8M1nvnO7xFYdDhxae3MfRC -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX adstxt_ad_domain_overview_unique_idx ON frontend.adstxt_ad_d -- PostgreSQL database dump complete -- -\unrestrict QlYpna1bSaki5bgKEJdO7SDTKlajbXwFzxdutRhZ80YgsQ0LjuFEvjtUv8yZajw +\unrestrict PrP00PEdtMIHXdThj4UchXyTkVD9aMbP85zk2on4l8M1nvnO7xFYdDhxae3MfRC diff --git a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql index 3737e680..0e213db6 100644 --- a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict m8P9afMp8f4YEuVjwBmiKz5dZt8Ul5xPyQufNJlSoLQXYGb2mBeYiETz5yYw2RY +\restrict wN7y0mbD2hLUPmaD6ckEBiNsoHAp7sOfyx6qtqi8ukRlGTSq1r8V29fZJWd9xpo -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -81,5 +81,5 @@ CREATE UNIQUE INDEX adstxt_entries_store_apps_unique_idx ON frontend.adstxt_entr -- PostgreSQL database dump complete -- -\unrestrict m8P9afMp8f4YEuVjwBmiKz5dZt8Ul5xPyQufNJlSoLQXYGb2mBeYiETz5yYw2RY +\unrestrict wN7y0mbD2hLUPmaD6ckEBiNsoHAp7sOfyx6qtqi8ukRlGTSq1r8V29fZJWd9xpo diff --git a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql index 951b4602..3634abfc 100644 --- a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict cdgcbpLeRiTBXzO9ZKQawvnorkvX0mRv1j8SSjkK8UQZxJrfGXb2maz8rlfLaTu +\restrict cV6V0Rx7Qwfi43U7nVItzi6CVHstdNgvoLLq9P0PokLKw4pHpB9NZ715m14LH3L -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -74,5 +74,5 @@ CREATE UNIQUE INDEX adstxt_publishers_overview_ad_domain_unique_idx ON frontend. -- PostgreSQL database dump complete -- -\unrestrict cdgcbpLeRiTBXzO9ZKQawvnorkvX0mRv1j8SSjkK8UQZxJrfGXb2maz8rlfLaTu +\unrestrict cV6V0Rx7Qwfi43U7nVItzi6CVHstdNgvoLLq9P0PokLKw4pHpB9NZ715m14LH3L diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql index e4b783fa..6250e722 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict xWXFj8Q7xiMIJOvDF6hcVKMlh2s0IMIzF194L8rhxmzPFEuoLVCmxTgdIomtgWP +\restrict GEtvm1FkJTGbCgJp8hE9UjccMaiDBcDl3ngbX31hb2rORA9dc8HQINne1airJCq -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -107,5 +107,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict xWXFj8Q7xiMIJOvDF6hcVKMlh2s0IMIzF194L8rhxmzPFEuoLVCmxTgdIomtgWP +\unrestrict GEtvm1FkJTGbCgJp8hE9UjccMaiDBcDl3ngbX31hb2rORA9dc8HQINne1airJCq diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql index 3b6ce2dd..fde181d5 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict gTMUvUksi3R1sibnN73LPjyW7Q0NkegdNLGA37YYrfHQAa1ljHJ5Ri9DRuXjDkT +\restrict 9fdACUrqF9F49Nh6ThSUI78gGdqXItt6IID3XIXWSJhkgrHg3uZHi8VMqu4fuAl -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -114,5 +114,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings_recent_month OWNER -- PostgreSQL database dump complete -- -\unrestrict gTMUvUksi3R1sibnN73LPjyW7Q0NkegdNLGA37YYrfHQAa1ljHJ5Ri9DRuXjDkT +\unrestrict 9fdACUrqF9F49Nh6ThSUI78gGdqXItt6IID3XIXWSJhkgrHg3uZHi8VMqu4fuAl diff --git a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql index 7f092b06..cfae2e2f 100644 --- a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qofAthzbWJil30wUYXxMwRjE3lVIfrot1rgOMNNbisDxB5IqZ094Gx54Bcypbgj +\restrict QHFeDAv7TxeKqh9jlgPb25Lget0qGBsi1RI2Ntif49mGRwfWiWv5KqH7zOXWA20 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict qofAthzbWJil30wUYXxMwRjE3lVIfrot1rgOMNNbisDxB5IqZ094Gx54Bcypbgj +\unrestrict QHFeDAv7TxeKqh9jlgPb25Lget0qGBsi1RI2Ntif49mGRwfWiWv5KqH7zOXWA20 diff --git a/pg-ddl/schema/frontend/api_call_countries__matview.sql b/pg-ddl/schema/frontend/api_call_countries__matview.sql index 5333713a..b1d986d8 100644 --- a/pg-ddl/schema/frontend/api_call_countries__matview.sql +++ b/pg-ddl/schema/frontend/api_call_countries__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict zF7fsx8oEkpdsEMVz6EwRx76p5usxr4A9a38hF5FKz4LlmtEV46YAuPqJraaLWz +\restrict 13gVnybBUIFbu2Jn5h6mHe99M8pFXaXjrNI0NtqIhgsfzcY5RVsiVzfNewWzeoH -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -87,5 +87,5 @@ CREATE UNIQUE INDEX api_call_countries_unique ON frontend.api_call_countries USI -- PostgreSQL database dump complete -- -\unrestrict zF7fsx8oEkpdsEMVz6EwRx76p5usxr4A9a38hF5FKz4LlmtEV46YAuPqJraaLWz +\unrestrict 13gVnybBUIFbu2Jn5h6mHe99M8pFXaXjrNI0NtqIhgsfzcY5RVsiVzfNewWzeoH diff --git a/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql index 7d6950a2..07354e63 100644 --- a/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql +++ b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict E6H0HhPx7E6yFEQEeFEE5DUdFh36I8U1PKGG19lyi4ihtv4cogNVombfxo7yEh4 +\restrict 3TrRJJMNChYX97vNmMWfDOpcbKCQeczmFHh9uVuaUWKTJXNlCzbfYEzhZv7mCHQ -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -72,5 +72,5 @@ ALTER MATERIALIZED VIEW frontend.app_keyword_rank_stats OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict E6H0HhPx7E6yFEQEeFEE5DUdFh36I8U1PKGG19lyi4ihtv4cogNVombfxo7yEh4 +\unrestrict 3TrRJJMNChYX97vNmMWfDOpcbKCQeczmFHh9uVuaUWKTJXNlCzbfYEzhZv7mCHQ diff --git a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql index 74ef20d3..228d7ab8 100644 --- a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql +++ b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1mMnRH6R7kXcZKVDDQGxMjgUDoSszeobggHxiImJCbht0cGaJMcgoPrueqPGJTr +\restrict FPgtpU1PEUpVaXv4sJPRtDVemcA5t4BLGG62MJ2uYoaTfpXBkCGeXaIOmV5kKWN -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -104,5 +104,5 @@ ALTER TABLE ONLY frontend.app_keyword_ranks_daily -- PostgreSQL database dump complete -- -\unrestrict 1mMnRH6R7kXcZKVDDQGxMjgUDoSszeobggHxiImJCbht0cGaJMcgoPrueqPGJTr +\unrestrict FPgtpU1PEUpVaXv4sJPRtDVemcA5t4BLGG62MJ2uYoaTfpXBkCGeXaIOmV5kKWN diff --git a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql index 4ec13e9f..3404e5e9 100644 --- a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qlplaXth8V4UAZ6l9ga418LARLpVqwyyXRjXls5bF2IacuMunGGCzDfWxvvQc04 +\restrict d97o38X3k3RXGVlT74gzSvy1gSnrORGSR12SRRySNaxkWdpTnoRqlIqTFnIyuQd -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -116,5 +116,5 @@ CREATE UNIQUE INDEX idx_apps_new_monthly ON frontend.apps_new_monthly USING btre -- PostgreSQL database dump complete -- -\unrestrict qlplaXth8V4UAZ6l9ga418LARLpVqwyyXRjXls5bF2IacuMunGGCzDfWxvvQc04 +\unrestrict d97o38X3k3RXGVlT74gzSvy1gSnrORGSR12SRRySNaxkWdpTnoRqlIqTFnIyuQd diff --git a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql index 9e635257..9f67d176 100644 --- a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 8IdCNsZlny6NxasrX0dFiIUco0eo4I0A5OtW9DT6ldWprKwCo0WwiGaCau5hB2a +\restrict VJOsLogw2xf5IMGYDGivSkuKx1tuI847hMGZ43Vqe4aG6yCNTOwCkgREyaUENlz -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -123,5 +123,5 @@ CREATE UNIQUE INDEX idx_apps_new_weekly_f ON frontend.apps_new_weekly USING btre -- PostgreSQL database dump complete -- -\unrestrict 8IdCNsZlny6NxasrX0dFiIUco0eo4I0A5OtW9DT6ldWprKwCo0WwiGaCau5hB2a +\unrestrict VJOsLogw2xf5IMGYDGivSkuKx1tuI847hMGZ43Vqe4aG6yCNTOwCkgREyaUENlz diff --git a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql index 873462c0..d7665d77 100644 --- a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ZOJDbRplnLNhTM0WDSpS7d0gmlACDRDSew51Ozw2cWLetwPDEOyM6mRh5aCWXFT +\restrict 0AtRdtjajDYgXvxd17krK6yUpiReFAzFckPNug1FM8skcGDNtVsJ1SGNXPsihpw -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -116,5 +116,5 @@ CREATE UNIQUE INDEX idx_apps_new_yearly ON frontend.apps_new_yearly USING btree -- PostgreSQL database dump complete -- -\unrestrict ZOJDbRplnLNhTM0WDSpS7d0gmlACDRDSew51Ozw2cWLetwPDEOyM6mRh5aCWXFT +\unrestrict 0AtRdtjajDYgXvxd17krK6yUpiReFAzFckPNug1FM8skcGDNtVsJ1SGNXPsihpw diff --git a/pg-ddl/schema/frontend/category_tag_stats__matview.sql b/pg-ddl/schema/frontend/category_tag_stats__matview.sql index ec050a7e..50e50420 100644 --- a/pg-ddl/schema/frontend/category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict TUhPecNTua36IbAdU1BLHv31kZhQaafPez6yRGPVSYhj9spCifCnuJpl3upheyv +\restrict cdgVxINSOXcDZutKE95l5uE8HBy7nTcgqINBftX7mHAaTzuQahPLu1pdGhu6gSP -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -74,5 +74,5 @@ CREATE UNIQUE INDEX idx_category_tag_stats ON frontend.category_tag_stats USING -- PostgreSQL database dump complete -- -\unrestrict TUhPecNTua36IbAdU1BLHv31kZhQaafPez6yRGPVSYhj9spCifCnuJpl3upheyv +\unrestrict cdgVxINSOXcDZutKE95l5uE8HBy7nTcgqINBftX7mHAaTzuQahPLu1pdGhu6gSP diff --git a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql index 50ff8203..d86da36a 100644 --- a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict yIXmBFhhBgLeaffr5UB5vAphWLU5dgc6JdLNgwebdglPED3ishiTzLShWaAjMwz +\restrict I1rfTQYe2tJtOUmWVZVVK5iSIIzqe9POCLHAYTEfUYfkl2gkozymb5IMxqhg8u5 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -68,5 +68,5 @@ CREATE UNIQUE INDEX companies_apps_overview_unique_idx ON frontend.companies_app -- PostgreSQL database dump complete -- -\unrestrict yIXmBFhhBgLeaffr5UB5vAphWLU5dgc6JdLNgwebdglPED3ishiTzLShWaAjMwz +\unrestrict I1rfTQYe2tJtOUmWVZVVK5iSIIzqe9POCLHAYTEfUYfkl2gkozymb5IMxqhg8u5 diff --git a/pg-ddl/schema/frontend/companies_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_stats__matview.sql index 9ae0b633..4aa795d2 100644 --- a/pg-ddl/schema/frontend/companies_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict U2McsSTiu6IMQwJss6MJpUkbQzXbC0DcfSx8pP9j9BNx7xpztydVfm1UNN08AmX +\restrict ZEqvOlgFmWVZvRCcEsnhbZHObSRlScKztHDVztUehcmKalpHjHlK9erzjfG5N51 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -82,5 +82,5 @@ CREATE INDEX companies_category_stats_query_idx ON frontend.companies_category_s -- PostgreSQL database dump complete -- -\unrestrict U2McsSTiu6IMQwJss6MJpUkbQzXbC0DcfSx8pP9j9BNx7xpztydVfm1UNN08AmX +\unrestrict ZEqvOlgFmWVZvRCcEsnhbZHObSRlScKztHDVztUehcmKalpHjHlK9erzjfG5N51 diff --git a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql index 1c0f8f46..6a59f6f3 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 0m8Qrma9OWGrD72QNq5oX5uofgd4KIQx33f8fPItgzcwZy88axJDJgxyuWmKnEZ +\restrict YKc3exCpzxt1hQyJLHo22jOlye4QMIFb97djcilhkvh9AJAZ6f5jaVopvEV2szT -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -86,5 +86,5 @@ CREATE UNIQUE INDEX companies_category_tag_stats_idx ON frontend.companies_categ -- PostgreSQL database dump complete -- -\unrestrict 0m8Qrma9OWGrD72QNq5oX5uofgd4KIQx33f8fPItgzcwZy88axJDJgxyuWmKnEZ +\unrestrict YKc3exCpzxt1hQyJLHo22jOlye4QMIFb97djcilhkvh9AJAZ6f5jaVopvEV2szT diff --git a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql index 7b8142ee..3fad3df8 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict NMUsAEPWtPcHwcXeefUR9EVq2C7RKCIwEargInP5nOEcxZoZdL3AeYPbg29ePXC +\restrict dPc9yGDdfREaD9iEnNhg1L2zGJb16iCKtAZhLANEVvLQ9gdqpdVcBVnHAyuZEy0 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -86,5 +86,5 @@ CREATE INDEX companies_category_tag_type_stats_query_idx ON frontend.companies_c -- PostgreSQL database dump complete -- -\unrestrict NMUsAEPWtPcHwcXeefUR9EVq2C7RKCIwEargInP5nOEcxZoZdL3AeYPbg29ePXC +\unrestrict dPc9yGDdfREaD9iEnNhg1L2zGJb16iCKtAZhLANEVvLQ9gdqpdVcBVnHAyuZEy0 diff --git a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql index ae3926cc..8c2e0115 100644 --- a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 6xctBjXgKBSlPrzH2yqBfbvlHQttoSAzbtd1Iu93VwC3M9owh0or9FyZ4CPvzJ0 +\restrict XtZwxdXJZEL5haag2cDXg8NxO9SVs7NcKqYpWSnhUeYvM2Zs35MEGxjSuXeh3t0 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -130,5 +130,5 @@ ALTER MATERIALIZED VIEW frontend.companies_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 6xctBjXgKBSlPrzH2yqBfbvlHQttoSAzbtd1Iu93VwC3M9owh0or9FyZ4CPvzJ0 +\unrestrict XtZwxdXJZEL5haag2cDXg8NxO9SVs7NcKqYpWSnhUeYvM2Zs35MEGxjSuXeh3t0 diff --git a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql index 1376abbf..3a137265 100644 --- a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql +++ b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict rEpoW2Agibv5vCySyBOlz0QN8d4XniyiHJHHYNSE7FOPjyTXgyuQcDWCmP1wFGv +\restrict Fkc0XUwzwhC7ds6Dnyn2SOgeHyaDMuLgY8z00gVEs3TEusgs4aHonvFfjW08kc0 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -54,5 +54,5 @@ CREATE UNIQUE INDEX companies_open_source_percent_unique ON frontend.companies_o -- PostgreSQL database dump complete -- -\unrestrict rEpoW2Agibv5vCySyBOlz0QN8d4XniyiHJHHYNSE7FOPjyTXgyuQcDWCmP1wFGv +\unrestrict Fkc0XUwzwhC7ds6Dnyn2SOgeHyaDMuLgY8z00gVEs3TEusgs4aHonvFfjW08kc0 diff --git a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql index 320dc0a1..5297a1ac 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict VmwGOpcNAlbiWlJJzfxKxMFd0uvpa2S1GfgzR7o4yCfi2zCLXjCMzhF0kzo18tA +\restrict cdglKtSqvDxhG6JvuRkwkblvYhiTi02iFURJwtym2wO8MOQHDUco0heAfmkOvze -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -87,5 +87,5 @@ CREATE INDEX companies_parent_category_stats_query_idx ON frontend.companies_par -- PostgreSQL database dump complete -- -\unrestrict VmwGOpcNAlbiWlJJzfxKxMFd0uvpa2S1GfgzR7o4yCfi2zCLXjCMzhF0kzo18tA +\unrestrict cdglKtSqvDxhG6JvuRkwkblvYhiTi02iFURJwtym2wO8MOQHDUco0heAfmkOvze diff --git a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql index fc6f8d74..c32f050e 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict aXDpvLlOdhTq8V0paz3AWW3eCWQcxzfxP9XTbyle1st7Ftv3c127viFXABTSJGN +\restrict 3k6fcLUecHTChC2qAdyatWg25Cv6KGjgWMunUSjiirhrunqGMee63Sqs4OIMjTC -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -90,5 +90,5 @@ CREATE INDEX companies_parent_category_tag_stats_query_idx ON frontend.companies -- PostgreSQL database dump complete -- -\unrestrict aXDpvLlOdhTq8V0paz3AWW3eCWQcxzfxP9XTbyle1st7Ftv3c127viFXABTSJGN +\unrestrict 3k6fcLUecHTChC2qAdyatWg25Cv6KGjgWMunUSjiirhrunqGMee63Sqs4OIMjTC diff --git a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql index fc19f776..1556de50 100644 --- a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 2HcC7aVyMTpdXelYQ3NtPQXW9ePgAjFZeSaVebiib7tWAN6QE2b3dJ4eqdmMY03 +\restrict rDKCV0vejaO5aiowL8LAPJpvTrf4FD0mXbjSz1IQWyaZWAvThw9ytIFh7gHoa0l -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX companies_sdks_overview_unique_idx ON frontend.companies_sdk -- PostgreSQL database dump complete -- -\unrestrict 2HcC7aVyMTpdXelYQ3NtPQXW9ePgAjFZeSaVebiib7tWAN6QE2b3dJ4eqdmMY03 +\unrestrict rDKCV0vejaO5aiowL8LAPJpvTrf4FD0mXbjSz1IQWyaZWAvThw9ytIFh7gHoa0l diff --git a/pg-ddl/schema/frontend/company_domain_country__matview.sql b/pg-ddl/schema/frontend/company_domain_country__matview.sql index 800d0658..c795e5fe 100644 --- a/pg-ddl/schema/frontend/company_domain_country__matview.sql +++ b/pg-ddl/schema/frontend/company_domain_country__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict l9t88IX0dKTWZWMTQEfc13cZtxRIwbmFuxWvMfCf413w7iSoYKgWTx9kzJaFmoJ +\restrict Rhu0cIcSovHzzvcVyoTcGN4ElnbnTgdSS8FeRGghKAvpGvnKe4ZMurETcwv1dM9 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -74,5 +74,5 @@ ALTER MATERIALIZED VIEW frontend.company_domain_country OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict l9t88IX0dKTWZWMTQEfc13cZtxRIwbmFuxWvMfCf413w7iSoYKgWTx9kzJaFmoJ +\unrestrict Rhu0cIcSovHzzvcVyoTcGN4ElnbnTgdSS8FeRGghKAvpGvnKe4ZMurETcwv1dM9 diff --git a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql index 21510ea2..2be2fe13 100644 --- a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict N72ergLo1yc27KZsIdvpY85bWGwrIWq3u5TyEAbCJytr5aGhkEjlUeyfKndnEXm +\restrict 7oHB0SYSHduhrvvQdqTznt8GdMGJQv3pFU5je00Q3ymSiKMwpIRNobYeQSi2GbZ -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -115,5 +115,5 @@ CREATE UNIQUE INDEX idx_unique_company_domains_top_apps ON frontend.company_doma -- PostgreSQL database dump complete -- -\unrestrict N72ergLo1yc27KZsIdvpY85bWGwrIWq3u5TyEAbCJytr5aGhkEjlUeyfKndnEXm +\unrestrict 7oHB0SYSHduhrvvQdqTznt8GdMGJQv3pFU5je00Q3ymSiKMwpIRNobYeQSi2GbZ diff --git a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql index c212c4fd..eded4a47 100644 --- a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict SPd5ziSUMwwOrV4v6rSkG3179lnO9ZGL3cIzHFui5kNLT5ZVrJxSQcFdcwfNkJl +\restrict clV6qj8pdjuS3nFzYjALtbK0bPd98Ztt7Ze8CXEcHBEasX7YE7H6rmx61uUBp6W -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -105,5 +105,5 @@ CREATE UNIQUE INDEX idx_company_parent_top_apps_unique ON frontend.company_paren -- PostgreSQL database dump complete -- -\unrestrict SPd5ziSUMwwOrV4v6rSkG3179lnO9ZGL3cIzHFui5kNLT5ZVrJxSQcFdcwfNkJl +\unrestrict clV6qj8pdjuS3nFzYjALtbK0bPd98Ztt7Ze8CXEcHBEasX7YE7H6rmx61uUBp6W diff --git a/pg-ddl/schema/frontend/company_top_apps__matview.sql b/pg-ddl/schema/frontend/company_top_apps__matview.sql index e33b1f0e..a4d53824 100644 --- a/pg-ddl/schema/frontend/company_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict XxEfxl6THS9PjOfct9W3igBPnQz7Oj9hKSzSNG3hTqAUNK4v9IwfcDyQ7SilvkO +\restrict E3wij5mxR0GFYKjle0z3NcdD7dkjT6Mbw2433RATEK2eHgTWl3IYYX7uj4pfIZF -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -112,5 +112,5 @@ CREATE UNIQUE INDEX idx_unique_company_top_apps ON frontend.company_top_apps USI -- PostgreSQL database dump complete -- -\unrestrict XxEfxl6THS9PjOfct9W3igBPnQz7Oj9hKSzSNG3hTqAUNK4v9IwfcDyQ7SilvkO +\unrestrict E3wij5mxR0GFYKjle0z3NcdD7dkjT6Mbw2433RATEK2eHgTWl3IYYX7uj4pfIZF diff --git a/pg-ddl/schema/frontend/keyword_scores__matview.sql b/pg-ddl/schema/frontend/keyword_scores__matview.sql index f4417fef..4714726f 100644 --- a/pg-ddl/schema/frontend/keyword_scores__matview.sql +++ b/pg-ddl/schema/frontend/keyword_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Zx22EPBQ6dcYL5UGYFRAXzzjdonQya9hQ5EYACkhOcTgiHhxIJ6PdmwiMAYA88h +\restrict 2WtDDWINDaH9mPSYVmqd9YuqC9xWxPoCDssZEQ1p3viy0riQ1DI4jZP0Nc3XKdU -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -137,5 +137,5 @@ ALTER MATERIALIZED VIEW frontend.keyword_scores OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict Zx22EPBQ6dcYL5UGYFRAXzzjdonQya9hQ5EYACkhOcTgiHhxIJ6PdmwiMAYA88h +\unrestrict 2WtDDWINDaH9mPSYVmqd9YuqC9xWxPoCDssZEQ1p3viy0riQ1DI4jZP0Nc3XKdU diff --git a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql index 6c501dbf..d20a0850 100644 --- a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql +++ b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ayaWPjLOFRF0GpS4YHOMzOP7rqPVjEznLcgIlde6EtYWbOTzCY1AnZM3rexa6op +\restrict Sij27e7FmEN1SoFqdJIke8RSSWAuydfBWvmfKKd69pfGd92assCEL1JjHdT6cfa -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -77,5 +77,5 @@ CREATE UNIQUE INDEX latest_sdk_scanned_apps_unique_index ON frontend.latest_sdk_ -- PostgreSQL database dump complete -- -\unrestrict ayaWPjLOFRF0GpS4YHOMzOP7rqPVjEznLcgIlde6EtYWbOTzCY1AnZM3rexa6op +\unrestrict Sij27e7FmEN1SoFqdJIke8RSSWAuydfBWvmfKKd69pfGd92assCEL1JjHdT6cfa diff --git a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql index d95745da..a234150a 100644 --- a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql +++ b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict SzwTtfXsb6uefc6KWILGs2UMg50BqKbbF2JrJ7B9D4GiDEq56tP4bagHo2jaKCb +\restrict 8DBf4vawmGwsxb8O6hKgb2M0Y22uxKPs21O03NJhKcmrPCVYGyZQzXv2R7LEpUA -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -61,5 +61,5 @@ ALTER MATERIALIZED VIEW frontend.store_app_api_companies OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict SzwTtfXsb6uefc6KWILGs2UMg50BqKbbF2JrJ7B9D4GiDEq56tP4bagHo2jaKCb +\unrestrict 8DBf4vawmGwsxb8O6hKgb2M0Y22uxKPs21O03NJhKcmrPCVYGyZQzXv2R7LEpUA diff --git a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql index a0708a37..8a0c3d98 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict j2Q6JLTGm0fBTUJhtXfc43HqI3AvTIM6ZD4fasxIrfRSjl6bu5q3t2gGxaBFYeD +\restrict Y9kP6iMCypTIsuDsCbNdB2WwM5baJdvQxKili82W78kR4OmFQmj5ZmsQOzIrYSH -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -71,5 +71,5 @@ CREATE UNIQUE INDEX store_app_ranks_best_monthly_uidx ON frontend.store_app_rank -- PostgreSQL database dump complete -- -\unrestrict j2Q6JLTGm0fBTUJhtXfc43HqI3AvTIM6ZD4fasxIrfRSjl6bu5q3t2gGxaBFYeD +\unrestrict Y9kP6iMCypTIsuDsCbNdB2WwM5baJdvQxKili82W78kR4OmFQmj5ZmsQOzIrYSH diff --git a/pg-ddl/schema/frontend/store_app_ranks_daily.sql b/pg-ddl/schema/frontend/store_app_ranks_daily.sql index cee00f3a..6da64c2a 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_daily.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_daily.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 3a14UnSaPoBD9f7QnyNbHYWozszxyUSWDyFTp8bfSHyUVWN6ruqM5ItrjU9eg4U +\restrict VyzIRk2fhfDgpYbPl2woMzFK0I0kCH8OIYOpgvQlZE7OISyau2ZYtGXK6g9sEsl -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -91,5 +91,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_daily -- PostgreSQL database dump complete -- -\unrestrict 3a14UnSaPoBD9f7QnyNbHYWozszxyUSWDyFTp8bfSHyUVWN6ruqM5ItrjU9eg4U +\unrestrict VyzIRk2fhfDgpYbPl2woMzFK0I0kCH8OIYOpgvQlZE7OISyau2ZYtGXK6g9sEsl diff --git a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql index 18767fee..e51582d3 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fEyHVcgo87CzsvOdE7oghqfFZWADd1hTu2NIO1eXxwmPKUxNCjo2o90bY0ojmBz +\restrict uw9YV8rv2tRdcsLreoX6ND9DdgDt82Ri5wxiK4Jk3hgqncOesDAgssyXfY4Dtlw -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -72,5 +72,5 @@ CREATE UNIQUE INDEX idx_store_app_ranks_latest_filter_sort ON frontend.store_app -- PostgreSQL database dump complete -- -\unrestrict fEyHVcgo87CzsvOdE7oghqfFZWADd1hTu2NIO1eXxwmPKUxNCjo2o90bY0ojmBz +\unrestrict uw9YV8rv2tRdcsLreoX6ND9DdgDt82Ri5wxiK4Jk3hgqncOesDAgssyXfY4Dtlw diff --git a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql index ec05381f..a7585cbd 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict IdEdcrCWgT1TtgEvf80GhKK8kJt6hKD2btJS38wvXW24AZXHZ735gu87QMtUVAX +\restrict 6EFiGoc3vqCvA0oWXUWOhupZ2lgUlchHc0N3xBcOrj0Wfncy0NI2UhIGd5TFXZu -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -98,5 +98,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_weekly -- PostgreSQL database dump complete -- -\unrestrict IdEdcrCWgT1TtgEvf80GhKK8kJt6hKD2btJS38wvXW24AZXHZ735gu87QMtUVAX +\unrestrict 6EFiGoc3vqCvA0oWXUWOhupZ2lgUlchHc0N3xBcOrj0Wfncy0NI2UhIGd5TFXZu diff --git a/pg-ddl/schema/frontend/store_apps_overview__matview.sql b/pg-ddl/schema/frontend/store_apps_overview__matview.sql index 2894d67c..c5c8a682 100644 --- a/pg-ddl/schema/frontend/store_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/store_apps_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict psQnnMWzQO1a5s2QvM8EpFMcygZRCOfwbkxmANZt7knt3q74DVv9v6Mc3ixhgUi +\restrict bHxMGD2MyZTL0geELEYYhZthLErpjn3T52DHT4HgAs7swxbanzyk9qubRFfcBJh -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -198,5 +198,5 @@ CREATE UNIQUE INDEX store_apps_overview_unique_store_id_idx ON frontend.store_ap -- PostgreSQL database dump complete -- -\unrestrict psQnnMWzQO1a5s2QvM8EpFMcygZRCOfwbkxmANZt7knt3q74DVv9v6Mc3ixhgUi +\unrestrict bHxMGD2MyZTL0geELEYYhZthLErpjn3T52DHT4HgAs7swxbanzyk9qubRFfcBJh diff --git a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql b/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql index 672d6935..3f75883a 100644 --- a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql +++ b/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict KYWGYsz8MymhwUazSNBApSjqleqjYaWgOIxRa5pjI3OWyuhSXbe3SpwNYHBt0zi +\restrict VFUxBYpJJzqefKYdcakYJSLTXibJuahu9PWm9T5LZsBW2AoSKo5wXhVDPVN5v9u -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -124,5 +124,5 @@ CREATE UNIQUE INDEX frontend_store_apps_z_scores_unique ON frontend.store_apps_z -- PostgreSQL database dump complete -- -\unrestrict KYWGYsz8MymhwUazSNBApSjqleqjYaWgOIxRa5pjI3OWyuhSXbe3SpwNYHBt0zi +\unrestrict VFUxBYpJJzqefKYdcakYJSLTXibJuahu9PWm9T5LZsBW2AoSKo5wXhVDPVN5v9u diff --git a/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql b/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql index b861056c..d412cf35 100644 --- a/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql +++ b/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict tkmKeABKHpjurbQtyplLmE5hhLckZJe30EFZeWwzuRmLCignWjD79CMyTOYcbcE +\restrict uxeNazwNSdTnByAlHsUrdmjmH2MEZZmfoDlp0keNxtLIuQIODXnOKSkWB6rCK3s -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -53,5 +53,5 @@ CREATE UNIQUE INDEX idx_total_categories_app_counts ON frontend.total_categories -- PostgreSQL database dump complete -- -\unrestrict tkmKeABKHpjurbQtyplLmE5hhLckZJe30EFZeWwzuRmLCignWjD79CMyTOYcbcE +\unrestrict uxeNazwNSdTnByAlHsUrdmjmH2MEZZmfoDlp0keNxtLIuQIODXnOKSkWB6rCK3s diff --git a/pg-ddl/schema/full_db_dump.sql b/pg-ddl/schema/full_db_dump.sql index c5e455a0..5a14c556 100644 --- a/pg-ddl/schema/full_db_dump.sql +++ b/pg-ddl/schema/full_db_dump.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict CJQVCBsnAPakytBZfez5IIoNv5kKAuHgoLwfP308aWlkrButsWv9fYs0KjFSzDE +\restrict YN5pf2W3Mo9kwVZB0VjdIB2Z7lpYJOnffPfo4LzSTgsnmhTIKYWxdk1O4Q3BgSJ -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -3482,23 +3482,6 @@ CREATE TABLE logging.store_app_waydroid_crawled_at ( ALTER TABLE logging.store_app_waydroid_crawled_at OWNER TO postgres; --- --- Name: store_apps_audit; Type: TABLE; Schema: logging; Owner: postgres --- - -CREATE TABLE logging.store_apps_audit ( - operation character(1) NOT NULL, - stamp timestamp without time zone NOT NULL, - userid text NOT NULL, - row_id bigint NOT NULL, - store smallint NOT NULL, - store_id text NOT NULL, - crawl_result integer -); - - -ALTER TABLE logging.store_apps_audit OWNER TO postgres; - -- -- Name: store_apps_snapshot; Type: TABLE; Schema: logging; Owner: postgres -- @@ -5782,13 +5765,6 @@ CREATE UNIQUE INDEX store_apps_overview_unique_store_id_idx ON frontend.store_ap CREATE UNIQUE INDEX logging_store_app_upsert_unique ON logging.store_app_waydroid_crawled_at USING btree (store_app, crawl_result, crawled_at); --- --- Name: store_apps_audit_stamp_idx; Type: INDEX; Schema: logging; Owner: postgres --- - -CREATE INDEX store_apps_audit_stamp_idx ON logging.store_apps_audit USING btree (stamp); - - -- -- Name: app_country_metrics_history_date_idx; Type: INDEX; Schema: public; Owner: postgres -- @@ -6711,5 +6687,5 @@ GRANT ALL ON SCHEMA public TO PUBLIC; -- PostgreSQL database dump complete -- -\unrestrict CJQVCBsnAPakytBZfez5IIoNv5kKAuHgoLwfP308aWlkrButsWv9fYs0KjFSzDE +\unrestrict YN5pf2W3Mo9kwVZB0VjdIB2Z7lpYJOnffPfo4LzSTgsnmhTIKYWxdk1O4Q3BgSJ diff --git a/pg-ddl/schema/logging/app_country_crawls.sql b/pg-ddl/schema/logging/app_country_crawls.sql index 66501eb8..bc131924 100644 --- a/pg-ddl/schema/logging/app_country_crawls.sql +++ b/pg-ddl/schema/logging/app_country_crawls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict FChUABdyt1zZ0J0zG6eG6t1GFKJ8KiyeCLNkNEFRpd0ZbSQGGHdKYSwwTnxWC1t +\restrict DgwhzKP0BpeThmlr8SiSKJy6dXOm3FZcng8RuECNbWyFUN6XfXpnbjhwwBXjTbH -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -57,5 +57,5 @@ ALTER TABLE ONLY logging.app_country_crawls -- PostgreSQL database dump complete -- -\unrestrict FChUABdyt1zZ0J0zG6eG6t1GFKJ8KiyeCLNkNEFRpd0ZbSQGGHdKYSwwTnxWC1t +\unrestrict DgwhzKP0BpeThmlr8SiSKJy6dXOm3FZcng8RuECNbWyFUN6XfXpnbjhwwBXjTbH diff --git a/pg-ddl/schema/logging/creative_scan_results.sql b/pg-ddl/schema/logging/creative_scan_results.sql index d72f9d9b..ddcbc0dd 100644 --- a/pg-ddl/schema/logging/creative_scan_results.sql +++ b/pg-ddl/schema/logging/creative_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict DJ9DeAEzd5ucGX2Xr2WDCRVjSObKTtwOuZSHzORF3fadghgxZcMwhqNTVGn05hN +\restrict sAkt2Q7hnb4Y7HrX1djfLBuApdiv0klMARVSi5bnOoiquc1FAdGng327RdRYDIn -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -47,5 +47,5 @@ ALTER TABLE logging.creative_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict DJ9DeAEzd5ucGX2Xr2WDCRVjSObKTtwOuZSHzORF3fadghgxZcMwhqNTVGn05hN +\unrestrict sAkt2Q7hnb4Y7HrX1djfLBuApdiv0klMARVSi5bnOoiquc1FAdGng327RdRYDIn diff --git a/pg-ddl/schema/logging/developers_crawled_at.sql b/pg-ddl/schema/logging/developers_crawled_at.sql index 3ba5d0f4..bcaee7b6 100644 --- a/pg-ddl/schema/logging/developers_crawled_at.sql +++ b/pg-ddl/schema/logging/developers_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict EPrpKsn7JMGvP49rzA1IUDHvQkmUE6KIiamz8dVTaMuHyXVhGfHTUeMyZ79T7ja +\restrict nJyV6DCzuLzod4rQDqYTZJ3e8d3tO2iHWQuSvsLIScdwasRm5T34dbaz25LPhec -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.developers_crawled_at -- PostgreSQL database dump complete -- -\unrestrict EPrpKsn7JMGvP49rzA1IUDHvQkmUE6KIiamz8dVTaMuHyXVhGfHTUeMyZ79T7ja +\unrestrict nJyV6DCzuLzod4rQDqYTZJ3e8d3tO2iHWQuSvsLIScdwasRm5T34dbaz25LPhec diff --git a/pg-ddl/schema/logging/keywords_crawled_at.sql b/pg-ddl/schema/logging/keywords_crawled_at.sql index c46d5759..9ce00c7e 100644 --- a/pg-ddl/schema/logging/keywords_crawled_at.sql +++ b/pg-ddl/schema/logging/keywords_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 6b3ZM2xAKgqEOjxyzD8Xh7QQJdMyppwHpoc392MpUJ2uo4g3xzgdUa4UPQoGNv4 +\restrict rGWAXTyJqDbvcCOLmwdiWlSTqck7MU7JoENMzGZIIjEmSe715S0ihk6cAn9lT1B -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.keywords_crawled_at -- PostgreSQL database dump complete -- -\unrestrict 6b3ZM2xAKgqEOjxyzD8Xh7QQJdMyppwHpoc392MpUJ2uo4g3xzgdUa4UPQoGNv4 +\unrestrict rGWAXTyJqDbvcCOLmwdiWlSTqck7MU7JoENMzGZIIjEmSe715S0ihk6cAn9lT1B diff --git a/pg-ddl/schema/logging/snapshot_pub_domains.sql b/pg-ddl/schema/logging/snapshot_pub_domains.sql index 8410c26f..cc435a91 100644 --- a/pg-ddl/schema/logging/snapshot_pub_domains.sql +++ b/pg-ddl/schema/logging/snapshot_pub_domains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 8DJ6zcSBuSmBXeTvF6dwelgmcgeoVcqIdL9fHxsuzZUZXvLeSeL2EOPEunb6Hde +\restrict fbuWC7H3nJVtquXkVNbHoSavpbn7aRHrFW0VdRZmo7TmHcCLIMO2ndfdxOjLrPl -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -43,5 +43,5 @@ ALTER TABLE logging.snapshot_pub_domains OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 8DJ6zcSBuSmBXeTvF6dwelgmcgeoVcqIdL9fHxsuzZUZXvLeSeL2EOPEunb6Hde +\unrestrict fbuWC7H3nJVtquXkVNbHoSavpbn7aRHrFW0VdRZmo7TmHcCLIMO2ndfdxOjLrPl diff --git a/pg-ddl/schema/logging/store_app_downloads.sql b/pg-ddl/schema/logging/store_app_downloads.sql index 86272d8c..b570f545 100644 --- a/pg-ddl/schema/logging/store_app_downloads.sql +++ b/pg-ddl/schema/logging/store_app_downloads.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict XBbdOC9NwSrIM7krZ6XKhsYbEfR8YOqAE5KEnjSLAvLrDpz3v1bqv2DeNJQNlMZ +\restrict rNvMvzm9C3OPgfRb8HZEoclNshh0hKAAtPsdgBRxHrRy3fGFkg6m2scazf4SW1T -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -49,5 +49,5 @@ ALTER TABLE ONLY logging.store_app_downloads -- PostgreSQL database dump complete -- -\unrestrict XBbdOC9NwSrIM7krZ6XKhsYbEfR8YOqAE5KEnjSLAvLrDpz3v1bqv2DeNJQNlMZ +\unrestrict rNvMvzm9C3OPgfRb8HZEoclNshh0hKAAtPsdgBRxHrRy3fGFkg6m2scazf4SW1T diff --git a/pg-ddl/schema/logging/store_app_no_creatives.sql b/pg-ddl/schema/logging/store_app_no_creatives.sql index b2acc879..c238c6a6 100644 --- a/pg-ddl/schema/logging/store_app_no_creatives.sql +++ b/pg-ddl/schema/logging/store_app_no_creatives.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1asLxBpT76J3f7fKVosOfwh6OiQUTqrbgHeDmvAnmDBLD3lkihkdgpzakcXBb2r +\restrict wvLvDqJ9oCvgwbiR6nsvFp1lARFS2SWNzNscBwO8cObm6V66q5O5kfzLoWPc4E7 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -40,5 +40,5 @@ ALTER TABLE logging.store_app_no_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 1asLxBpT76J3f7fKVosOfwh6OiQUTqrbgHeDmvAnmDBLD3lkihkdgpzakcXBb2r +\unrestrict wvLvDqJ9oCvgwbiR6nsvFp1lARFS2SWNzNscBwO8cObm6V66q5O5kfzLoWPc4E7 diff --git a/pg-ddl/schema/logging/store_app_sources.sql b/pg-ddl/schema/logging/store_app_sources.sql index af6324bf..f434f986 100644 --- a/pg-ddl/schema/logging/store_app_sources.sql +++ b/pg-ddl/schema/logging/store_app_sources.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict oiyAAXHX5h9yu0AGhcMa082tBXeQjey9sZVodMMToV4YKBpUQhZhDxXS4vvP6xg +\restrict WIaBazbmjmE434K4kmOrU3ni9b6yoDc0AZvlanK9KOt6ytqfH3dep8kklkUxLqW -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -64,5 +64,5 @@ ALTER TABLE ONLY logging.store_app_sources -- PostgreSQL database dump complete -- -\unrestrict oiyAAXHX5h9yu0AGhcMa082tBXeQjey9sZVodMMToV4YKBpUQhZhDxXS4vvP6xg +\unrestrict WIaBazbmjmE434K4kmOrU3ni9b6yoDc0AZvlanK9KOt6ytqfH3dep8kklkUxLqW diff --git a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql index b5fd64c6..cf3eb0cc 100644 --- a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql +++ b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict rcr3D1lnaapPRzAhHMRKbJSH1SZnLXA9jVkZwsSl2phZLoZdEpPVBJ9artV2AkG +\restrict bzDvZjvPePQZbuzsnJj4HKQ8EbAK3BzPdsDf4THcuoQ93tp4digEbh9f0uifdxe -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -63,5 +63,5 @@ ALTER TABLE ONLY logging.store_app_waydroid_crawled_at -- PostgreSQL database dump complete -- -\unrestrict rcr3D1lnaapPRzAhHMRKbJSH1SZnLXA9jVkZwsSl2phZLoZdEpPVBJ9artV2AkG +\unrestrict bzDvZjvPePQZbuzsnJj4HKQ8EbAK3BzPdsDf4THcuoQ93tp4digEbh9f0uifdxe diff --git a/pg-ddl/schema/logging/store_apps_audit.sql b/pg-ddl/schema/logging/store_apps_audit.sql deleted file mode 100644 index 99eddc70..00000000 --- a/pg-ddl/schema/logging/store_apps_audit.sql +++ /dev/null @@ -1,55 +0,0 @@ --- --- PostgreSQL database dump --- - -\restrict AZ9q6rCieMNdfChCz8JIlINx6VPYRdHQzqEvPHmeCI4y0K4H4DXeeaOaKv4Ck7g - --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) - -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET transaction_timeout = 0; -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); -SET check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - -SET default_tablespace = ''; - -SET default_table_access_method = heap; - --- --- Name: store_apps_audit; Type: TABLE; Schema: logging; Owner: postgres --- - -CREATE TABLE logging.store_apps_audit ( - operation character(1) NOT NULL, - stamp timestamp without time zone NOT NULL, - userid text NOT NULL, - row_id bigint NOT NULL, - store smallint NOT NULL, - store_id text NOT NULL, - crawl_result integer -); - - -ALTER TABLE logging.store_apps_audit OWNER TO postgres; - --- --- Name: store_apps_audit_stamp_idx; Type: INDEX; Schema: logging; Owner: postgres --- - -CREATE INDEX store_apps_audit_stamp_idx ON logging.store_apps_audit USING btree (stamp); - - --- --- PostgreSQL database dump complete --- - -\unrestrict AZ9q6rCieMNdfChCz8JIlINx6VPYRdHQzqEvPHmeCI4y0K4H4DXeeaOaKv4Ck7g - diff --git a/pg-ddl/schema/logging/store_apps_snapshot.sql b/pg-ddl/schema/logging/store_apps_snapshot.sql index b0ef78ed..cd70abc1 100644 --- a/pg-ddl/schema/logging/store_apps_snapshot.sql +++ b/pg-ddl/schema/logging/store_apps_snapshot.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict JlLMUquRWImJ7nXFpB8rCH2L7NnMNAV8K3Givi1UOxlYgOYlRhAjTbiUaGtVE9l +\restrict KYviUQo3eDGcyO7rWFhtXlF6JHzasGynw5fUZuUREscRb3TOlyurgFoJvtuEq2a -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -44,5 +44,5 @@ ALTER TABLE logging.store_apps_snapshot OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict JlLMUquRWImJ7nXFpB8rCH2L7NnMNAV8K3Givi1UOxlYgOYlRhAjTbiUaGtVE9l +\unrestrict KYviUQo3eDGcyO7rWFhtXlF6JHzasGynw5fUZuUREscRb3TOlyurgFoJvtuEq2a diff --git a/pg-ddl/schema/logging/version_code_api_scan_results.sql b/pg-ddl/schema/logging/version_code_api_scan_results.sql index 43bf0cb5..fc1be925 100644 --- a/pg-ddl/schema/logging/version_code_api_scan_results.sql +++ b/pg-ddl/schema/logging/version_code_api_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict aF3lNloopHkMTV0wSZ5BNfMhgdbqg1RVV4sVO6gsoPPoNcFll3WtDU1bLZl2z5x +\restrict 33IKjk5a8Q1osoa4s35vyovoQTPTrPrNIiyic76GSKz48MO2ijmHSsNbfx90KFK -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -42,5 +42,5 @@ ALTER TABLE logging.version_code_api_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict aF3lNloopHkMTV0wSZ5BNfMhgdbqg1RVV4sVO6gsoPPoNcFll3WtDU1bLZl2z5x +\unrestrict 33IKjk5a8Q1osoa4s35vyovoQTPTrPrNIiyic76GSKz48MO2ijmHSsNbfx90KFK diff --git a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql index c8a1dbaf..ab4dba63 100644 --- a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql +++ b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict MhprDpEy8exZOrOIsRdI8PtC6ZDF39HmGShR3GTerHH1JaAjqdmv3bospezBXn8 +\restrict dpofSfzzSDgHnU6elPBamL6YVNzYlUvMisdfV9CB4n9ibxy6qMvXKVeLkmaMmhi -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -60,5 +60,5 @@ ALTER MATERIALIZED VIEW public.ad_network_sdk_keys OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict MhprDpEy8exZOrOIsRdI8PtC6ZDF39HmGShR3GTerHH1JaAjqdmv3bospezBXn8 +\unrestrict dpofSfzzSDgHnU6elPBamL6YVNzYlUvMisdfV9CB4n9ibxy6qMvXKVeLkmaMmhi diff --git a/pg-ddl/schema/public/adstxt_crawl_results.sql b/pg-ddl/schema/public/adstxt_crawl_results.sql index 30a14e32..946096f6 100644 --- a/pg-ddl/schema/public/adstxt_crawl_results.sql +++ b/pg-ddl/schema/public/adstxt_crawl_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict iGTqNrb5g1yhXkahnpQHAIUjDQ9z7izf6H4aFRqvG1a9uTiPjgCipTMcYJmIF6T +\restrict wtHv5QznhwCD1fBiQoto2YaqS8hBOncT4pVrqh8R8LRitUgPqE3wRbKbFxjlk7t -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -96,5 +96,5 @@ ALTER TABLE ONLY public.adstxt_crawl_results -- PostgreSQL database dump complete -- -\unrestrict iGTqNrb5g1yhXkahnpQHAIUjDQ9z7izf6H4aFRqvG1a9uTiPjgCipTMcYJmIF6T +\unrestrict wtHv5QznhwCD1fBiQoto2YaqS8hBOncT4pVrqh8R8LRitUgPqE3wRbKbFxjlk7t diff --git a/pg-ddl/schema/public/api_calls.sql b/pg-ddl/schema/public/api_calls.sql index 7304a59a..3869bd51 100644 --- a/pg-ddl/schema/public/api_calls.sql +++ b/pg-ddl/schema/public/api_calls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict nOSwGYMjQ6CSJZ05dgFuklTqt15hEJRO7hiLSoxYcyKa0tLLaA5bgdd80r9EFu9 +\restrict f8Xl53b5SBK5CbX0quZaYiIqtrrU8jr8a8Z4XfFeGJFgaPcbrHnbXD9H36zbmXG -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -135,5 +135,5 @@ ALTER TABLE ONLY public.api_calls -- PostgreSQL database dump complete -- -\unrestrict nOSwGYMjQ6CSJZ05dgFuklTqt15hEJRO7hiLSoxYcyKa0tLLaA5bgdd80r9EFu9 +\unrestrict f8Xl53b5SBK5CbX0quZaYiIqtrrU8jr8a8Z4XfFeGJFgaPcbrHnbXD9H36zbmXG diff --git a/pg-ddl/schema/public/app_ads_entrys.sql b/pg-ddl/schema/public/app_ads_entrys.sql index 15a921d2..28583f67 100644 --- a/pg-ddl/schema/public/app_ads_entrys.sql +++ b/pg-ddl/schema/public/app_ads_entrys.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict vckewcQqcfb2vhpyKRrDjATQKsXwiHe9Tqdkw21bn9qUmIMZZqvp8jK8qbViBzk +\restrict Jtl5F3d2hwULmTywwBA751HS81olS0cmnvO17AMlfG27z8UunqtpRTwPdtOIR3i -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -90,5 +90,5 @@ ALTER TABLE ONLY public.app_ads_entrys -- PostgreSQL database dump complete -- -\unrestrict vckewcQqcfb2vhpyKRrDjATQKsXwiHe9Tqdkw21bn9qUmIMZZqvp8jK8qbViBzk +\unrestrict Jtl5F3d2hwULmTywwBA751HS81olS0cmnvO17AMlfG27z8UunqtpRTwPdtOIR3i diff --git a/pg-ddl/schema/public/app_ads_map.sql b/pg-ddl/schema/public/app_ads_map.sql index e6e102b7..10127a81 100644 --- a/pg-ddl/schema/public/app_ads_map.sql +++ b/pg-ddl/schema/public/app_ads_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict lBRvDWRbAg23RBYQ3tCRjQiGWbIGaUkRHg5lObWnrldFqE0Vc4nOPv1djbAA4nw +\restrict 3QBjYfREXaXOYRqz41KmkfWaFhSOXYDKmlMLTJzIqqTJIfdbNMtWXwbNENxsgfQ -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_ads_map -- PostgreSQL database dump complete -- -\unrestrict lBRvDWRbAg23RBYQ3tCRjQiGWbIGaUkRHg5lObWnrldFqE0Vc4nOPv1djbAA4nw +\unrestrict 3QBjYfREXaXOYRqz41KmkfWaFhSOXYDKmlMLTJzIqqTJIfdbNMtWXwbNENxsgfQ diff --git a/pg-ddl/schema/public/app_country_metrics_history.sql b/pg-ddl/schema/public/app_country_metrics_history.sql index c3ff3a91..fefa99df 100644 --- a/pg-ddl/schema/public/app_country_metrics_history.sql +++ b/pg-ddl/schema/public/app_country_metrics_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict cqTdgyrix5UKSpXcBi1jLakQKLhxUzWP8OZMjN2FMQerLoDrvcewbZg7ExhgfR7 +\restrict Ng39JABnXHnGh4V2yhcp5nhjMy0ZfPfG1ASatBDV68X3d5imhWxqbunq0g3GTtS -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.app_country_metrics_history -- PostgreSQL database dump complete -- -\unrestrict cqTdgyrix5UKSpXcBi1jLakQKLhxUzWP8OZMjN2FMQerLoDrvcewbZg7ExhgfR7 +\unrestrict Ng39JABnXHnGh4V2yhcp5nhjMy0ZfPfG1ASatBDV68X3d5imhWxqbunq0g3GTtS diff --git a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql index 5b766d3f..daab5966 100644 --- a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1vNicCTX7sevQhVSU2pdJe65eHWLXPbPvZmXtDpKBNvi8Lp9Uha7g6TDcx9jbi3 +\restrict iCOmTMS1PjWC2BPNr3r3rXFQTtz2pmMPNVwISnlg79LiZdFxGPR5u8rjSbA5ZJx -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -57,5 +57,5 @@ CREATE UNIQUE INDEX app_country_metrics_latest_idx ON public.app_country_metrics -- PostgreSQL database dump complete -- -\unrestrict 1vNicCTX7sevQhVSU2pdJe65eHWLXPbPvZmXtDpKBNvi8Lp9Uha7g6TDcx9jbi3 +\unrestrict iCOmTMS1PjWC2BPNr3r3rXFQTtz2pmMPNVwISnlg79LiZdFxGPR5u8rjSbA5ZJx diff --git a/pg-ddl/schema/public/app_global_metrics_history.sql b/pg-ddl/schema/public/app_global_metrics_history.sql index 31c4db84..4b0053d0 100644 --- a/pg-ddl/schema/public/app_global_metrics_history.sql +++ b/pg-ddl/schema/public/app_global_metrics_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict SAWFzb2Ocsw4NenxalSrhrOec4xh4Lw8byu0ZdK4EdoKwS7YXRB02a4dGguRbBe +\restrict 8noSFWevHlUeRVJ2q99nHzaIp7fPGqweJNqWEScWCdejRhoeti7Z9crQzan8lou -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.app_global_metrics_history -- PostgreSQL database dump complete -- -\unrestrict SAWFzb2Ocsw4NenxalSrhrOec4xh4Lw8byu0ZdK4EdoKwS7YXRB02a4dGguRbBe +\unrestrict 8noSFWevHlUeRVJ2q99nHzaIp7fPGqweJNqWEScWCdejRhoeti7Z9crQzan8lou diff --git a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql index 78fbf991..5f893bb7 100644 --- a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict H2LJ4kih6YssGjnqdPhz7TPKOW8geE1IaN9LarIaHPLDpA9g6DVeKfV4cJWSokR +\restrict QrCwP7KXwIbnyycGySH7cLcfH5KXWUZGAMof7KFURmgoQeFHBYKiCyNrBMzsuyi -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX app_global_metrics_latest_idx ON public.app_global_metrics_l -- PostgreSQL database dump complete -- -\unrestrict H2LJ4kih6YssGjnqdPhz7TPKOW8geE1IaN9LarIaHPLDpA9g6DVeKfV4cJWSokR +\unrestrict QrCwP7KXwIbnyycGySH7cLcfH5KXWUZGAMof7KFURmgoQeFHBYKiCyNrBMzsuyi diff --git a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql index 12295794..01b1e9ac 100644 --- a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict tTl3EfTrDI7IOd8HVQlAtWAahE8ovKidscCU0v2IGnQjp9o32NRFnSibuX6Z9S8 +\restrict gAoeI8ah12b0hALIZlsIhV0wW9bH2IN6hgAS4uRiHWfNuibjd5aDJjLyBW1HeJj -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX app_global_metrics_weekly_diffs_week_start_store_app_idx ON -- PostgreSQL database dump complete -- -\unrestrict tTl3EfTrDI7IOd8HVQlAtWAahE8ovKidscCU0v2IGnQjp9o32NRFnSibuX6Z9S8 +\unrestrict gAoeI8ah12b0hALIZlsIhV0wW9bH2IN6hgAS4uRiHWfNuibjd5aDJjLyBW1HeJj diff --git a/pg-ddl/schema/public/app_keywords_extracted.sql b/pg-ddl/schema/public/app_keywords_extracted.sql index 6d9a08db..d71f12b3 100644 --- a/pg-ddl/schema/public/app_keywords_extracted.sql +++ b/pg-ddl/schema/public/app_keywords_extracted.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict CYVfvN79ujiwPXidg4dHtVLE3KzDhxuiek0TI928BVXes8ndMdaV01BKEzbhCiI +\restrict EzPplFECrQRWDZRaCCeLc1MgHwQdwRzQR2sILLJsQTseBs83AQnsTkKkUAeKAdO -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -72,5 +72,5 @@ ALTER TABLE ONLY public.app_keywords_extracted -- PostgreSQL database dump complete -- -\unrestrict CYVfvN79ujiwPXidg4dHtVLE3KzDhxuiek0TI928BVXes8ndMdaV01BKEzbhCiI +\unrestrict EzPplFECrQRWDZRaCCeLc1MgHwQdwRzQR2sILLJsQTseBs83AQnsTkKkUAeKAdO diff --git a/pg-ddl/schema/public/app_urls_map.sql b/pg-ddl/schema/public/app_urls_map.sql index 5cffc88f..e806522e 100644 --- a/pg-ddl/schema/public/app_urls_map.sql +++ b/pg-ddl/schema/public/app_urls_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict z0tp5XvOYTmEdHR64Oo5v9LPyBmKIPYCTjMItsGcEzPl58oH1IwFKSwrc9Hlt34 +\restrict Ke35ECtBJYsO6g8Q9c9ipz3NnRGCvYhkhtu2DWaa3K9UO7ALhPDwldTm7ppzyfJ -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_urls_map -- PostgreSQL database dump complete -- -\unrestrict z0tp5XvOYTmEdHR64Oo5v9LPyBmKIPYCTjMItsGcEzPl58oH1IwFKSwrc9Hlt34 +\unrestrict Ke35ECtBJYsO6g8Q9c9ipz3NnRGCvYhkhtu2DWaa3K9UO7ALhPDwldTm7ppzyfJ diff --git a/pg-ddl/schema/public/category_mapping__matview.sql b/pg-ddl/schema/public/category_mapping__matview.sql index 000770f1..63d34428 100644 --- a/pg-ddl/schema/public/category_mapping__matview.sql +++ b/pg-ddl/schema/public/category_mapping__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict kxfapKfbbmWop7Vb8e2GdDlJKlRYkdoaioKhoJnILwHeBI79StUQFez7cAUKJSA +\restrict TmZkWhM8sEdHdKQIcsecH4hc9O5kzeqT45ctaVzxgwOmPfhKuBc36ngupCM2nNp -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -67,5 +67,5 @@ CREATE UNIQUE INDEX category_mapping_idx ON public.category_mapping USING btree -- PostgreSQL database dump complete -- -\unrestrict kxfapKfbbmWop7Vb8e2GdDlJKlRYkdoaioKhoJnILwHeBI79StUQFez7cAUKJSA +\unrestrict TmZkWhM8sEdHdKQIcsecH4hc9O5kzeqT45ctaVzxgwOmPfhKuBc36ngupCM2nNp diff --git a/pg-ddl/schema/public/countries.sql b/pg-ddl/schema/public/countries.sql index 2b7d4c35..cd42ddd5 100644 --- a/pg-ddl/schema/public/countries.sql +++ b/pg-ddl/schema/public/countries.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict DG2E35hghUVm28fCyzy6dc2DId8yyb0qYXc7ysd7bn7c3LYawddFsbU1TdpDnDD +\restrict vnGEgsXfdKX3CkGJK2KahSJMjwqwlZIStGHKKZEiXy2Oq69lKbyT01N2jfEbfr7 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -71,5 +71,5 @@ ALTER TABLE ONLY public.countries -- PostgreSQL database dump complete -- -\unrestrict DG2E35hghUVm28fCyzy6dc2DId8yyb0qYXc7ysd7bn7c3LYawddFsbU1TdpDnDD +\unrestrict vnGEgsXfdKX3CkGJK2KahSJMjwqwlZIStGHKKZEiXy2Oq69lKbyT01N2jfEbfr7 diff --git a/pg-ddl/schema/public/crawl_results.sql b/pg-ddl/schema/public/crawl_results.sql index ebff3968..ebb5e28b 100644 --- a/pg-ddl/schema/public/crawl_results.sql +++ b/pg-ddl/schema/public/crawl_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5W6dNgjNREH2gzmEVZlhx5UWa6eyrH8Oc7SmbZbDT7ZiRO9aCTnDLFqlGXRq8Fb +\restrict Q2e2T0bMtrqkXtR6YuQMUgPkJqYjHBZkYUdAngTjpNwv1AwZoFrW7HFC4PlHtTM -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -61,5 +61,5 @@ ALTER TABLE ONLY public.crawl_results -- PostgreSQL database dump complete -- -\unrestrict 5W6dNgjNREH2gzmEVZlhx5UWa6eyrH8Oc7SmbZbDT7ZiRO9aCTnDLFqlGXRq8Fb +\unrestrict Q2e2T0bMtrqkXtR6YuQMUgPkJqYjHBZkYUdAngTjpNwv1AwZoFrW7HFC4PlHtTM diff --git a/pg-ddl/schema/public/crawl_scenario_country_config.sql b/pg-ddl/schema/public/crawl_scenario_country_config.sql index 129f6778..ed9212fe 100644 --- a/pg-ddl/schema/public/crawl_scenario_country_config.sql +++ b/pg-ddl/schema/public/crawl_scenario_country_config.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict a5nJ21dmVf2HX5PZ1G8sYFQcFmKCUalxapwRwVDyGn8SrnHhljy1akhD9bcBdHa +\restrict cFocEZebIAeGxmLqGLVfYTru98wzoBo1KZcaemvm83rv7fO1r45cny4c4hDiUK6 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.crawl_scenario_country_config -- PostgreSQL database dump complete -- -\unrestrict a5nJ21dmVf2HX5PZ1G8sYFQcFmKCUalxapwRwVDyGn8SrnHhljy1akhD9bcBdHa +\unrestrict cFocEZebIAeGxmLqGLVfYTru98wzoBo1KZcaemvm83rv7fO1r45cny4c4hDiUK6 diff --git a/pg-ddl/schema/public/crawl_scenarios.sql b/pg-ddl/schema/public/crawl_scenarios.sql index 77a38da6..436a5d0c 100644 --- a/pg-ddl/schema/public/crawl_scenarios.sql +++ b/pg-ddl/schema/public/crawl_scenarios.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 2XFUwpwMgAUXWTCpfeMpssfvg6m9crI4BfigENhgBaSWcDcpIrEZ0jJYzEEBZmm +\restrict YCP5HHhLAmWK5xjjdYbOZVqncz5fqXRhpwepfpr01cIDNaQIBGiskd3eM2wYEA5 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.crawl_scenarios -- PostgreSQL database dump complete -- -\unrestrict 2XFUwpwMgAUXWTCpfeMpssfvg6m9crI4BfigENhgBaSWcDcpIrEZ0jJYzEEBZmm +\unrestrict YCP5HHhLAmWK5xjjdYbOZVqncz5fqXRhpwepfpr01cIDNaQIBGiskd3eM2wYEA5 diff --git a/pg-ddl/schema/public/creative_assets.sql b/pg-ddl/schema/public/creative_assets.sql index 866c0107..4f3e0118 100644 --- a/pg-ddl/schema/public/creative_assets.sql +++ b/pg-ddl/schema/public/creative_assets.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ZeT5rJ4GDFKhlOxWTkXicQbPZDm0I2F6MAemrNR2OytppmBhtbBg2G8JARf8sKj +\restrict A4lp3V2Xg5WeKUui6SeromIwnneGFmWEHPJGo8qKtsgokOhcRvjN4dAgI3173ak -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -94,5 +94,5 @@ CREATE INDEX idx_creative_assets_phash ON public.creative_assets USING btree (ph -- PostgreSQL database dump complete -- -\unrestrict ZeT5rJ4GDFKhlOxWTkXicQbPZDm0I2F6MAemrNR2OytppmBhtbBg2G8JARf8sKj +\unrestrict A4lp3V2Xg5WeKUui6SeromIwnneGFmWEHPJGo8qKtsgokOhcRvjN4dAgI3173ak diff --git a/pg-ddl/schema/public/creative_records.sql b/pg-ddl/schema/public/creative_records.sql index 287e1a12..85a45f38 100644 --- a/pg-ddl/schema/public/creative_records.sql +++ b/pg-ddl/schema/public/creative_records.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict AY5sueoCobFuOfbTmT67Q7XZ19QJcmewwsc6Qp12HjzU6cyg412PHVREDEgTWeC +\restrict BDQfOrghlOJk0z7aQqCwiU8gNQvlp7K49mUTwqtQTxZ30yNbFDx5M1l0iQHhPSz -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -153,5 +153,5 @@ ALTER TABLE ONLY public.creative_records -- PostgreSQL database dump complete -- -\unrestrict AY5sueoCobFuOfbTmT67Q7XZ19QJcmewwsc6Qp12HjzU6cyg412PHVREDEgTWeC +\unrestrict BDQfOrghlOJk0z7aQqCwiU8gNQvlp7K49mUTwqtQTxZ30yNbFDx5M1l0iQHhPSz diff --git a/pg-ddl/schema/public/developer_store_apps__matview.sql b/pg-ddl/schema/public/developer_store_apps__matview.sql index 027dd453..d3e28efb 100644 --- a/pg-ddl/schema/public/developer_store_apps__matview.sql +++ b/pg-ddl/schema/public/developer_store_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict CwupsWx0iEuRsHzobKUTDrq0VNba0SpL0XgrvdbX2tunlEbTOB6hrhjW7qbCAic +\restrict Zree0wwEHFNrFAHXlaelypXNaCcZ54hoUZzOfQo2FNcKdHKtQ9bdoD6loJdq18g -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -83,5 +83,5 @@ CREATE UNIQUE INDEX idx_developer_store_apps_unique ON public.developer_store_ap -- PostgreSQL database dump complete -- -\unrestrict CwupsWx0iEuRsHzobKUTDrq0VNba0SpL0XgrvdbX2tunlEbTOB6hrhjW7qbCAic +\unrestrict Zree0wwEHFNrFAHXlaelypXNaCcZ54hoUZzOfQo2FNcKdHKtQ9bdoD6loJdq18g diff --git a/pg-ddl/schema/public/developers.sql b/pg-ddl/schema/public/developers.sql index 0fc18bf5..d7b52901 100644 --- a/pg-ddl/schema/public/developers.sql +++ b/pg-ddl/schema/public/developers.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict sfHmYhfxxVAgQxltIyehXLR7dxd8nBhQKvgOzd3z0OIJgLk6puLHpt0I3AstTZ4 +\restrict 7w66M1fg0ocLHrlmdvctOYVVTbCwRTCvD2VHvpN4gfJ29djxrg8uZ1I2iyBnAgg -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -110,5 +110,5 @@ ALTER TABLE ONLY public.developers -- PostgreSQL database dump complete -- -\unrestrict sfHmYhfxxVAgQxltIyehXLR7dxd8nBhQKvgOzd3z0OIJgLk6puLHpt0I3AstTZ4 +\unrestrict 7w66M1fg0ocLHrlmdvctOYVVTbCwRTCvD2VHvpN4gfJ29djxrg8uZ1I2iyBnAgg diff --git a/pg-ddl/schema/public/domains.sql b/pg-ddl/schema/public/domains.sql index da6b06e3..50a57a96 100644 --- a/pg-ddl/schema/public/domains.sql +++ b/pg-ddl/schema/public/domains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict oJOmgk3ylKAm3MfVhMQteoQTGrGqgfejjZWpeTa0W9la9qOGnKGTrmoAb3EF8Xk +\restrict 1yagTQFeSCxS0MYSo6jYGiTu1sQQA053lzgCmOUAoZN2IJwF6qSPhTARf7cSJG5 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.domains -- PostgreSQL database dump complete -- -\unrestrict oJOmgk3ylKAm3MfVhMQteoQTGrGqgfejjZWpeTa0W9la9qOGnKGTrmoAb3EF8Xk +\unrestrict 1yagTQFeSCxS0MYSo6jYGiTu1sQQA053lzgCmOUAoZN2IJwF6qSPhTARf7cSJG5 diff --git a/pg-ddl/schema/public/ip_geo_snapshots.sql b/pg-ddl/schema/public/ip_geo_snapshots.sql index cb8c8c26..60743d82 100644 --- a/pg-ddl/schema/public/ip_geo_snapshots.sql +++ b/pg-ddl/schema/public/ip_geo_snapshots.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict b59DucOdsZydzbGsCmgK4niJFMUmyY2hdMrtgQ3iiI9TYqUF74AF08aSiIaW4yQ +\restrict OMpGFmeF8vZk73oSnlvFggvKZFmbE3wfLW30rCQZ090BixYks5oT9EHEN8aHbf7 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.ip_geo_snapshots -- PostgreSQL database dump complete -- -\unrestrict b59DucOdsZydzbGsCmgK4niJFMUmyY2hdMrtgQ3iiI9TYqUF74AF08aSiIaW4yQ +\unrestrict OMpGFmeF8vZk73oSnlvFggvKZFmbE3wfLW30rCQZ090BixYks5oT9EHEN8aHbf7 diff --git a/pg-ddl/schema/public/keywords.sql b/pg-ddl/schema/public/keywords.sql index 5b8a2c00..69fe5807 100644 --- a/pg-ddl/schema/public/keywords.sql +++ b/pg-ddl/schema/public/keywords.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict HflxmWIUC6VYAbYq7VC4aP1mmZ0L2h4T7i9Qtl8ZEP2fnKi66IfYq8jzuATcDf7 +\restrict FAJfLaVeR6ZQDhKUShHNBpa1ThKrXEhcQaTc8rc2XKUVyhGM9VmJlvGkk0wQMov -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.keywords -- PostgreSQL database dump complete -- -\unrestrict HflxmWIUC6VYAbYq7VC4aP1mmZ0L2h4T7i9Qtl8ZEP2fnKi66IfYq8jzuATcDf7 +\unrestrict FAJfLaVeR6ZQDhKUShHNBpa1ThKrXEhcQaTc8rc2XKUVyhGM9VmJlvGkk0wQMov diff --git a/pg-ddl/schema/public/keywords_base.sql b/pg-ddl/schema/public/keywords_base.sql index 51d37e84..ac19db8f 100644 --- a/pg-ddl/schema/public/keywords_base.sql +++ b/pg-ddl/schema/public/keywords_base.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict BwuRTrp8j1lsEaL0J19uxha88C8zQkgk9aDppkYeFX0pIIPdddqmwSspSAKrsbp +\restrict ZTBfmI0qdKKpAOtvqNTjTsoJBw1YkOh53LBZoCWef1S90o1uh9espYDkwrUR1rR -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -38,5 +38,5 @@ ALTER TABLE public.keywords_base OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict BwuRTrp8j1lsEaL0J19uxha88C8zQkgk9aDppkYeFX0pIIPdddqmwSspSAKrsbp +\unrestrict ZTBfmI0qdKKpAOtvqNTjTsoJBw1YkOh53LBZoCWef1S90o1uh9espYDkwrUR1rR diff --git a/pg-ddl/schema/public/languages.sql b/pg-ddl/schema/public/languages.sql index e0d5a76e..9dac3d63 100644 --- a/pg-ddl/schema/public/languages.sql +++ b/pg-ddl/schema/public/languages.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict PKrhmXaIM9dF1IyOFx8c0WTZEoZAMjmFda6V2fv7rh1vzpYQ3G1B1FPZ3qhnzx5 +\restrict 3AKfUWOvxi3xnshcHKl98SWJMru3L8Eql7948oQuAvaHgC38hNDULCuXgkVeEmD -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.languages -- PostgreSQL database dump complete -- -\unrestrict PKrhmXaIM9dF1IyOFx8c0WTZEoZAMjmFda6V2fv7rh1vzpYQ3G1B1FPZ3qhnzx5 +\unrestrict 3AKfUWOvxi3xnshcHKl98SWJMru3L8Eql7948oQuAvaHgC38hNDULCuXgkVeEmD diff --git a/pg-ddl/schema/public/mv_app_categories__matview.sql b/pg-ddl/schema/public/mv_app_categories__matview.sql index f36481c7..d8ebd168 100644 --- a/pg-ddl/schema/public/mv_app_categories__matview.sql +++ b/pg-ddl/schema/public/mv_app_categories__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict SeJofMU4vO3SCmNY4p1f2R2MvIZl0cbxOe2szOggZEDMU8dFJTXyK0AHHIScSwt +\restrict YEWKKsRp7GrZyGAud0GMSiXDpeA1BjBlr945ijhagjKzCicelm8KqFS9f7xCvkl -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -45,5 +45,5 @@ ALTER MATERIALIZED VIEW public.mv_app_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict SeJofMU4vO3SCmNY4p1f2R2MvIZl0cbxOe2szOggZEDMU8dFJTXyK0AHHIScSwt +\unrestrict YEWKKsRp7GrZyGAud0GMSiXDpeA1BjBlr945ijhagjKzCicelm8KqFS9f7xCvkl diff --git a/pg-ddl/schema/public/pg_stat_statements__view.sql b/pg-ddl/schema/public/pg_stat_statements__view.sql index 65e038ca..2217f8e6 100644 --- a/pg-ddl/schema/public/pg_stat_statements__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements__view.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict wIIJtrChQcWjYW4KqYPTeaEvXBIwzxyIA4QizuR4jBs1bCSXdU7l5Xe5UHdaDOW +\restrict 0ZoCtG213MOM6cqrWOg958zZTfJI7Pray82500CndgshHb3ucJzq2UKsjsdjuKs -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict wIIJtrChQcWjYW4KqYPTeaEvXBIwzxyIA4QizuR4jBs1bCSXdU7l5Xe5UHdaDOW +\unrestrict 0ZoCtG213MOM6cqrWOg958zZTfJI7Pray82500CndgshHb3ucJzq2UKsjsdjuKs diff --git a/pg-ddl/schema/public/pg_stat_statements_info__view.sql b/pg-ddl/schema/public/pg_stat_statements_info__view.sql index a950c4dc..af473965 100644 --- a/pg-ddl/schema/public/pg_stat_statements_info__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements_info__view.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict mFqnWMV8R63JgsVoMsMZQowHFep4h1eq0ntOVdf8At8E5nMuywH2Htka0FI2wOa +\restrict eP0zf117WWbhSrQYgtHJCBRQ2XROWi8464cSjxDj4kk3sOnqiBPuhw5nFV9QHz1 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict mFqnWMV8R63JgsVoMsMZQowHFep4h1eq0ntOVdf8At8E5nMuywH2Htka0FI2wOa +\unrestrict eP0zf117WWbhSrQYgtHJCBRQ2XROWi8464cSjxDj4kk3sOnqiBPuhw5nFV9QHz1 diff --git a/pg-ddl/schema/public/platforms.sql b/pg-ddl/schema/public/platforms.sql index bae1f93b..ea642700 100644 --- a/pg-ddl/schema/public/platforms.sql +++ b/pg-ddl/schema/public/platforms.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict T59JlT6NYLF8HyYLxDbKnbeHy5PGylLTXcYzbtRvooMaBxXazxFoeLs1RlAKb6g +\restrict 60Flx5LVy9uhf9bYtUcOqmdpOWbb4UMWpfSAMTprPJQbW3BBPi1eEnARJcADbcg -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.platforms -- PostgreSQL database dump complete -- -\unrestrict T59JlT6NYLF8HyYLxDbKnbeHy5PGylLTXcYzbtRvooMaBxXazxFoeLs1RlAKb6g +\unrestrict 60Flx5LVy9uhf9bYtUcOqmdpOWbb4UMWpfSAMTprPJQbW3BBPi1eEnARJcADbcg diff --git a/pg-ddl/schema/public/store_app_z_scores__matview.sql b/pg-ddl/schema/public/store_app_z_scores__matview.sql index ec37479c..966fafd4 100644 --- a/pg-ddl/schema/public/store_app_z_scores__matview.sql +++ b/pg-ddl/schema/public/store_app_z_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1c3e0dwGEVAw1CBFNs6Ap9ovGhjZFlSHn747frEmiSwerxCVciGJgkxbFJta1gD +\restrict LPBQhOxE1sVkjM0SWnwpvZViwmxNyXhPG0GveAWgLeAvofxHzT8aB8dhqAUcUIi -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -155,5 +155,5 @@ ALTER MATERIALIZED VIEW public.store_app_z_scores OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 1c3e0dwGEVAw1CBFNs6Ap9ovGhjZFlSHn747frEmiSwerxCVciGJgkxbFJta1gD +\unrestrict LPBQhOxE1sVkjM0SWnwpvZViwmxNyXhPG0GveAWgLeAvofxHzT8aB8dhqAUcUIi diff --git a/pg-ddl/schema/public/store_app_z_scores_history.sql b/pg-ddl/schema/public/store_app_z_scores_history.sql index c6a85c4f..5b1c2027 100644 --- a/pg-ddl/schema/public/store_app_z_scores_history.sql +++ b/pg-ddl/schema/public/store_app_z_scores_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict yRTpepwe2luhX7MEiohXonE2pDYh4WpSOYxUocOac6F4pXGjAoFE0fTrv5WpGh5 +\restrict OLjrwnWaO0RW9dkE20aT9nPdVij2fDma1fYkYKhWoCfy4R3rdwUPINaSQyfQfbp -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -64,5 +64,5 @@ ALTER TABLE ONLY public.store_app_z_scores_history -- PostgreSQL database dump complete -- -\unrestrict yRTpepwe2luhX7MEiohXonE2pDYh4WpSOYxUocOac6F4pXGjAoFE0fTrv5WpGh5 +\unrestrict OLjrwnWaO0RW9dkE20aT9nPdVij2fDma1fYkYKhWoCfy4R3rdwUPINaSQyfQfbp diff --git a/pg-ddl/schema/public/store_apps.sql b/pg-ddl/schema/public/store_apps.sql index 3ff62b58..3374464a 100644 --- a/pg-ddl/schema/public/store_apps.sql +++ b/pg-ddl/schema/public/store_apps.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict RXwGpwVNii2M9pQdc1lyWfTFHMEvmxjSd1IpZ5QnJn4GFbQepjUX0qsHGCFwPb9 +\restrict 8CC1E7J4JcIpqjIw4xnIYdZqXICLJrcZx56cxNosBJxxeSjcLpXKqihazN2tfte -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -163,5 +163,5 @@ ALTER TABLE ONLY public.store_apps -- PostgreSQL database dump complete -- -\unrestrict RXwGpwVNii2M9pQdc1lyWfTFHMEvmxjSd1IpZ5QnJn4GFbQepjUX0qsHGCFwPb9 +\unrestrict 8CC1E7J4JcIpqjIw4xnIYdZqXICLJrcZx56cxNosBJxxeSjcLpXKqihazN2tfte diff --git a/pg-ddl/schema/public/store_apps_descriptions.sql b/pg-ddl/schema/public/store_apps_descriptions.sql index 6d168be5..db346e40 100644 --- a/pg-ddl/schema/public/store_apps_descriptions.sql +++ b/pg-ddl/schema/public/store_apps_descriptions.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 3OaaEnypCiotgmw0cAcmbWp9jT5GNatmzsSmoJMaJjw0Kab39tRt63cvH3lUpEo +\restrict Lm57xUWTc8oqSdTarM6svZJ9NAQQRnEtLnkvXwWI5d46zWNdEnpbD4QRzxJOUft -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.store_apps_descriptions -- PostgreSQL database dump complete -- -\unrestrict 3OaaEnypCiotgmw0cAcmbWp9jT5GNatmzsSmoJMaJjw0Kab39tRt63cvH3lUpEo +\unrestrict Lm57xUWTc8oqSdTarM6svZJ9NAQQRnEtLnkvXwWI5d46zWNdEnpbD4QRzxJOUft diff --git a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql index f828a00f..f261b16c 100644 --- a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql +++ b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 8c4ppSygKVDKFkSg3FgMrnbh68FUqQSUbfVKuutfu6cj1BMrQaaFZpxlFpkzNMg +\restrict 23fsMEvUkgB9iixqqnvvuJv7acng8IKSvGhOc6f5MuMzjWhsWUP5W8nuhRVxRqB -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW public.store_apps_in_latest_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 8c4ppSygKVDKFkSg3FgMrnbh68FUqQSUbfVKuutfu6cj1BMrQaaFZpxlFpkzNMg +\unrestrict 23fsMEvUkgB9iixqqnvvuJv7acng8IKSvGhOc6f5MuMzjWhsWUP5W8nuhRVxRqB diff --git a/pg-ddl/schema/public/store_categories.sql b/pg-ddl/schema/public/store_categories.sql index 3c7e9c24..f73a7ac9 100644 --- a/pg-ddl/schema/public/store_categories.sql +++ b/pg-ddl/schema/public/store_categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qlVNf4OnCvTiMgGFvDIxUaxjC7PJ545EEgfVFdzBOrLmrPwKZfOYzSaasGc430n +\restrict nPqMiNqFhaHlpPP3bohTVtuq5wDaA1lH7EJX5XeFZchBuidcaEZnpzYuV3gfumB -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_categories -- PostgreSQL database dump complete -- -\unrestrict qlVNf4OnCvTiMgGFvDIxUaxjC7PJ545EEgfVFdzBOrLmrPwKZfOYzSaasGc430n +\unrestrict nPqMiNqFhaHlpPP3bohTVtuq5wDaA1lH7EJX5XeFZchBuidcaEZnpzYuV3gfumB diff --git a/pg-ddl/schema/public/store_collections.sql b/pg-ddl/schema/public/store_collections.sql index fd092b5c..61ac3041 100644 --- a/pg-ddl/schema/public/store_collections.sql +++ b/pg-ddl/schema/public/store_collections.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 4Fh9AYe0zAUE4ZKeF3KxbhgadCzkJvkmldpNIny3AAZ4UmaXOAOPx2E61FDfdcz +\restrict mZOa08lEXerCh9QkJlPlGYBUVIJa82ZeTN93Mzk4axhb5fu8rsuk4GIYrhquPzP -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_collections -- PostgreSQL database dump complete -- -\unrestrict 4Fh9AYe0zAUE4ZKeF3KxbhgadCzkJvkmldpNIny3AAZ4UmaXOAOPx2E61FDfdcz +\unrestrict mZOa08lEXerCh9QkJlPlGYBUVIJa82ZeTN93Mzk4axhb5fu8rsuk4GIYrhquPzP diff --git a/pg-ddl/schema/public/stores.sql b/pg-ddl/schema/public/stores.sql index 35575b0f..e0110940 100644 --- a/pg-ddl/schema/public/stores.sql +++ b/pg-ddl/schema/public/stores.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 3WCtbK7OqirZB4jKgTqKoTcN5hLRamV1ElkkEyRgNuA9xkLhMdQNYV5csnAcf2L +\restrict dcbdEafgWBr9WnfU1HVm9uNsvHLpjvREldY2tACRyPKDuqeXyxdKnWSHvEUzsvp -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -93,5 +93,5 @@ ALTER TABLE ONLY public.stores -- PostgreSQL database dump complete -- -\unrestrict 3WCtbK7OqirZB4jKgTqKoTcN5hLRamV1ElkkEyRgNuA9xkLhMdQNYV5csnAcf2L +\unrestrict dcbdEafgWBr9WnfU1HVm9uNsvHLpjvREldY2tACRyPKDuqeXyxdKnWSHvEUzsvp diff --git a/pg-ddl/schema/public/total_count_overview__matview.sql b/pg-ddl/schema/public/total_count_overview__matview.sql index ebf24785..0adcfd11 100644 --- a/pg-ddl/schema/public/total_count_overview__matview.sql +++ b/pg-ddl/schema/public/total_count_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict bFE1JRPJ7TU9Tl8B6CZi2a8lLrmZVcDB39rgzZ9qhwi3SRFf56eqCfM9zBH81MT +\restrict ksWAJBYW5lP8C7jR30raE6tS4IztZH5pmaueXaM8XIxRDvHZlSHbzZLBSFXZVjg -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -166,5 +166,5 @@ ALTER MATERIALIZED VIEW public.total_count_overview OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict bFE1JRPJ7TU9Tl8B6CZi2a8lLrmZVcDB39rgzZ9qhwi3SRFf56eqCfM9zBH81MT +\unrestrict ksWAJBYW5lP8C7jR30raE6tS4IztZH5pmaueXaM8XIxRDvHZlSHbzZLBSFXZVjg diff --git a/pg-ddl/schema/public/user_requested_scan.sql b/pg-ddl/schema/public/user_requested_scan.sql index 4e9be4b3..afe392d5 100644 --- a/pg-ddl/schema/public/user_requested_scan.sql +++ b/pg-ddl/schema/public/user_requested_scan.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict EDZ2sVXDf1dWeyWb7AOXMPpQJD94oJxet2eHezUcaFmWcVdc5yAWOSRu2ftKhJx +\restrict qEoufOWPNchE8RW5MTZISbXNTKXdhI5r0A5KbvzbQn9yO4JfOvA9Y4NUkj0M9yL -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -77,5 +77,5 @@ ALTER TABLE ONLY public.user_requested_scan -- PostgreSQL database dump complete -- -\unrestrict EDZ2sVXDf1dWeyWb7AOXMPpQJD94oJxet2eHezUcaFmWcVdc5yAWOSRu2ftKhJx +\unrestrict qEoufOWPNchE8RW5MTZISbXNTKXdhI5r0A5KbvzbQn9yO4JfOvA9Y4NUkj0M9yL diff --git a/pg-ddl/schema/public/version_code_api_scan_results.sql b/pg-ddl/schema/public/version_code_api_scan_results.sql index 7580eb25..556f5102 100644 --- a/pg-ddl/schema/public/version_code_api_scan_results.sql +++ b/pg-ddl/schema/public/version_code_api_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Sg49kU2zZ6gmxmhkq3u3h7mYWweAAarAu2Lme1ZwFg23Fw6FBjlyK9DseUWHGgc +\restrict Qy2bmOYavSzvvcmEYSkmPTGLZiG81unGFjIaTcKlmfoxvqeddjYCqWvTbrizh0B -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -87,5 +87,5 @@ ALTER TABLE ONLY public.version_code_api_scan_results -- PostgreSQL database dump complete -- -\unrestrict Sg49kU2zZ6gmxmhkq3u3h7mYWweAAarAu2Lme1ZwFg23Fw6FBjlyK9DseUWHGgc +\unrestrict Qy2bmOYavSzvvcmEYSkmPTGLZiG81unGFjIaTcKlmfoxvqeddjYCqWvTbrizh0B diff --git a/pg-ddl/schema/public/version_code_sdk_scan_results.sql b/pg-ddl/schema/public/version_code_sdk_scan_results.sql index 7f1b165b..d5656136 100644 --- a/pg-ddl/schema/public/version_code_sdk_scan_results.sql +++ b/pg-ddl/schema/public/version_code_sdk_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict aJXWwCHuLRNiMYDAxkvPvATcx9V04DokO7qlnU8LV5P7wxqh24YMpDYzQ4HiuUA +\restrict ObETIhZtJTYBcoDKerbQFC3lvo5pkYarHBCb8iB1x0NA7YhOCmN9xZU9NFf0riV -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.version_code_sdk_scan_results -- PostgreSQL database dump complete -- -\unrestrict aJXWwCHuLRNiMYDAxkvPvATcx9V04DokO7qlnU8LV5P7wxqh24YMpDYzQ4HiuUA +\unrestrict ObETIhZtJTYBcoDKerbQFC3lvo5pkYarHBCb8iB1x0NA7YhOCmN9xZU9NFf0riV diff --git a/pg-ddl/schema/public/version_codes.sql b/pg-ddl/schema/public/version_codes.sql index b7fcb671..241762e5 100644 --- a/pg-ddl/schema/public/version_codes.sql +++ b/pg-ddl/schema/public/version_codes.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict dfhtOzcGxSHdcCzLeFNtIYrMSAcr4cfvQjXQXOvceWkn3HLDka4k3KEWlERHPo9 +\restrict bEYCt1JQpfdoK1xm3fRR1aEIqHNVIT4aceLTQMXggQGJ7ABdHTpUXJWwhoEo6nt -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -89,5 +89,5 @@ ALTER TABLE ONLY public.version_codes -- PostgreSQL database dump complete -- -\unrestrict dfhtOzcGxSHdcCzLeFNtIYrMSAcr4cfvQjXQXOvceWkn3HLDka4k3KEWlERHPo9 +\unrestrict bEYCt1JQpfdoK1xm3fRR1aEIqHNVIT4aceLTQMXggQGJ7ABdHTpUXJWwhoEo6nt diff --git a/pg-ddl/schema/public/version_details_map.sql b/pg-ddl/schema/public/version_details_map.sql index b17ee29f..698e05fc 100644 --- a/pg-ddl/schema/public/version_details_map.sql +++ b/pg-ddl/schema/public/version_details_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict XY4LjqH2f3ZcmmznOOhwIdwEK01tuilDzgyAUeJ2srsDtfT0MoZjSdgl1K54uL0 +\restrict CWtY4UbOeCocxCeggFAjSyiQrTbFtA3CHKee44ZNeTUpaNq3EockaDYngvUFoy8 -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_details_map -- PostgreSQL database dump complete -- -\unrestrict XY4LjqH2f3ZcmmznOOhwIdwEK01tuilDzgyAUeJ2srsDtfT0MoZjSdgl1K54uL0 +\unrestrict CWtY4UbOeCocxCeggFAjSyiQrTbFtA3CHKee44ZNeTUpaNq3EockaDYngvUFoy8 diff --git a/pg-ddl/schema/public/version_manifests.sql b/pg-ddl/schema/public/version_manifests.sql index 05a98a94..a0b7e78f 100644 --- a/pg-ddl/schema/public/version_manifests.sql +++ b/pg-ddl/schema/public/version_manifests.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 9pv6rcPV4eSQshRkVYnYnaLJVGI5U4ruTHD9nXGy4LcX6XORrJQnOv5Qs646v6P +\restrict toDN9POusV89Df3dDY23E038V6gJTOUfqKOSfgYIb5bdYS5dqU9IfaNZMZv2mLW -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_manifests -- PostgreSQL database dump complete -- -\unrestrict 9pv6rcPV4eSQshRkVYnYnaLJVGI5U4ruTHD9nXGy4LcX6XORrJQnOv5Qs646v6P +\unrestrict toDN9POusV89Df3dDY23E038V6gJTOUfqKOSfgYIb5bdYS5dqU9IfaNZMZv2mLW diff --git a/pg-ddl/schema/public/version_strings.sql b/pg-ddl/schema/public/version_strings.sql index e7002b13..b3776953 100644 --- a/pg-ddl/schema/public/version_strings.sql +++ b/pg-ddl/schema/public/version_strings.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict aFPabVsZQHhkD4fblrSfTopjamO5qsZkc0yO555wDmd4Wet4xviBdL9FdaTDPpd +\restrict auvDJefqO2PyojPyqnQ0LI0J9BeBsLCfiifn2F9o2wDqDp8VX5ZyKeSYCHX9gcH -- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) -- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) @@ -106,5 +106,5 @@ CREATE INDEX version_strings_xml_path_trgm_idx ON public.version_strings USING g -- PostgreSQL database dump complete -- -\unrestrict aFPabVsZQHhkD4fblrSfTopjamO5qsZkc0yO555wDmd4Wet4xviBdL9FdaTDPpd +\unrestrict auvDJefqO2PyojPyqnQ0LI0J9BeBsLCfiifn2F9o2wDqDp8VX5ZyKeSYCHX9gcH From 11ae7398f12ecfbc9f60be2b658dfcc174d45b21 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Mon, 24 Nov 2025 10:17:03 +0800 Subject: [PATCH 24/81] Refresh schema --- adscrawler/app_stores/process_keywords.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adscrawler/app_stores/process_keywords.py b/adscrawler/app_stores/process_keywords.py index f2da2841..50bc21fd 100644 --- a/adscrawler/app_stores/process_keywords.py +++ b/adscrawler/app_stores/process_keywords.py @@ -177,8 +177,8 @@ def extract_keywords_nltk(text: str, top_n: int = 10) -> list[str]: def get_stopwords() -> set[str]: """Get the stopwords from NLTK and spaCy.""" - from nltk.corpus import stopwords import spacy + from nltk.corpus import stopwords nlp = spacy.load("en_core_web_sm") spacy_stopwords = nlp.Defaults.stop_words From 47960283a1ba161791c723d13028b580578c628c Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Mon, 1 Dec 2025 12:34:08 -0800 Subject: [PATCH 25/81] Drop some long b64 strings from ios insert --- adscrawler/dbcon/queries.py | 2 +- adscrawler/packages/ipas/get_plist.py | 11 +++++++++++ adscrawler/packages/process_files.py | 4 ++-- adscrawler/packages/utils.py | 10 ++-------- 4 files changed, 16 insertions(+), 11 deletions(-) diff --git a/adscrawler/dbcon/queries.py b/adscrawler/dbcon/queries.py index 57e3096c..9d0892e8 100644 --- a/adscrawler/dbcon/queries.py +++ b/adscrawler/dbcon/queries.py @@ -637,7 +637,7 @@ def query_latest_api_scan_by_store_id( return df -def upsert_details_df( +def upser_sdk_details_df( details_df: pd.DataFrame, database_connection: PostgresCon, store_id: str, diff --git a/adscrawler/packages/ipas/get_plist.py b/adscrawler/packages/ipas/get_plist.py index a26bf940..437d438a 100644 --- a/adscrawler/packages/ipas/get_plist.py +++ b/adscrawler/packages/ipas/get_plist.py @@ -88,6 +88,17 @@ def get_parsed_plist( plist_bytes = f.read() data = plistlib.loads(plist_bytes) plist_str = str(data) + # Interesting data in here, but also many keys + # jdata = data['CFBundleConfigDataJSONBase64'] + # jdata = data['CFBundlePagesJSONBase64'] + # if jdata: + # jdata = base64.b64decode(jdata).decode('utf-8') + # jdata = json.loads(jdata) + # jdata = pd.json_normalize(jdata) + # jdata = jdata[["path", "value"]] + # drop for now + data.pop('CFBundleConfigDataJSONBase64') + data.pop('CFBundlePagesJSONBase64') df = ( pd.json_normalize(data, sep="/") .T.explode(0) diff --git a/adscrawler/packages/process_files.py b/adscrawler/packages/process_files.py index 623888b4..5106c11c 100644 --- a/adscrawler/packages/process_files.py +++ b/adscrawler/packages/process_files.py @@ -9,7 +9,7 @@ insert_version_code, query_apps_to_download, query_apps_to_sdk_scan, - upsert_details_df, + upser_sdk_details_df, ) from adscrawler.packages.apks.download_apk import ( manage_apk_download, @@ -237,7 +237,7 @@ def process_sdks( index=False, ) if crawl_result == 1: - upsert_details_df( + upser_sdk_details_df( details_df=details_df, database_connection=database_connection, store_id=store_id, diff --git a/adscrawler/packages/utils.py b/adscrawler/packages/utils.py index ee6ac7cb..4d1e56ec 100644 --- a/adscrawler/packages/utils.py +++ b/adscrawler/packages/utils.py @@ -181,30 +181,24 @@ def get_local_file_path(store: int, store_id: str) -> pathlib.Path | None: Returns: The file extension ('.apk' or '.xapk') if found, None otherwise """ - # Define all possible paths to check # In the future we would check version codes as well - apk_paths = [ pathlib.Path(APKS_DIR, f"{store_id}.apk"), pathlib.Path(XAPKS_DIR, f"{store_id}.xapk"), pathlib.Path(APKS_INCOMING_DIR, f"{store_id}.apk"), pathlib.Path(XAPKS_INCOMING_DIR, f"{store_id}.xapk"), ] - ipa_paths = [ pathlib.Path(IPAS_DIR, f"{store_id}.ipa"), pathlib.Path(IPAS_INCOMING_DIR, f"{store_id}.ipa"), ] - paths_to_check = apk_paths if store == 1 else ipa_paths - - logger.info(f"Checking {store_id=} if exists locally") - for path in paths_to_check: if path.exists(): + logger.info(f"{store_id=} {path=} exists locally") return path - + logger.info(f"{store_id=} no local file found") return None From 5daf3db4fde14777049a3d3db1206d62ecefaea6 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Mon, 1 Dec 2025 12:55:56 -0800 Subject: [PATCH 26/81] Reduce overhead memory in individual processes --- adscrawler/app_stores/scrape_stores.py | 26 ++++++-------------------- adscrawler/dbcon/queries.py | 2 +- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index d2935bf6..bdd3fb40 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -55,7 +55,6 @@ query_languages, query_store_apps_to_update, query_store_id_map, - query_store_id_map_cached, query_store_ids, update_from_df, upsert_df, @@ -96,6 +95,7 @@ def process_scrape_apps_and_save( country=row["country_code"].lower(), language=row["language"].lower(), ) + result['store_app_db_id'] = row['store_app'] if process_icon: result["icon_url_100"] = row.get("icon_url_100", None) chunk_results.append(result) @@ -109,7 +109,8 @@ def process_scrape_apps_and_save( results_df = pd.DataFrame(chunk_results) results_df["crawled_date"] = results_df["crawled_at"].dt.date app_details_to_s3(results_df, store=store) - log_crawl_results(results_df, store, database_connection=database_connection) + results_df['store_app'] = results_df['store_app_db_id'].astype(int) + log_crawl_results(results_df, database_connection=database_connection) results_df = results_df[(results_df["country"] == "US")] process_live_app_details( store=store, @@ -770,25 +771,16 @@ def apps_details_to_db( x for x in get_store_app_columns(database_connection) if x in apps_df.columns ] apps_df = prepare_for_psycopg(apps_df) - return_rows = crawl_result == 1 logger.info(f"{crawl_result=} update store_apps table for {len(apps_df)} apps") - store_apps_df = update_from_df( + update_from_df( table_name="store_apps", df=apps_df, update_columns=insert_columns, key_columns=key_columns, database_connection=database_connection, - return_rows=return_rows, ) - if store_apps_df is None or store_apps_df.empty or crawl_result != 1: + if apps_df is None or apps_df.empty or crawl_result != 1: return - store_apps_df = store_apps_df.rename(columns={"id": "store_app"}) - apps_df = pd.merge( - apps_df, - store_apps_df[["store_id", "store_app"]], - how="left", - validate="1:1", - ) upsert_store_apps_descriptions(apps_df, database_connection) save_app_domains( apps_df=apps_df, @@ -836,18 +828,12 @@ def upsert_store_apps_descriptions( def log_crawl_results( - app_df: pd.DataFrame, store: int, database_connection: PostgresCon + app_df: pd.DataFrame, database_connection: PostgresCon ) -> None: - store_id_map = query_store_id_map_cached( - store=store, database_connection=database_connection - ) country_map = query_countries(database_connection) app_df["country_id"] = app_df["country"].map( country_map.set_index("alpha2")["id"].to_dict() ) - app_df["store_app"] = app_df["store_id"].map( - store_id_map.set_index("store_id")["id"].to_dict() - ) insert_columns = [ "crawl_result", "store_app", diff --git a/adscrawler/dbcon/queries.py b/adscrawler/dbcon/queries.py index 9d0892e8..754feade 100644 --- a/adscrawler/dbcon/queries.py +++ b/adscrawler/dbcon/queries.py @@ -459,7 +459,7 @@ def delete_and_insert( def query_all_developers(database_connection: PostgresCon) -> pd.DataFrame: """Query all developers from the database.""" sel_query = """SELECT - id, store, name, developer_id + id, store, developer_id FROM developers ; """ From a93ab866f2aec02555d891b53c0b242557cbe72a Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Mon, 1 Dec 2025 12:58:52 -0800 Subject: [PATCH 27/81] Remove testing string --- adscrawler/app_stores/process_from_s3.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/adscrawler/app_stores/process_from_s3.py b/adscrawler/app_stores/process_from_s3.py index 9eacf429..a4f21e5b 100644 --- a/adscrawler/app_stores/process_from_s3.py +++ b/adscrawler/app_stores/process_from_s3.py @@ -359,8 +359,6 @@ def process_app_metrics_to_db( df=df, key_columns=COUNTRY_HISTORY_KEYS, ) - # TESTING ONLY, ignore new apps since devdb is not updated - df = df[df["store_app"].notna()] insert_columns = [x for x in COUNTRY_HISTORY_COLS if x in df.columns] if store == 1: # TODO: Can get installs per Country by getting review_count sum for all countries From 202b7ac5bee14f5d26f18785582fdefb4736a139 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Tue, 2 Dec 2025 10:24:20 -0800 Subject: [PATCH 28/81] Add back in threadpoolexecutor but with the workers as well --- adscrawler/app_stores/scrape_stores.py | 100 +++++++++++++++++++------ 1 file changed, 76 insertions(+), 24 deletions(-) diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index bdd3fb40..394e8b4d 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -1,7 +1,7 @@ import datetime import pathlib import time -from concurrent.futures import ProcessPoolExecutor, as_completed +from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor, as_completed from io import BytesIO from urllib.error import URLError from urllib.parse import unquote_plus @@ -64,12 +64,38 @@ logger = get_logger(__name__, "scrape_stores") +def _scrape_single_app( + row: pd.Series, + store: int, + process_icon: bool, + chunk_info: str, +) -> dict | None: + """Helper function to scrape a single app - used by ThreadPoolExecutor.""" + try: + result = scrape_app( + store=store, + store_id=row["store_id"], + country=row["country_code"].lower(), + language=row["language"].lower(), + ) + result['store_app_db_id'] = row['store_app'] + if process_icon: + result["icon_url_100"] = row.get("icon_url_100", None) + return result + except Exception as e: + logger.exception( + f"{chunk_info} store_id={row['store_id']} scrape_app failed: {e}" + ) + return None + + def process_scrape_apps_and_save( df_chunk: pd.DataFrame, store: int, use_ssh_tunnel: bool, process_icon: bool, total_rows: int | None = None, + thread_workers: int = 5, ) -> None: """Process a chunk of apps, scrape app, store to S3 and if coutnry === US store app details to db store_apps table. s @@ -79,30 +105,35 @@ def process_scrape_apps_and_save( use_ssh_tunnel: Whether to use SSH tunnel process_icon: Whether to process app icons total_rows: Total number of apps in the chunk, if None, will be calculated from df_chunk + thread_workers: Number of threads to use for parallel scraping within this process """ if total_rows is None: total_rows = len(df_chunk) chunk_info = f"{store=} chunk={df_chunk.index[0]}-{df_chunk.index[-1]}/{total_rows}" - logger.info(f"{chunk_info} start") + logger.info(f"{chunk_info} start with {thread_workers} threads") database_connection = get_db_connection(use_ssh_tunnel=use_ssh_tunnel) chunk_results = [] try: - for _, row in df_chunk.iterrows(): - try: - result = scrape_app( - store=store, - store_id=row["store_id"], - country=row["country_code"].lower(), - language=row["language"].lower(), - ) - result['store_app_db_id'] = row['store_app'] - if process_icon: - result["icon_url_100"] = row.get("icon_url_100", None) - chunk_results.append(result) - except Exception as e: - logger.exception( - f"{chunk_info} store_id={row['store_id']} scrape_app failed: {e}" - ) + # Use ThreadPoolExecutor to parallelize scraping within this chunk + with ThreadPoolExecutor(max_workers=thread_workers) as executor: + # Submit all scraping tasks + future_to_row = { + executor.submit(_scrape_single_app, row, store, process_icon, chunk_info): idx + for idx, row in df_chunk.iterrows() + } + + # Collect results as they complete + for future in as_completed(future_to_row): + try: + result = future.result() + if result is not None: + chunk_results.append(result) + except Exception as e: + row_idx = future_to_row[future] + logger.exception( + f"{chunk_info} row_idx={row_idx} thread processing failed: {e}" + ) + if not chunk_results: logger.warning(f"{chunk_info} produced no results.") return @@ -133,9 +164,21 @@ def update_app_details( process_icon: bool, limit: int, country_priority_group: int, + thread_workers: int = 3, ) -> None: - """Process apps with dynamic work queue""" - log_info = f"{store=} update app details" + """Process apps with dynamic work queue + + Args: + database_connection: Database connection + store: Store ID + use_ssh_tunnel: Whether to use SSH tunnel + workers: Number of processes to use + process_icon: Whether to process app icons + limit: Limit on number of apps to process + country_priority_group: Country priority group + thread_workers: Number of threads per process for parallel scraping (default: 5) + """ + log_info = f"{store=} group={country_priority_group} update app details" df = query_store_apps_to_update( store=store, @@ -144,9 +187,14 @@ def update_app_details( country_priority_group=country_priority_group, ) df = df.sort_values("country_code").reset_index(drop=True) - logger.info(f"{log_info} start {len(df)} apps") + if df.empty: + logger.info(f"{log_info} no apps to update") + return + logger.info(f"{log_info} start apps={len(df)}") - max_chunk_size = 3000 + # Keep chunk size large for efficient S3 parquet files + # Threading within chunks provides parallelism + max_chunk_size = 5000 chunks = [] # Try keeping countries together for larger end S3 files for _country, country_df in df.groupby("country_code"): @@ -162,13 +210,16 @@ def update_app_details( chunks.append(country_df.iloc[i : i + chunk_size]) total_chunks = len(chunks) total_rows = len(df) - logger.info(f"{log_info} processing {total_rows} apps in {total_chunks} chunks") + logger.info( + f"{log_info} processing {total_rows} apps in {total_chunks} chunks " + f"({workers} processes × {thread_workers} threads = {workers * thread_workers} concurrent)" + ) completed_count = 0 failed_count = 0 with ProcessPoolExecutor(max_workers=workers) as executor: - # Submit all chunks, but stagger the first wave to avoid API thundering herd + # Submit all chunks, but stagger the first wave to avoid API bursts future_to_idx = {} for idx, df_chunk in enumerate(chunks): future = executor.submit( @@ -178,6 +229,7 @@ def update_app_details( use_ssh_tunnel, process_icon, total_rows, + thread_workers, ) future_to_idx[future] = idx # Only stagger the initial batch to avoid simultaneous API burst From a921f21c797983bebb4e4a07716fb062b6395cb9 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Tue, 2 Dec 2025 10:26:25 -0800 Subject: [PATCH 29/81] Add back in threadpoolexecutor but with the workers as well --- adscrawler/app_stores/scrape_stores.py | 18 +++++++++--------- adscrawler/packages/ipas/get_plist.py | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index 394e8b4d..aa4b4ccc 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -78,7 +78,7 @@ def _scrape_single_app( country=row["country_code"].lower(), language=row["language"].lower(), ) - result['store_app_db_id'] = row['store_app'] + result["store_app_db_id"] = row["store_app"] if process_icon: result["icon_url_100"] = row.get("icon_url_100", None) return result @@ -118,10 +118,12 @@ def process_scrape_apps_and_save( with ThreadPoolExecutor(max_workers=thread_workers) as executor: # Submit all scraping tasks future_to_row = { - executor.submit(_scrape_single_app, row, store, process_icon, chunk_info): idx + executor.submit( + _scrape_single_app, row, store, process_icon, chunk_info + ): idx for idx, row in df_chunk.iterrows() } - + # Collect results as they complete for future in as_completed(future_to_row): try: @@ -133,14 +135,14 @@ def process_scrape_apps_and_save( logger.exception( f"{chunk_info} row_idx={row_idx} thread processing failed: {e}" ) - + if not chunk_results: logger.warning(f"{chunk_info} produced no results.") return results_df = pd.DataFrame(chunk_results) results_df["crawled_date"] = results_df["crawled_at"].dt.date app_details_to_s3(results_df, store=store) - results_df['store_app'] = results_df['store_app_db_id'].astype(int) + results_df["store_app"] = results_df["store_app_db_id"].astype(int) log_crawl_results(results_df, database_connection=database_connection) results_df = results_df[(results_df["country"] == "US")] process_live_app_details( @@ -167,7 +169,7 @@ def update_app_details( thread_workers: int = 3, ) -> None: """Process apps with dynamic work queue - + Args: database_connection: Database connection store: Store ID @@ -879,9 +881,7 @@ def upsert_store_apps_descriptions( ) -def log_crawl_results( - app_df: pd.DataFrame, database_connection: PostgresCon -) -> None: +def log_crawl_results(app_df: pd.DataFrame, database_connection: PostgresCon) -> None: country_map = query_countries(database_connection) app_df["country_id"] = app_df["country"].map( country_map.set_index("alpha2")["id"].to_dict() diff --git a/adscrawler/packages/ipas/get_plist.py b/adscrawler/packages/ipas/get_plist.py index 437d438a..77b2afc4 100644 --- a/adscrawler/packages/ipas/get_plist.py +++ b/adscrawler/packages/ipas/get_plist.py @@ -97,8 +97,8 @@ def get_parsed_plist( # jdata = pd.json_normalize(jdata) # jdata = jdata[["path", "value"]] # drop for now - data.pop('CFBundleConfigDataJSONBase64') - data.pop('CFBundlePagesJSONBase64') + data.pop("CFBundleConfigDataJSONBase64") + data.pop("CFBundlePagesJSONBase64") df = ( pd.json_normalize(data, sep="/") .T.explode(0) From 677e56b556722115e5540a99180d284dab731afd Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Wed, 3 Dec 2025 08:52:06 -0800 Subject: [PATCH 30/81] Try fewer default threads --- adscrawler/app_stores/scrape_stores.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index aa4b4ccc..4d1eff53 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -94,8 +94,8 @@ def process_scrape_apps_and_save( store: int, use_ssh_tunnel: bool, process_icon: bool, + thread_workers: int, total_rows: int | None = None, - thread_workers: int = 5, ) -> None: """Process a chunk of apps, scrape app, store to S3 and if coutnry === US store app details to db store_apps table. s @@ -104,8 +104,8 @@ def process_scrape_apps_and_save( store: Store ID use_ssh_tunnel: Whether to use SSH tunnel process_icon: Whether to process app icons - total_rows: Total number of apps in the chunk, if None, will be calculated from df_chunk thread_workers: Number of threads to use for parallel scraping within this process + total_rows: Total number of apps in the chunk, if None, will be calculated from df_chunk """ if total_rows is None: total_rows = len(df_chunk) @@ -166,7 +166,7 @@ def update_app_details( process_icon: bool, limit: int, country_priority_group: int, - thread_workers: int = 3, + thread_workers: int = 2, ) -> None: """Process apps with dynamic work queue From db9915df3ba2141dea1379e62f271276d03e2a4f Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Wed, 3 Dec 2025 09:05:02 -0800 Subject: [PATCH 31/81] avoid hammering when using threads --- adscrawler/app_stores/scrape_stores.py | 36 ++++++++++++++++++++------ 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index 4d1eff53..9a35d5fe 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -1,5 +1,7 @@ import datetime import pathlib +import random +import ssl import time from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor, as_completed from io import BytesIO @@ -69,8 +71,13 @@ def _scrape_single_app( store: int, process_icon: bool, chunk_info: str, + use_thread_jitter: bool, ) -> dict | None: """Helper function to scrape a single app - used by ThreadPoolExecutor.""" + if use_thread_jitter: + # Add small random jitter to avoid SSL connection conflicts + time.sleep(random.uniform(0.05, 0.2)) + try: result = scrape_app( store=store, @@ -98,7 +105,7 @@ def process_scrape_apps_and_save( total_rows: int | None = None, ) -> None: """Process a chunk of apps, scrape app, store to S3 and if coutnry === US store app details to db store_apps table. - s + Args: df_chunk: DataFrame of apps to process, needs to have columns: store_id, country_code, language, icon_url_100 store: Store ID @@ -113,13 +120,19 @@ def process_scrape_apps_and_save( logger.info(f"{chunk_info} start with {thread_workers} threads") database_connection = get_db_connection(use_ssh_tunnel=use_ssh_tunnel) chunk_results = [] + use_thread_jitter = thread_workers > 1 try: # Use ThreadPoolExecutor to parallelize scraping within this chunk with ThreadPoolExecutor(max_workers=thread_workers) as executor: # Submit all scraping tasks future_to_row = { executor.submit( - _scrape_single_app, row, store, process_icon, chunk_info + _scrape_single_app, + row, + store, + process_icon, + chunk_info, + use_thread_jitter, ): idx for idx, row in df_chunk.iterrows() } @@ -166,7 +179,6 @@ def update_app_details( process_icon: bool, limit: int, country_priority_group: int, - thread_workers: int = 2, ) -> None: """Process apps with dynamic work queue @@ -178,10 +190,17 @@ def update_app_details( process_icon: Whether to process app icons limit: Limit on number of apps to process country_priority_group: Country priority group - thread_workers: Number of threads per process for parallel scraping (default: 5) """ log_info = f"{store=} group={country_priority_group} update app details" + if store == 1: + thread_workers = 1 + elif store == 2: + # Apple has slower response times, so use more threads + thread_workers = 3 + else: + thread_workers = 2 + df = query_store_apps_to_update( store=store, database_connection=database_connection, @@ -721,12 +740,13 @@ def scrape_app( crawl_result = 4 logger.exception(f"{scrape_info} unexpected error: {error=}") break - except URLError as error: - logger.warning(f"{scrape_info} {error=}") + except (URLError, ssl.SSLError, requests.exceptions.SSLError) as error: + logger.warning(f"{scrape_info} Network/SSL error: {error=}") crawl_result = 4 if retries <= max_retries: - sleep_time = base_delay * (2**retries) - logger.info(f"{scrape_info} Retrying in {sleep_time} seconds...") + # Add extra jitter for SSL errors to avoid connection conflicts + sleep_time = base_delay * (2**retries) + random.uniform(0.1, 0.5) + logger.info(f"{scrape_info} Retrying in {sleep_time:.2f} seconds...") time.sleep(sleep_time) continue else: From 18de49a6cc52af4533049c65f92c454e2e5e1fed Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Wed, 3 Dec 2025 09:05:24 -0800 Subject: [PATCH 32/81] avoid hammering when using threads --- adscrawler/app_stores/scrape_stores.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index 9a35d5fe..cbcc46c4 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -194,7 +194,7 @@ def update_app_details( log_info = f"{store=} group={country_priority_group} update app details" if store == 1: - thread_workers = 1 + thread_workers = 2 elif store == 2: # Apple has slower response times, so use more threads thread_workers = 3 From a2692f2d583276fc13ebe506cd556260d4d6c0cc Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Wed, 3 Dec 2025 10:56:02 -0800 Subject: [PATCH 33/81] Threading is causing issues with Google, which uses urllib rather than requests, remove for google but keep for apple --- adscrawler/app_stores/scrape_stores.py | 104 +++++++++++++++++-------- 1 file changed, 71 insertions(+), 33 deletions(-) diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index cbcc46c4..138c7244 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -104,7 +104,7 @@ def process_scrape_apps_and_save( thread_workers: int, total_rows: int | None = None, ) -> None: - """Process a chunk of apps, scrape app, store to S3 and if coutnry === US store app details to db store_apps table. + """Process a chunk of apps, scrape app, store to S3 and if country === US store app details to db store_apps table. Args: df_chunk: DataFrame of apps to process, needs to have columns: store_id, country_code, language, icon_url_100 @@ -117,36 +117,65 @@ def process_scrape_apps_and_save( if total_rows is None: total_rows = len(df_chunk) chunk_info = f"{store=} chunk={df_chunk.index[0]}-{df_chunk.index[-1]}/{total_rows}" - logger.info(f"{chunk_info} start with {thread_workers} threads") + + # Store 1 (Google Play) uses sequential processing to avoid SSL issues + # Store 2 (Apple) can use threading + use_threading = store == 2 and thread_workers > 1 + + if use_threading: + logger.info(f"{chunk_info} start with {thread_workers} threads") + else: + logger.info(f"{chunk_info} start (sequential)") + database_connection = get_db_connection(use_ssh_tunnel=use_ssh_tunnel) chunk_results = [] - use_thread_jitter = thread_workers > 1 + try: - # Use ThreadPoolExecutor to parallelize scraping within this chunk - with ThreadPoolExecutor(max_workers=thread_workers) as executor: - # Submit all scraping tasks - future_to_row = { - executor.submit( - _scrape_single_app, - row, - store, - process_icon, - chunk_info, - use_thread_jitter, - ): idx - for idx, row in df_chunk.iterrows() - } + if use_threading: + # Threading approach for Apple App Store + use_thread_jitter = True + with ThreadPoolExecutor(max_workers=thread_workers) as executor: + # Submit all scraping tasks + future_to_row = { + executor.submit( + _scrape_single_app, + row, + store, + process_icon, + chunk_info, + use_thread_jitter, + ): idx + for idx, row in df_chunk.iterrows() + } - # Collect results as they complete - for future in as_completed(future_to_row): + # Collect results as they complete + for future in as_completed(future_to_row): + try: + result = future.result() + if result is not None: + chunk_results.append(result) + except Exception as e: + row_idx = future_to_row[future] + logger.exception( + f"{chunk_info} row_idx={row_idx} thread processing failed: {e}" + ) + else: + # Sequential approach for Google Play Store (avoids SSL EOF errors) + for _, row in df_chunk.iterrows(): try: - result = future.result() - if result is not None: - chunk_results.append(result) + result = scrape_app( + store=store, + store_id=row["store_id"], + country=row["country_code"].lower(), + language=row["language"].lower(), + ) + result["store_app_db_id"] = row["store_app"] + if process_icon: + result["icon_url_100"] = row.get("icon_url_100", None) + chunk_results.append(result) except Exception as e: - row_idx = future_to_row[future] logger.exception( - f"{chunk_info} row_idx={row_idx} thread processing failed: {e}" + f"{chunk_info} store_id={row['store_id']} scrape_app failed: {e}" ) if not chunk_results: @@ -193,13 +222,14 @@ def update_app_details( """ log_info = f"{store=} group={country_priority_group} update app details" + # Store 1 (Google Play): No threading due to urllib SSL issues + # Store 2 (Apple): Use threading as it has slower response times if store == 1: - thread_workers = 2 + thread_workers = 1 elif store == 2: - # Apple has slower response times, so use more threads thread_workers = 3 else: - thread_workers = 2 + thread_workers = 1 df = query_store_apps_to_update( store=store, @@ -214,8 +244,9 @@ def update_app_details( logger.info(f"{log_info} start apps={len(df)}") # Keep chunk size large for efficient S3 parquet files - # Threading within chunks provides parallelism - max_chunk_size = 5000 + # For store 1 (sequential), processes provide parallelism + # For store 2 (threading), threads within chunks provide parallelism + max_chunk_size = 3000 chunks = [] # Try keeping countries together for larger end S3 files for _country, country_df in df.groupby("country_code"): @@ -231,10 +262,17 @@ def update_app_details( chunks.append(country_df.iloc[i : i + chunk_size]) total_chunks = len(chunks) total_rows = len(df) - logger.info( - f"{log_info} processing {total_rows} apps in {total_chunks} chunks " - f"({workers} processes × {thread_workers} threads = {workers * thread_workers} concurrent)" - ) + + if thread_workers > 1: + logger.info( + f"{log_info} processing {total_rows} apps in {total_chunks} chunks " + f"({workers} processes × {thread_workers} threads = {workers * thread_workers} concurrent)" + ) + else: + logger.info( + f"{log_info} processing {total_rows} apps in {total_chunks} chunks " + f"({workers} processes, sequential per process)" + ) completed_count = 0 failed_count = 0 From 2d4c3beb392cddefe9ebe874450921dc44ebff80 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Thu, 4 Dec 2025 10:12:17 -0800 Subject: [PATCH 34/81] Organize store_scrape log messages --- adscrawler/app_stores/apple.py | 6 +++--- adscrawler/app_stores/google.py | 12 +++++------- adscrawler/app_stores/scrape_stores.py | 10 +++++----- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/adscrawler/app_stores/apple.py b/adscrawler/app_stores/apple.py index 959eccec..bac0210d 100644 --- a/adscrawler/app_stores/apple.py +++ b/adscrawler/app_stores/apple.py @@ -333,7 +333,7 @@ def scrape_app_ios(store_id: str, country: str, language: str) -> dict: yt_us = scrape_app_ios("544007664", "us", language="en") yt_de = scrape_app_ios("544007664", "de", language="en") - # SAME FOR ALL COUNTRIES + ## SAME FOR ALL COUNTRIES yt_de['sellerName'] == yt_us['sellerName'] yt_us['currentVersionReleaseDate'] == yt_de['currentVersionReleaseDate'] @@ -344,7 +344,7 @@ def scrape_app_ios(store_id: str, country: str, language: str) -> dict: yt_de['user_ratings'] != yt_us['user_ratings'] yt_de['description'] != yt_us['description'] - # These very by country but are also the same as each other? + ### These very by country but are also the same as each other? yt_de['userRatingCount'] == yt_de['userRatingCountForCurrentVersion'] @@ -355,7 +355,7 @@ def scrape_app_ios(store_id: str, country: str, language: str) -> dict: result_dict: dict = scraper.get_app_details( store_id, country=country, add_ratings=True, timeout=10, lang=language ) - logger.info(f"store=2 {country=} {language=} {store_id=} ios store scraped") + logger.debug(f"store=2 {country=} {language=} {store_id=} ios store scraped") return result_dict diff --git a/adscrawler/app_stores/google.py b/adscrawler/app_stores/google.py index eb24389d..f6f73bb6 100644 --- a/adscrawler/app_stores/google.py +++ b/adscrawler/app_stores/google.py @@ -16,14 +16,14 @@ def scrape_app_gp(store_id: str, country: str, language: str = "en") -> dict: yt_us = scrape_app_gp("com.google.android.youtube", "us", language="en") yt_de = scrape_app_gp("com.google.android.youtube", "mx", language="en") - # SAME FOR ALL COUNTRIES + ## SAME FOR ALL COUNTRIES yt_us["ratings"] == yt_de["ratings"] yt_us["realInstalls"] == yt_de["realInstalls"] yt_us["updated"] == yt_de["updated"] - # MOSTLY SAME FOR ALL COUNTRIES - # Almost always lower for smaller countries - # looks more like delays and incomplete (0s) + ## MOSTLY SAME FOR ALL COUNTRIES + ## Almost always lower for smaller countries + ## looks more like delays and incomplete (0s) yt_us["histogram"] == yt_de["histogram"] @@ -31,8 +31,6 @@ def scrape_app_gp(store_id: str, country: str, language: str = "en") -> dict: yt_us["reviews"] != yt_de["reviews"] yt_us["score"] != yt_de["score"] - - ## UNIQUE PER LANGUAGE yt_us["description"] == yt_de["description"] yt_us["description"] == yt_de_en["description"] @@ -43,7 +41,7 @@ def scrape_app_gp(store_id: str, country: str, language: str = "en") -> dict: country=country, timeout=10, ) - logger.info(f"store=1 {country=} {language=} {store_id=} play store scraped") + logger.debug(f"store=1 {country=} {language=} {store_id=} play store scraped") return result_dict diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index 138c7244..bb9755e6 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -116,7 +116,7 @@ def process_scrape_apps_and_save( """ if total_rows is None: total_rows = len(df_chunk) - chunk_info = f"{store=} chunk={df_chunk.index[0]}-{df_chunk.index[-1]}/{total_rows}" + chunk_info = f"{store=} process_scrape_apps_and_save chunk={df_chunk.index[0]}-{df_chunk.index[-1]}/{total_rows}" # Store 1 (Google Play) uses sequential processing to avoid SSL issues # Store 2 (Apple) can use threading @@ -220,7 +220,7 @@ def update_app_details( limit: Limit on number of apps to process country_priority_group: Country priority group """ - log_info = f"{store=} group={country_priority_group} update app details" + log_info = f"{store=} group={country_priority_group} update_app_details" # Store 1 (Google Play): No threading due to urllib SSL issues # Store 2 (Apple): Use threading as it has slower response times @@ -748,11 +748,11 @@ def scrape_app( country: str, language: str, ) -> dict: - scrape_info = f"{store=}, {country=}, {language=}, {store_id=}" + scrape_info = f"{store=}, {country=}, {language=}, {store_id=} scrape_app" max_retries = 2 base_delay = 0.5 retries = 0 - logger.debug(f"{scrape_info} scrape start") + logger.debug(f"{scrape_info} start") # Satisfy mypy crawl_result = 0 while retries <= max_retries: @@ -805,7 +805,7 @@ def scrape_app( result_dict["store_id"] = store_id result_dict["queried_language"] = language.lower() result_dict["country"] = country.upper() - logger.debug(f"{scrape_info} result={crawl_result} scrape finished") + logger.debug(f"{scrape_info} {crawl_result=} finished") return result_dict From 4eaf728f28c1674341d5769884eea13d72d21b83 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Thu, 4 Dec 2025 10:17:31 -0800 Subject: [PATCH 35/81] Organize store_scrape log messages --- adscrawler/app_stores/scrape_stores.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index bb9755e6..76f33e0b 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -805,7 +805,7 @@ def scrape_app( result_dict["store_id"] = store_id result_dict["queried_language"] = language.lower() result_dict["country"] = country.upper() - logger.debug(f"{scrape_info} {crawl_result=} finished") + logger.info(f"{scrape_info} {crawl_result=} finished") return result_dict From 58da15efe4be2d71f8a128022beaa3e29c1e2c49 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Thu, 4 Dec 2025 12:18:10 -0800 Subject: [PATCH 36/81] Add slight delay and jitter --- adscrawler/app_stores/scrape_stores.py | 4 +++- adscrawler/config.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index 76f33e0b..e90efb58 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -154,6 +154,8 @@ def process_scrape_apps_and_save( result = future.result() if result is not None: chunk_results.append(result) + # Add slight jitter so threads don't pick up next task simultaneously + time.sleep(random.uniform(0.01, 0.05)) except Exception as e: row_idx = future_to_row[future] logger.exception( @@ -292,7 +294,7 @@ def update_app_details( ) future_to_idx[future] = idx # Only stagger the initial batch to avoid simultaneous API burst - if idx < workers: + if idx <= workers: time.sleep(0.5) # 500ms between initial worker starts logger.info(f"{log_info} all {total_chunks} chunks submitted") # Process results as they complete diff --git a/adscrawler/config.py b/adscrawler/config.py index c3d9fb91..23a107d6 100644 --- a/adscrawler/config.py +++ b/adscrawler/config.py @@ -175,7 +175,7 @@ def get_logger(mod_name: str, sep_file: str | None = "main") -> logging.Logger: _truncate_oversized_log( os.path.join(LOG_DIR, f"{sep_file}.log"), 500 * 1024 * 1024 - ) # 500MB + ) # 50MB indiv_handler = logging.handlers.WatchedFileHandler( filename=os.path.join(LOG_DIR, f"{sep_file}.log"), From 36d89dc49efcbb27239b875112cd8d74398ccf29 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Wed, 21 Jan 2026 14:51:49 +0800 Subject: [PATCH 37/81] Skip missing base64s --- adscrawler/packages/ipas/get_plist.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/adscrawler/packages/ipas/get_plist.py b/adscrawler/packages/ipas/get_plist.py index 77b2afc4..c4ce7f6c 100644 --- a/adscrawler/packages/ipas/get_plist.py +++ b/adscrawler/packages/ipas/get_plist.py @@ -97,8 +97,14 @@ def get_parsed_plist( # jdata = pd.json_normalize(jdata) # jdata = jdata[["path", "value"]] # drop for now - data.pop("CFBundleConfigDataJSONBase64") - data.pop("CFBundlePagesJSONBase64") + try: + data.pop("CFBundleConfigDataJSONBase64") + except KeyError: + pass + try: + data.pop("CFBundlePagesJSONBase64") + except KeyError: + pass df = ( pd.json_normalize(data, sep="/") .T.explode(0) From 9203d361ecdac8aec023423a591bd4de403deb7b Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Wed, 21 Jan 2026 15:02:08 +0800 Subject: [PATCH 38/81] Stop tracking new_company --- new_company.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 new_company.yml diff --git a/new_company.yml b/new_company.yml deleted file mode 100644 index dcf39391..00000000 --- a/new_company.yml +++ /dev/null @@ -1,17 +0,0 @@ -# Note this file is in gitignore -# If you have permanent changes please commit manually -domain: example.com -company_name: Example Company -sdk_name: Example SDK -sdk_slug: example-sdk -is_open_source: false -has_third_party_tracking: true -# 1: Ad Networks -# 2: Analytics: Attribution -# 3: Analytics: Product -# 4: Development Tools -# 5: Business Tools -category_id: 1 -sdk_package_patterns: - - ExampleA - - com.example From afc00ebead2a2aefdec3e50b6e00e66eddef1571 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Wed, 21 Jan 2026 15:04:59 +0800 Subject: [PATCH 39/81] Add example --- new_company.yml.example | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 new_company.yml.example diff --git a/new_company.yml.example b/new_company.yml.example new file mode 100644 index 00000000..b614602c --- /dev/null +++ b/new_company.yml.example @@ -0,0 +1,16 @@ +# This is an example of a new company to add to the database +# Remove .example from the file name and fill in the details. +domain: example.com +company_name: Example +sdk_name: Example +sdk_slug: example-sdk +is_open_source: false +has_third_party_tracking: true +# 1: Ad Networks +# 2: Analytics: Attribution +# 3: Analytics: Product +# 4: Development Tools +# 5: Business Tools +category_id: 5 +sdk_package_patterns: + - io.example \ No newline at end of file From f14208640b9dc638b4f8a4885f92170f5a8d7c9f Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Wed, 21 Jan 2026 15:05:33 +0800 Subject: [PATCH 40/81] Use new fdw table --- adscrawler/dbcon/sql/query_apps_to_api_scan.sql | 2 +- adscrawler/dbcon/sql/query_apps_to_download.sql | 2 +- adscrawler/dbcon/sql/query_apps_to_sdk_scan.sql | 2 +- adscrawler/packages/ipas/get_plist.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/adscrawler/dbcon/sql/query_apps_to_api_scan.sql b/adscrawler/dbcon/sql/query_apps_to_api_scan.sql index 18df11e7..6db6dbec 100644 --- a/adscrawler/dbcon/sql/query_apps_to_api_scan.sql +++ b/adscrawler/dbcon/sql/query_apps_to_api_scan.sql @@ -138,7 +138,7 @@ user_requested_apps_crawl AS ( lsvc.last_downloaded_at, urs.created_at AS user_requested_at FROM - user_requested_scan AS urs + agadmin.user_requested_scan AS urs LEFT JOIN store_apps AS sa ON urs.store_id = sa.store_id diff --git a/adscrawler/dbcon/sql/query_apps_to_download.sql b/adscrawler/dbcon/sql/query_apps_to_download.sql index a1226108..ae71c17c 100644 --- a/adscrawler/dbcon/sql/query_apps_to_download.sql +++ b/adscrawler/dbcon/sql/query_apps_to_download.sql @@ -127,7 +127,7 @@ user_requested_apps_crawl AS ( coalesce(fd.attempt_count, 0) AS failed_attempts_month, coalesce(fdq.attempt_count, 0) AS failed_attempts_quarter FROM - user_requested_scan AS urs + agadmin.user_requested_scan AS urs LEFT JOIN store_apps AS sa ON urs.store_id = sa.store_id diff --git a/adscrawler/dbcon/sql/query_apps_to_sdk_scan.sql b/adscrawler/dbcon/sql/query_apps_to_sdk_scan.sql index 8a6bbc5d..70120acd 100644 --- a/adscrawler/dbcon/sql/query_apps_to_sdk_scan.sql +++ b/adscrawler/dbcon/sql/query_apps_to_sdk_scan.sql @@ -126,7 +126,7 @@ user_requested_apps_crawl AS ( lsvc.scanned_at AS last_scuccess_scanned_at, lvc.id AS latest_version_code_db_id FROM - user_requested_scan AS urs + agadmin.user_requested_scan AS urs LEFT JOIN store_apps AS sa ON urs.store_id = sa.store_id diff --git a/adscrawler/packages/ipas/get_plist.py b/adscrawler/packages/ipas/get_plist.py index c4ce7f6c..4da87240 100644 --- a/adscrawler/packages/ipas/get_plist.py +++ b/adscrawler/packages/ipas/get_plist.py @@ -98,7 +98,7 @@ def get_parsed_plist( # jdata = jdata[["path", "value"]] # drop for now try: - data.pop("CFBundleConfigDataJSONBase64") + data.pop("CFBundleConfigDataJSONBase64") except KeyError: pass try: From 06bd50381d3c62f329be64a2e2c6b524552a11e8 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Tue, 27 Jan 2026 16:05:48 +0800 Subject: [PATCH 41/81] Update apps to crawl more often --- .../dbcon/sql/query_apps_to_download.sql | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/adscrawler/dbcon/sql/query_apps_to_download.sql b/adscrawler/dbcon/sql/query_apps_to_download.sql index ae71c17c..7db91ffd 100644 --- a/adscrawler/dbcon/sql/query_apps_to_download.sql +++ b/adscrawler/dbcon/sql/query_apps_to_download.sql @@ -88,27 +88,28 @@ scheduled_apps_crawl AS ( ON vc.store_app = fdq.store_app WHERE - dc.store = :store - AND + dc.store = :store AND ( vc.updated_at IS NULL OR ( + -- succesful app not downloaded > x days ( - vc.crawl_result = 1 - AND ( - vc.updated_at < current_date - interval '180 days' - OR vc.updated_at < '2025-05-01' - ) + lsvc.created_at IS NULL OR + lsvc.created_at < current_date - interval '120 days' ) OR + -- Retry failing every couple days, including same x days from above ( - (lsvc.created_at IS NULL OR lsvc.created_at < '2025-05-01') - AND vc.crawl_result IN ( + lsvc.created_at IS NULL OR + lsvc.created_at < current_date - interval '120 days' + AND ( + vc.crawl_result IN ( 2, 3, 4 ) AND vc.updated_at < current_date - interval '2 days' ) + ) ) ) ), @@ -212,7 +213,7 @@ combined AS ( failed_attempts_month < 2 AND failed_attempts_quarter < 4 AND ( last_downloaded_at IS NULL - OR last_downloaded_at < current_date - interval '180 days' + OR last_downloaded_at < current_date - interval '120 days' ) ), final_selection AS ( @@ -250,4 +251,5 @@ final_selection AS ( ) SELECT * FROM - final_selection; + final_selection +; From c9f62be2e1efb80769cac60035262ddb228dc912 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Tue, 27 Jan 2026 16:06:16 +0800 Subject: [PATCH 42/81] WIP: new global keywords logic --- adscrawler/app_stores/process_keywords.py | 86 +++++++++++++++++++++-- 1 file changed, 82 insertions(+), 4 deletions(-) diff --git a/adscrawler/app_stores/process_keywords.py b/adscrawler/app_stores/process_keywords.py index 50bc21fd..0719cde3 100644 --- a/adscrawler/app_stores/process_keywords.py +++ b/adscrawler/app_stores/process_keywords.py @@ -97,6 +97,31 @@ def clean_df_text(df: pd.DataFrame, column: str) -> pd.DataFrame: ) return df +def clean_df_text(df: pd.DataFrame, column: str) -> pd.DataFrame: + # 1. Extract the Series to work on it efficiently + s = df[column].astype(str) + + # 2. Convert all structural separators and whitespace-like noise to periods + # This handles \r, \n, \t, \xa0, and bullets in one pass + s = s.str.replace(r"[\r\n\t\xa0•]+", ". ", regex=True) + + # 3. Handle Apostrophes and Hyphens specifically (don't turn them into periods) + s = s.str.replace(r"['’]", "", regex=True) + s = s.str.replace(r"-", " ", regex=True) + + # 4. Remove URLs + s = s.str.replace(r"\b(?:http|www)\S*", "", regex=True, flags=re.IGNORECASE) + + # 5. Replace everything else that isn't a letter or space with a period + # We remove \s from the exclusion so newlines/tabs are finally nuked if any remain + s = s.str.replace(r"[^a-zA-Z ]", ". ", regex=True) + + # 6. Final Cleanup: lowercase and collapse multiple spaces/periods + # "Design. . . . Community" -> "design. community" + df[column] = s.str.lower().str.replace(r"\s+", " ", regex=True).str.replace(r"\.+", ".", regex=True) + + return df + def count_tokens(phrase: str) -> int: """Count the number of tokens in a phrase.""" @@ -178,6 +203,7 @@ def extract_keywords_nltk(text: str, top_n: int = 10) -> list[str]: def get_stopwords() -> set[str]: """Get the stopwords from NLTK and spaCy.""" import spacy + from nltk.corpus import stopwords nlp = spacy.load("en_core_web_sm") @@ -245,6 +271,51 @@ def extract_unique_app_keywords_from_text( return combined_keywords +# def pos_filter_descriptions(texts: pd.Series) -> list[str]: +# """Batch processes text to keep only NOUN, PROPN, and ADJ.""" +# import spacy +# #spacy.cli.download("en_core_web_sm") +# # Load model once, disable what we don't need for speed +# nlp = spacy.load("en_core_web_sm", disable=["parser", "ner", "lemmatizer"]) +# # Note: We keep the lemmatizer if you want 'games' -> 'game', +# # but for raw speed, you can disable it too. + +# processed_texts = [] +# # nlp.pipe processes in batches and is much faster than .apply() +# for doc in nlp.pipe(texts, batch_size=1000, n_process=-1): # -1 uses all cores +# tokens = [ +# token.text.lower() +# for token in doc +# if token.pos_ in {"NOUN", "PROPN", "ADJ"} and not token.is_stop +# ] +# processed_texts.append(" ".join(tokens)) +# return processed_texts + +# 2000/4 = 15000 +# 1000/8 = 26000 +# 2000/8 = oom +# 200/14 = 30000 +# 1000/14 = oom +# 600/14 = 21000 +# 800/12 = 24000 + +def pos_filter_descriptions(texts: pd.Series, batch_size=1000) -> list[str]: + # Load light model; disable everything but the tagger (for POS) and lemmatizer + import spacy + import tqdm + nlp = spacy.load("en_core_web_sm", disable=["parser", "ner"]) + processed_texts = [] + # for doc in nlp.pipe(texts, batch_size=batch_size, n_process=4): + for doc in tqdm.tqdm(nlp.pipe(texts, batch_size=batch_size, n_process=12), total=len(texts)): + # Keep only Nouns, Proper Nouns, and Adjectives + tokens = [ + token.lemma_.lower() # Use lemma to group 'games' and 'game' + for token in doc + if token.pos_ in {"NOUN", "PROPN", "ADJ"} and not token.is_stop + ] + processed_texts.append(" ".join(tokens)) + return processed_texts + def get_global_keywords(database_connection: PostgresCon) -> list[str]: """Get the global keywords from the database. NOTE: This takes about ~5-8GB of RAM for 50k keywords and 200k descriptions. For now run manually. @@ -258,14 +329,21 @@ def get_global_keywords(database_connection: PostgresCon) -> list[str]: language_slug="en", database_connection=database_connection ) + + + df = pd.read_pickle("descriptions_df.pkl") df = clean_df_text(df, "description") + # df.to_pickle("descriptions_df_cleaned.pkl") + df = pd.read_pickle("descriptions_df_cleaned.pkl") + + df["description"] = pos_filter_descriptions(df["description"]) vectorizer = TfidfVectorizer( - ngram_range=(1, 2), # Include 1-grams, 2-grams + ngram_range=(1, 3), # Include 1-grams, 2-grams, 3-grams stop_words=list(mystopwords), - max_df=0.75, # Ignore terms in >75% of docs (too common) - min_df=300, # Ignore terms in Date: Tue, 27 Jan 2026 16:06:30 +0800 Subject: [PATCH 43/81] WIP: new global keywords logic --- adscrawler/app_stores/process_keywords.py | 39 +++++++++++++---------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/adscrawler/app_stores/process_keywords.py b/adscrawler/app_stores/process_keywords.py index 0719cde3..c6ebee47 100644 --- a/adscrawler/app_stores/process_keywords.py +++ b/adscrawler/app_stores/process_keywords.py @@ -97,29 +97,34 @@ def clean_df_text(df: pd.DataFrame, column: str) -> pd.DataFrame: ) return df + def clean_df_text(df: pd.DataFrame, column: str) -> pd.DataFrame: # 1. Extract the Series to work on it efficiently s = df[column].astype(str) - + # 2. Convert all structural separators and whitespace-like noise to periods # This handles \r, \n, \t, \xa0, and bullets in one pass s = s.str.replace(r"[\r\n\t\xa0•]+", ". ", regex=True) - + # 3. Handle Apostrophes and Hyphens specifically (don't turn them into periods) s = s.str.replace(r"['’]", "", regex=True) s = s.str.replace(r"-", " ", regex=True) - + # 4. Remove URLs s = s.str.replace(r"\b(?:http|www)\S*", "", regex=True, flags=re.IGNORECASE) - + # 5. Replace everything else that isn't a letter or space with a period # We remove \s from the exclusion so newlines/tabs are finally nuked if any remain s = s.str.replace(r"[^a-zA-Z ]", ". ", regex=True) - + # 6. Final Cleanup: lowercase and collapse multiple spaces/periods # "Design. . . . Community" -> "design. community" - df[column] = s.str.lower().str.replace(r"\s+", " ", regex=True).str.replace(r"\.+", ".", regex=True) - + df[column] = ( + s.str.lower() + .str.replace(r"\s+", " ", regex=True) + .str.replace(r"\.+", ".", regex=True) + ) + return df @@ -203,7 +208,6 @@ def extract_keywords_nltk(text: str, top_n: int = 10) -> list[str]: def get_stopwords() -> set[str]: """Get the stopwords from NLTK and spaCy.""" import spacy - from nltk.corpus import stopwords nlp = spacy.load("en_core_web_sm") @@ -277,15 +281,15 @@ def extract_unique_app_keywords_from_text( # #spacy.cli.download("en_core_web_sm") # # Load model once, disable what we don't need for speed # nlp = spacy.load("en_core_web_sm", disable=["parser", "ner", "lemmatizer"]) -# # Note: We keep the lemmatizer if you want 'games' -> 'game', +# # Note: We keep the lemmatizer if you want 'games' -> 'game', # # but for raw speed, you can disable it too. - + # processed_texts = [] # # nlp.pipe processes in batches and is much faster than .apply() # for doc in nlp.pipe(texts, batch_size=1000, n_process=-1): # -1 uses all cores # tokens = [ -# token.text.lower() -# for token in doc +# token.text.lower() +# for token in doc # if token.pos_ in {"NOUN", "PROPN", "ADJ"} and not token.is_stop # ] # processed_texts.append(" ".join(tokens)) @@ -299,23 +303,28 @@ def extract_unique_app_keywords_from_text( # 600/14 = 21000 # 800/12 = 24000 + def pos_filter_descriptions(texts: pd.Series, batch_size=1000) -> list[str]: # Load light model; disable everything but the tagger (for POS) and lemmatizer import spacy import tqdm + nlp = spacy.load("en_core_web_sm", disable=["parser", "ner"]) processed_texts = [] # for doc in nlp.pipe(texts, batch_size=batch_size, n_process=4): - for doc in tqdm.tqdm(nlp.pipe(texts, batch_size=batch_size, n_process=12), total=len(texts)): + for doc in tqdm.tqdm( + nlp.pipe(texts, batch_size=batch_size, n_process=12), total=len(texts) + ): # Keep only Nouns, Proper Nouns, and Adjectives tokens = [ token.lemma_.lower() # Use lemma to group 'games' and 'game' - for token in doc + for token in doc if token.pos_ in {"NOUN", "PROPN", "ADJ"} and not token.is_stop ] processed_texts.append(" ".join(tokens)) return processed_texts + def get_global_keywords(database_connection: PostgresCon) -> list[str]: """Get the global keywords from the database. NOTE: This takes about ~5-8GB of RAM for 50k keywords and 200k descriptions. For now run manually. @@ -329,8 +338,6 @@ def get_global_keywords(database_connection: PostgresCon) -> list[str]: language_slug="en", database_connection=database_connection ) - - df = pd.read_pickle("descriptions_df.pkl") df = clean_df_text(df, "description") # df.to_pickle("descriptions_df_cleaned.pkl") From 7d5ae42b4fa9d88ae39c34b7f68df15473410bb0 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Tue, 27 Jan 2026 16:06:48 +0800 Subject: [PATCH 44/81] Update apps to crawl more often --- .../dbcon/sql/query_apps_to_download.sql | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/adscrawler/dbcon/sql/query_apps_to_download.sql b/adscrawler/dbcon/sql/query_apps_to_download.sql index 7db91ffd..b6e352f4 100644 --- a/adscrawler/dbcon/sql/query_apps_to_download.sql +++ b/adscrawler/dbcon/sql/query_apps_to_download.sql @@ -88,27 +88,27 @@ scheduled_apps_crawl AS ( ON vc.store_app = fdq.store_app WHERE - dc.store = :store AND - ( + dc.store = :store + AND ( vc.updated_at IS NULL OR ( -- succesful app not downloaded > x days ( - lsvc.created_at IS NULL OR - lsvc.created_at < current_date - interval '120 days' + lsvc.created_at IS NULL + OR lsvc.created_at < current_date - interval '120 days' ) OR -- Retry failing every couple days, including same x days from above ( - lsvc.created_at IS NULL OR - lsvc.created_at < current_date - interval '120 days' - AND ( - vc.crawl_result IN ( - 2, 3, 4 + lsvc.created_at IS NULL + OR lsvc.created_at < current_date - interval '120 days' + AND ( + vc.crawl_result IN ( + 2, 3, 4 + ) + AND vc.updated_at < current_date - interval '2 days' ) - AND vc.updated_at < current_date - interval '2 days' - ) ) ) ) @@ -251,5 +251,4 @@ final_selection AS ( ) SELECT * FROM - final_selection -; + final_selection; From 57fcbb8cffe68d2618732f48e27528fdf8120691 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Thu, 29 Jan 2026 10:23:33 +0800 Subject: [PATCH 45/81] Dont retry apps that appear to have not updated recently --- .../dbcon/sql/query_apps_to_download.sql | 455 ++++++++++-------- 1 file changed, 241 insertions(+), 214 deletions(-) diff --git a/adscrawler/dbcon/sql/query_apps_to_download.sql b/adscrawler/dbcon/sql/query_apps_to_download.sql index b6e352f4..695f50e1 100644 --- a/adscrawler/dbcon/sql/query_apps_to_download.sql +++ b/adscrawler/dbcon/sql/query_apps_to_download.sql @@ -1,254 +1,281 @@ WITH latest_version_codes AS ( - SELECT DISTINCT ON - (store_app) + SELECT + DISTINCT ON + (store_app) id, - store_app, - version_code, - updated_at, - crawl_result - FROM - version_codes - ORDER BY - store_app ASC, - updated_at DESC, - string_to_array(version_code, '.')::bigint [] DESC + store_app, + version_code, + updated_at, + crawl_result + FROM + version_codes + ORDER BY + store_app ASC, + updated_at DESC, + string_to_array(version_code, '.')::bigint [] DESC ), latest_success_version_codes AS ( - SELECT DISTINCT ON - (store_app) + SELECT + DISTINCT ON + (store_app) id, - store_app, - version_code, - created_at, - crawl_result - FROM - version_codes - WHERE - crawl_result = 1 - ORDER BY - store_app ASC, - updated_at DESC, - string_to_array(version_code, '.')::bigint [] DESC + store_app, + version_code, + created_at, + updated_at, + crawl_result + FROM + version_codes + WHERE + crawl_result = 1 + ORDER BY + store_app ASC, + updated_at DESC, + string_to_array(version_code, '.')::bigint [] DESC ), faily_downloads_monthly AS ( - SELECT - store_app, - count(*) AS attempt_count - FROM - logging.store_app_downloads - WHERE - crawl_result != 1 - AND updated_at >= current_date - interval '30 days' - GROUP BY - store_app + SELECT + store_app, + count(*) AS attempt_count + FROM + logging.store_app_downloads + WHERE + crawl_result != 1 + AND updated_at >= current_date - INTERVAL '30 days' + GROUP BY + store_app ), faily_downloads_quarter AS ( - SELECT - store_app, - count(*) AS attempt_count - FROM - logging.store_app_downloads - WHERE - crawl_result != 1 - AND updated_at >= current_date - interval '90 days' - GROUP BY - store_app + SELECT + store_app, + count(*) AS attempt_count + FROM + logging.store_app_downloads + WHERE + crawl_result != 1 + AND updated_at >= current_date - INTERVAL '90 days' + GROUP BY + store_app ), growth_apps AS ( - SELECT - sa.id AS store_app, - saz.store_id - FROM frontend.store_apps_z_scores AS saz - LEFT JOIN store_apps AS sa ON saz.store_id = sa.store_id + SELECT + sa.id AS store_app, + saz.store_id + FROM + frontend.store_apps_z_scores AS saz + LEFT JOIN store_apps AS sa ON + saz.store_id = sa.store_id ), scheduled_apps_crawl AS ( - SELECT - dc.store_app, - dc.store_id, - dc.name, - dc.installs, - dc.rating_count, - vc.crawl_result AS last_crawl_result, - vc.updated_at AS last_download_attempt, - lsvc.created_at AS last_downloaded_at, - coalesce(fd.attempt_count, 0) AS failed_attempts_month, - coalesce(fdq.attempt_count, 0) AS failed_attempts_quarter - FROM - store_apps_in_latest_rankings AS dc - LEFT JOIN latest_version_codes AS vc + SELECT + dc.store_app, + dc.store_id, + dc.name, + dc.installs, + dc.rating_count, + vc.crawl_result AS last_crawl_result, + vc.updated_at AS last_download_attempt, + lsvc.created_at AS last_downloaded_at, + COALESCE(fd.attempt_count, 0) AS failed_attempts_month, + COALESCE(fdq.attempt_count, 0) AS failed_attempts_quarter + FROM + store_apps_in_latest_rankings AS dc + LEFT JOIN latest_version_codes AS vc ON - dc.store_app = vc.store_app - LEFT JOIN latest_success_version_codes AS lsvc + dc.store_app = vc.store_app + LEFT JOIN latest_success_version_codes AS lsvc ON - dc.store_app = lsvc.store_app - LEFT JOIN faily_downloads_monthly AS fd + dc.store_app = lsvc.store_app + LEFT JOIN faily_downloads_monthly AS fd ON - vc.store_app = fd.store_app - LEFT JOIN faily_downloads_quarter AS fdq + vc.store_app = fd.store_app + LEFT JOIN faily_downloads_quarter AS fdq ON - vc.store_app = fdq.store_app - WHERE - dc.store = :store - AND ( - vc.updated_at IS NULL - OR + vc.store_app = fdq.store_app + LEFT JOIN store_apps sa ON + dc.store_app = sa.id + WHERE + dc.store = :store + AND ( + vc.updated_at IS NULL + OR ( - -- succesful app not downloaded > x days - ( - lsvc.created_at IS NULL - OR lsvc.created_at < current_date - interval '120 days' - ) - OR - -- Retry failing every couple days, including same x days from above + ( + -- never downloaded + lsvc.created_at IS NULL + -- success not downloaded > x days and store recently updated + OR ( + lsvc.updated_at < current_date - INTERVAL '120 days' + AND ( + sa.store_last_updated > current_date - INTERVAL '90 days' + OR sa.store_last_updated IS NULL + ) + ) + ) + OR + -- Retry failing every couple days, including same x days from above ( - lsvc.created_at IS NULL - OR lsvc.created_at < current_date - interval '120 days' - AND ( - vc.crawl_result IN ( - 2, 3, 4 - ) - AND vc.updated_at < current_date - interval '2 days' - ) - ) - ) - ) + lsvc.created_at IS NULL + OR lsvc.created_at < current_date - INTERVAL '120 days' + AND ( + sa.store_last_updated > current_date - INTERVAL '90 days' + OR sa.store_last_updated IS NULL + ) + AND ( + vc.crawl_result IN ( + 2, 3, 4 + ) + AND vc.updated_at < current_date - INTERVAL '2 days' + ) + ) + ) + ) ), -user_requested_apps_crawl AS ( - SELECT DISTINCT ON - (sa.id) + user_requested_apps_crawl AS ( + SELECT + DISTINCT ON + (sa.id) sa.id AS store_app, - sa.store_id, - sa.name, - agm.installs, - agm.rating_count, - urs.created_at AS user_last_requested, - lvc.crawl_result AS last_crawl_result, - lvc.updated_at AS last_download_attempt, - lsvc.created_at AS last_downloaded_at, - coalesce(fd.attempt_count, 0) AS failed_attempts_month, - coalesce(fdq.attempt_count, 0) AS failed_attempts_quarter - FROM - agadmin.user_requested_scan AS urs - LEFT JOIN store_apps AS sa + sa.store_id, + sa.name, + agm.installs, + agm.rating_count, + urs.created_at AS user_last_requested, + lvc.crawl_result AS last_crawl_result, + lvc.updated_at AS last_download_attempt, + lsvc.created_at AS last_downloaded_at, + COALESCE(fd.attempt_count, 0) AS failed_attempts_month, + COALESCE(fdq.attempt_count, 0) AS failed_attempts_quarter + FROM + agadmin.user_requested_scan AS urs + LEFT JOIN store_apps AS sa ON - urs.store_id = sa.store_id - LEFT JOIN app_global_metrics_latest AS agm - ON sa.id = agm.store_app - LEFT JOIN latest_success_version_codes AS lsvc + urs.store_id = sa.store_id + LEFT JOIN app_global_metrics_latest AS agm ON - sa.id = lsvc.store_app - LEFT JOIN latest_version_codes AS lvc + sa.id = agm.store_app + LEFT JOIN latest_success_version_codes AS lsvc ON - sa.id = lvc.store_app - LEFT JOIN faily_downloads_monthly AS fd + sa.id = lsvc.store_app + LEFT JOIN latest_version_codes AS lvc ON - sa.id = fd.store_app - LEFT JOIN faily_downloads_quarter AS fdq + sa.id = lvc.store_app + LEFT JOIN faily_downloads_monthly AS fd ON - sa.id = fdq.store_app - WHERE - ( - ( - lsvc.created_at < urs.created_at - AND ( - ( - sa.store_last_updated > lsvc.created_at - AND lsvc.created_at > '2025-05-01' - ) - OR lsvc.created_at < '2025-05-01' - ) - ) - OR lsvc.created_at IS NULL - ) - AND ( - lvc.updated_at < current_date - interval '1 days' - OR lvc.updated_at IS NULL - ) - AND sa.store = :store - AND sa.free - -- random apps requested directly BY users NOT FOUND ON store - AND sa.name IS NOT NULL - ORDER BY - sa.id ASC, - urs.created_at DESC + sa.id = fd.store_app + LEFT JOIN faily_downloads_quarter AS fdq + ON + sa.id = fdq.store_app + WHERE + ( + ( + lsvc.created_at < urs.created_at + AND ( + ( + sa.store_last_updated > lsvc.created_at + AND lsvc.created_at > '2025-05-01' + ) + OR lsvc.created_at < '2025-05-01' + ) + ) + OR lsvc.created_at IS NULL + ) + AND ( + lvc.updated_at < current_date - INTERVAL '1 days' + OR lvc.updated_at IS NULL + ) + AND sa.store = :store + AND sa.free + -- random apps requested directly BY users NOT FOUND ON store + AND sa.name IS NOT NULL + ORDER BY + sa.id ASC, + urs.created_at DESC ), -combined AS ( - SELECT - store_app, - store_id, - name, - installs, - rating_count, - failed_attempts_month, - failed_attempts_quarter, - last_crawl_result, - 'user' AS mysource, - last_download_attempt, - last_downloaded_at - FROM - user_requested_apps_crawl - WHERE - failed_attempts_month < 3 - UNION ALL - SELECT - store_app, - store_id, - name, - installs, - rating_count, - failed_attempts_month, - failed_attempts_quarter, - last_crawl_result, - CASE - WHEN - store_app IN (SELECT ga.store_app FROM growth_apps AS ga) + combined AS ( + SELECT + store_app, + store_id, + name, + installs, + rating_count, + failed_attempts_month, + failed_attempts_quarter, + last_crawl_result, + 'user' AS mysource, + last_download_attempt, + last_downloaded_at + FROM + user_requested_apps_crawl + WHERE + failed_attempts_month < 3 +UNION ALL + SELECT + store_app, + store_id, + name, + installs, + rating_count, + failed_attempts_month, + failed_attempts_quarter, + last_crawl_result, + CASE + WHEN + store_app IN ( + SELECT + ga.store_app + FROM + growth_apps AS ga + ) THEN 'top_scheduled' - ELSE 'scheduled' - END AS mysource, - last_download_attempt, - last_downloaded_at - FROM - scheduled_apps_crawl - WHERE - failed_attempts_month < 2 AND failed_attempts_quarter < 4 - AND ( - last_downloaded_at IS NULL - OR last_downloaded_at < current_date - interval '120 days' - ) + ELSE 'scheduled' + END AS mysource, + last_download_attempt, + last_downloaded_at + FROM + scheduled_apps_crawl + WHERE + failed_attempts_month < 2 + AND failed_attempts_quarter < 4 + AND ( + last_downloaded_at IS NULL + OR last_downloaded_at < current_date - INTERVAL '120 days' + ) ), -final_selection AS ( - SELECT - *, - ( - coalesce( + final_selection AS ( + SELECT + *, + ( + COALESCE( date_part('day', current_date - last_download_attempt), 10000 ) - + coalesce(date_part('day', current_date - last_downloaded_at), 100) - ) / 2 - * greatest( - coalesce(installs, 0), - coalesce(rating_count::bigint, 0) * 50 + + COALESCE(date_part('day', current_date - last_downloaded_at), 100) + ) / 2 + * GREATEST( + COALESCE(installs, 0), + COALESCE(rating_count::bigint, 0) * 50 ) AS mynum, - row_number() OVER ( - ORDER BY - mysource DESC, - ( - coalesce( + ROW_NUMBER() OVER ( + ORDER BY + mysource DESC, + ( + COALESCE( date_part('day', current_date - last_download_attempt), 10000 ) - + coalesce( + + COALESCE( date_part('day', current_date - last_downloaded_at), 100 ) - ) / 2 - * greatest( - coalesce(installs, 0), - coalesce(rating_count::bigint, 0) * 50 + ) / 2 + * GREATEST( + COALESCE(installs, 0), + COALESCE(rating_count::bigint, 0) * 50 ) DESC NULLS LAST - ) AS app_rank - FROM - combined + ) AS app_rank + FROM + combined ) -SELECT * + SELECT + * FROM - final_selection; + final_selection; From 7a1700f678eaac54c14a3b66f5314016e9d2bd83 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Fri, 30 Jan 2026 10:43:46 +0800 Subject: [PATCH 46/81] Use new logging table to cut down on query time for apps to keyword extract --- .../sql/query_apps_to_process_keywords.sql | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/adscrawler/dbcon/sql/query_apps_to_process_keywords.sql b/adscrawler/dbcon/sql/query_apps_to_process_keywords.sql index 4256a754..35273f6f 100644 --- a/adscrawler/dbcon/sql/query_apps_to_process_keywords.sql +++ b/adscrawler/dbcon/sql/query_apps_to_process_keywords.sql @@ -1,6 +1,5 @@ -WITH latest_descriptions AS ( - SELECT DISTINCT ON - (sad.store_app) + WITH latest_descriptions AS ( + SELECT DISTINCT ON (sad.store_app) sad.id AS description_id, sad.store_app, sad.description_short, @@ -14,50 +13,52 @@ WITH latest_descriptions AS ( sad.store_app ASC, sad.updated_at DESC ), -latest_extractions AS ( + latest_extractions AS ( SELECT DISTINCT ON - (ak.store_app) - ak.store_app, - ak.extracted_at AS last_extracted_at + (adke.description_id) + adke.description_id, + adke.store_app, + adke.extracted_at AS app_keywords_extracted_at FROM - app_keywords_extracted AS ak + logging.app_description_keywords_extracted AS adke ORDER BY - ak.store_app ASC, - ak.extracted_at DESC + adke.description_id ASC, + adke.extracted_at DESC ), base AS ( SELECT ld.store_app, ld.description_id, - le.last_extracted_at, + le.app_keywords_extracted_at, ld.description_short, ld.description FROM latest_descriptions AS ld LEFT JOIN latest_extractions AS le ON - ld.store_app = le.store_app - WHERE le.last_extracted_at IS NULL OR ( - ld.description_last_updated > le.last_extracted_at - AND le.last_extracted_at <= NOW() - INTERVAL '7 days' + ld.description_id = le.description_id + WHERE +le.app_keywords_extracted_at IS NULL +OR ld.description_last_updated > le.app_keywords_extracted_at +OR le.app_keywords_extracted_at <= NOW() - INTERVAL '31 days' ) ) -SELECT +SELECT b.store_app, b.description_id, - b.last_extracted_at, + b.app_keywords_extracted_at, b.description_short, b.description FROM base AS b INNER JOIN app_global_metrics_latest AS agml ON b.store_app = agml.store_app ORDER BY - (CASE WHEN b.last_extracted_at IS NULL THEN 1 ELSE 0 END) DESC, -- always crawl new ones first + (CASE WHEN b.app_keywords_extracted_at IS NULL THEN 1 ELSE 0 END) DESC, -- always crawl new ones first ( GREATEST( COALESCE(agml.installs, 0), COALESCE(agml.rating_count::BIGINT, 0) ) - * (10 * COALESCE(EXTRACT(DAY FROM (NOW() - b.last_extracted_at)), 1)) + * (10 * COALESCE(EXTRACT(DAY FROM (NOW() - b.app_keywords_extracted_at)), 1)) ) DESC LIMIT :mylimit; From f2782f165ecd2aecc7d685a1cea2b4424b24e7d9 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Fri, 30 Jan 2026 10:44:11 +0800 Subject: [PATCH 47/81] Add optional dependencies related to keyword cleaning --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 325e8398..87838216 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ dependencies = [ [project.optional-dependencies] -dev = ["pre-commit", "pytest","scikit-learn", "spacy" ] +dev = ["pre-commit", "pytest","scikit-learn", "spacy", "emoji", "tqdm" ] [build-system] From 458c607dbe35b8e31dbc3290447f8c6d487cd654 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Fri, 30 Jan 2026 10:44:31 +0800 Subject: [PATCH 48/81] Update query apps to download logic --- .../dbcon/sql/query_apps_to_download.sql | 476 +++++++++--------- 1 file changed, 237 insertions(+), 239 deletions(-) diff --git a/adscrawler/dbcon/sql/query_apps_to_download.sql b/adscrawler/dbcon/sql/query_apps_to_download.sql index 695f50e1..f7708999 100644 --- a/adscrawler/dbcon/sql/query_apps_to_download.sql +++ b/adscrawler/dbcon/sql/query_apps_to_download.sql @@ -1,281 +1,279 @@ WITH latest_version_codes AS ( - SELECT - DISTINCT ON - (store_app) + SELECT DISTINCT ON + (store_app) id, - store_app, - version_code, - updated_at, - crawl_result - FROM - version_codes - ORDER BY - store_app ASC, - updated_at DESC, - string_to_array(version_code, '.')::bigint [] DESC + store_app, + version_code, + updated_at, + crawl_result + FROM + version_codes + ORDER BY + store_app ASC, + updated_at DESC, + string_to_array(version_code, '.')::bigint [] DESC ), latest_success_version_codes AS ( - SELECT - DISTINCT ON - (store_app) + SELECT DISTINCT ON + (store_app) id, - store_app, - version_code, - created_at, - updated_at, - crawl_result - FROM - version_codes - WHERE - crawl_result = 1 - ORDER BY - store_app ASC, - updated_at DESC, - string_to_array(version_code, '.')::bigint [] DESC + store_app, + version_code, + created_at, + updated_at, + crawl_result + FROM + version_codes + WHERE + crawl_result = 1 + ORDER BY + store_app ASC, + updated_at DESC, + string_to_array(version_code, '.')::bigint [] DESC ), faily_downloads_monthly AS ( - SELECT - store_app, - count(*) AS attempt_count - FROM - logging.store_app_downloads - WHERE - crawl_result != 1 - AND updated_at >= current_date - INTERVAL '30 days' - GROUP BY - store_app + SELECT + store_app, + count(*) AS attempt_count + FROM + logging.store_app_downloads + WHERE + crawl_result != 1 + AND updated_at >= current_date - interval '30 days' + GROUP BY + store_app ), faily_downloads_quarter AS ( - SELECT - store_app, - count(*) AS attempt_count - FROM - logging.store_app_downloads - WHERE - crawl_result != 1 - AND updated_at >= current_date - INTERVAL '90 days' - GROUP BY - store_app + SELECT + store_app, + count(*) AS attempt_count + FROM + logging.store_app_downloads + WHERE + crawl_result != 1 + AND updated_at >= current_date - interval '90 days' + GROUP BY + store_app ), growth_apps AS ( - SELECT - sa.id AS store_app, - saz.store_id - FROM - frontend.store_apps_z_scores AS saz - LEFT JOIN store_apps AS sa ON - saz.store_id = sa.store_id + SELECT + sa.id AS store_app, + saz.store_id + FROM + frontend.store_apps_z_scores AS saz + LEFT JOIN store_apps AS sa ON + saz.store_id = sa.store_id ), scheduled_apps_crawl AS ( - SELECT - dc.store_app, - dc.store_id, - dc.name, - dc.installs, - dc.rating_count, - vc.crawl_result AS last_crawl_result, - vc.updated_at AS last_download_attempt, - lsvc.created_at AS last_downloaded_at, - COALESCE(fd.attempt_count, 0) AS failed_attempts_month, - COALESCE(fdq.attempt_count, 0) AS failed_attempts_quarter - FROM - store_apps_in_latest_rankings AS dc - LEFT JOIN latest_version_codes AS vc + SELECT + dc.store_app, + dc.store_id, + dc.name, + dc.installs, + dc.rating_count, + vc.crawl_result AS last_crawl_result, + vc.updated_at AS last_download_attempt, + lsvc.created_at AS last_downloaded_at, + coalesce(fd.attempt_count, 0) AS failed_attempts_month, + coalesce(fdq.attempt_count, 0) AS failed_attempts_quarter + FROM + store_apps_in_latest_rankings AS dc + LEFT JOIN latest_version_codes AS vc + ON + dc.store_app = vc.store_app + LEFT JOIN latest_success_version_codes AS lsvc ON - dc.store_app = vc.store_app - LEFT JOIN latest_success_version_codes AS lsvc + dc.store_app = lsvc.store_app + LEFT JOIN faily_downloads_monthly AS fd ON - dc.store_app = lsvc.store_app - LEFT JOIN faily_downloads_monthly AS fd + vc.store_app = fd.store_app + LEFT JOIN faily_downloads_quarter AS fdq ON - vc.store_app = fd.store_app - LEFT JOIN faily_downloads_quarter AS fdq + vc.store_app = fdq.store_app + LEFT JOIN store_apps AS sa ON - vc.store_app = fdq.store_app - LEFT JOIN store_apps sa ON - dc.store_app = sa.id - WHERE - dc.store = :store - AND ( - vc.updated_at IS NULL - OR + dc.store_app = sa.id + WHERE + dc.store = :store + AND ( + vc.updated_at IS NULL + OR ( - ( - -- never downloaded - lsvc.created_at IS NULL - -- success not downloaded > x days and store recently updated - OR ( - lsvc.updated_at < current_date - INTERVAL '120 days' - AND ( - sa.store_last_updated > current_date - INTERVAL '90 days' - OR sa.store_last_updated IS NULL - ) - ) - ) - OR - -- Retry failing every couple days, including same x days from above ( - lsvc.created_at IS NULL - OR lsvc.created_at < current_date - INTERVAL '120 days' - AND ( - sa.store_last_updated > current_date - INTERVAL '90 days' - OR sa.store_last_updated IS NULL - ) - AND ( - vc.crawl_result IN ( - 2, 3, 4 - ) - AND vc.updated_at < current_date - INTERVAL '2 days' - ) - ) - ) - ) + -- never downloaded + lsvc.created_at IS NULL + -- success not downloaded > x days and store recently updated + OR ( + lsvc.updated_at < current_date - interval '120 days' + AND ( + sa.store_last_updated + > current_date - interval '90 days' + OR sa.store_last_updated IS NULL + ) + ) + ) + OR + -- Retry failing every couple days, including same x days from above + ( + lsvc.created_at IS NULL + OR lsvc.created_at < current_date - interval '120 days' + AND ( + sa.store_last_updated + > current_date - interval '90 days' + OR sa.store_last_updated IS NULL + ) + AND ( + vc.crawl_result IN ( + 2, 3, 4 + ) + AND vc.updated_at < current_date - interval '2 days' + ) + ) + ) + ) ), - user_requested_apps_crawl AS ( - SELECT - DISTINCT ON - (sa.id) +user_requested_apps_crawl AS ( + SELECT DISTINCT ON + (sa.id) sa.id AS store_app, - sa.store_id, - sa.name, - agm.installs, - agm.rating_count, - urs.created_at AS user_last_requested, - lvc.crawl_result AS last_crawl_result, - lvc.updated_at AS last_download_attempt, - lsvc.created_at AS last_downloaded_at, - COALESCE(fd.attempt_count, 0) AS failed_attempts_month, - COALESCE(fdq.attempt_count, 0) AS failed_attempts_quarter - FROM - agadmin.user_requested_scan AS urs - LEFT JOIN store_apps AS sa + sa.store_id, + sa.name, + agm.installs, + agm.rating_count, + urs.created_at AS user_last_requested, + lvc.crawl_result AS last_crawl_result, + lvc.updated_at AS last_download_attempt, + lsvc.created_at AS last_downloaded_at, + coalesce(fd.attempt_count, 0) AS failed_attempts_month, + coalesce(fdq.attempt_count, 0) AS failed_attempts_quarter + FROM + agadmin.user_requested_scan AS urs + LEFT JOIN store_apps AS sa ON - urs.store_id = sa.store_id - LEFT JOIN app_global_metrics_latest AS agm + urs.store_id = sa.store_id + LEFT JOIN app_global_metrics_latest AS agm ON - sa.id = agm.store_app - LEFT JOIN latest_success_version_codes AS lsvc + sa.id = agm.store_app + LEFT JOIN latest_success_version_codes AS lsvc ON - sa.id = lsvc.store_app - LEFT JOIN latest_version_codes AS lvc + sa.id = lsvc.store_app + LEFT JOIN latest_version_codes AS lvc ON - sa.id = lvc.store_app - LEFT JOIN faily_downloads_monthly AS fd + sa.id = lvc.store_app + LEFT JOIN faily_downloads_monthly AS fd ON - sa.id = fd.store_app - LEFT JOIN faily_downloads_quarter AS fdq + sa.id = fd.store_app + LEFT JOIN faily_downloads_quarter AS fdq ON - sa.id = fdq.store_app - WHERE - ( - ( - lsvc.created_at < urs.created_at - AND ( - ( - sa.store_last_updated > lsvc.created_at - AND lsvc.created_at > '2025-05-01' - ) - OR lsvc.created_at < '2025-05-01' - ) - ) - OR lsvc.created_at IS NULL - ) - AND ( - lvc.updated_at < current_date - INTERVAL '1 days' - OR lvc.updated_at IS NULL - ) - AND sa.store = :store - AND sa.free - -- random apps requested directly BY users NOT FOUND ON store - AND sa.name IS NOT NULL - ORDER BY - sa.id ASC, - urs.created_at DESC + sa.id = fdq.store_app + WHERE + ( + ( + lsvc.created_at < urs.created_at + AND ( + ( + sa.store_last_updated > lsvc.created_at + AND lsvc.created_at > '2025-05-01' + ) + OR lsvc.created_at < '2025-05-01' + ) + ) + OR lsvc.created_at IS NULL + ) + AND ( + lvc.updated_at < current_date - interval '1 days' + OR lvc.updated_at IS NULL + ) + AND sa.store = :store + AND sa.free + -- random apps requested directly BY users NOT FOUND ON store + AND sa.name IS NOT NULL + ORDER BY + sa.id ASC, + urs.created_at DESC ), - combined AS ( - SELECT - store_app, - store_id, - name, - installs, - rating_count, - failed_attempts_month, - failed_attempts_quarter, - last_crawl_result, - 'user' AS mysource, - last_download_attempt, - last_downloaded_at - FROM - user_requested_apps_crawl - WHERE - failed_attempts_month < 3 -UNION ALL - SELECT - store_app, - store_id, - name, - installs, - rating_count, - failed_attempts_month, - failed_attempts_quarter, - last_crawl_result, - CASE - WHEN +combined AS ( + SELECT + store_app, + store_id, + name, + installs, + rating_count, + failed_attempts_month, + failed_attempts_quarter, + last_crawl_result, + 'user' AS mysource, + last_download_attempt, + last_downloaded_at + FROM + user_requested_apps_crawl + WHERE + failed_attempts_month < 3 + UNION ALL + SELECT + store_app, + store_id, + name, + installs, + rating_count, + failed_attempts_month, + failed_attempts_quarter, + last_crawl_result, + CASE + WHEN store_app IN ( - SELECT - ga.store_app - FROM - growth_apps AS ga - ) + SELECT ga.store_app + FROM + growth_apps AS ga + ) THEN 'top_scheduled' - ELSE 'scheduled' - END AS mysource, - last_download_attempt, - last_downloaded_at - FROM - scheduled_apps_crawl - WHERE - failed_attempts_month < 2 - AND failed_attempts_quarter < 4 - AND ( - last_downloaded_at IS NULL - OR last_downloaded_at < current_date - INTERVAL '120 days' - ) + ELSE 'scheduled' + END AS mysource, + last_download_attempt, + last_downloaded_at + FROM + scheduled_apps_crawl + WHERE + failed_attempts_month < 2 + AND failed_attempts_quarter < 4 + AND ( + last_downloaded_at IS NULL + OR last_downloaded_at < current_date - interval '120 days' + ) ), - final_selection AS ( - SELECT - *, - ( - COALESCE( +final_selection AS ( + SELECT + *, + ( + coalesce( date_part('day', current_date - last_download_attempt), 10000 ) - + COALESCE(date_part('day', current_date - last_downloaded_at), 100) - ) / 2 - * GREATEST( - COALESCE(installs, 0), - COALESCE(rating_count::bigint, 0) * 50 + + coalesce(date_part('day', current_date - last_downloaded_at), 100) + ) / 2 + * greatest( + coalesce(installs, 0), + coalesce(rating_count::bigint, 0) * 50 ) AS mynum, - ROW_NUMBER() OVER ( - ORDER BY - mysource DESC, - ( - COALESCE( + row_number() OVER ( + ORDER BY + mysource DESC, + ( + coalesce( date_part('day', current_date - last_download_attempt), 10000 ) - + COALESCE( + + coalesce( date_part('day', current_date - last_downloaded_at), 100 ) - ) / 2 - * GREATEST( - COALESCE(installs, 0), - COALESCE(rating_count::bigint, 0) * 50 + ) / 2 + * greatest( + coalesce(installs, 0), + coalesce(rating_count::bigint, 0) * 50 ) DESC NULLS LAST - ) AS app_rank - FROM - combined + ) AS app_rank + FROM + combined ) - SELECT - * +SELECT * FROM - final_selection; + final_selection; From ae4204048a0d26160da99f114f5013328f2bd065 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Fri, 30 Jan 2026 10:45:16 +0800 Subject: [PATCH 49/81] Working on new global keywords logic --- adscrawler/app_stores/process_keywords.py | 142 ++++++++++++++-------- 1 file changed, 88 insertions(+), 54 deletions(-) diff --git a/adscrawler/app_stores/process_keywords.py b/adscrawler/app_stores/process_keywords.py index c6ebee47..0cd6e72c 100644 --- a/adscrawler/app_stores/process_keywords.py +++ b/adscrawler/app_stores/process_keywords.py @@ -78,30 +78,52 @@ def clean_text(text: str) -> str: return re.sub(r"[^a-zA-Z\s]", ". ", text.lower()) -def clean_df_text(df: pd.DataFrame, column: str) -> pd.DataFrame: - # Note these are same as clean_text function - df[column] = ( - df[column] - .str.replace("\r", ". ") - .replace("\n", ". ") - .replace("\t", ". ") - .replace("\xa0", ". ") - .replace("•", ". ") - .replace("'", "") - .replace("’", "") - .replace("-", " ") - .replace(r"\bhttp\S*", "", regex=True) - .replace(r"\bwww\S*", "", regex=True) - .replace(r"[^a-zA-Z\s]", ". ", regex=True) - .str.lower() - ) - return df +def clean_series_text(s: pd.Series) -> pd.Series: + import emoji + + # 1. Replace emojis with periods + # emoji_regex = re.compile( + # "|".join(re.escape(e) for e in emoji.EMOJI_DATA.keys()) + # ) + # s = s.str.replace(emoji_regex, ". ", regex=True) + s = s.map(lambda x: emoji.replace_emoji(x, replace=". ")) + logger.info(f"Replaced emojis with periods") + + # 2. Convert all structural separators and whitespace-like noise to periods + # This handles \r, \n, \t, \xa0, and bullets in one pass + s = s.str.replace(r"[\r\n\t\xa0•]+", ". ", regex=True) + + # 3. Handle Apostrophes and Hyphens specifically (don't turn them into periods) + s = s.str.replace(r"['’]", "", regex=True) + s = s.str.replace(r"-", " ", regex=True) + + # 4. Remove URLs + s = s.str.replace(r"\b(?:http|www)\S*", "", regex=True, flags=re.IGNORECASE) + + # 5. Replace everything else that isn't a letter or space with a period + # We remove \s from the exclusion so newlines/tabs are finally nuked if any remain + s = s.str.replace(r"[^a-zA-Z ]", ". ", regex=True) + + # 6. Final Cleanup: lowercase and collapse multiple spaces/periods + # "Design. . . . Community" -> "design. community" + s = s.str.lower().str.replace(r"\s+", " ", regex=True).str.replace(r"\.+", ".", regex=True) + + return s -def clean_df_text(df: pd.DataFrame, column: str) -> pd.DataFrame: - # 1. Extract the Series to work on it efficiently + +def clean_df_text(df: pd.DataFrame, column: str, lang='en') -> pd.DataFrame: + import emoji s = df[column].astype(str) + # 1. Replace emojis with periods + # emoji_regex = re.compile( + # "|".join(re.escape(e) for e in emoji.EMOJI_DATA.keys()) + # ) + # s = s.str.replace(emoji_regex, ". ", regex=True) + s = s.map(lambda x: emoji.replace_emoji(x, replace=". ")) + logger.info(f"Replaced emojis with periods") + # 2. Convert all structural separators and whitespace-like noise to periods # This handles \r, \n, \t, \xa0, and bullets in one pass s = s.str.replace(r"[\r\n\t\xa0•]+", ". ", regex=True) @@ -128,6 +150,8 @@ def clean_df_text(df: pd.DataFrame, column: str) -> pd.DataFrame: return df + + def count_tokens(phrase: str) -> int: """Count the number of tokens in a phrase.""" from nltk.tokenize import word_tokenize @@ -275,35 +299,6 @@ def extract_unique_app_keywords_from_text( return combined_keywords -# def pos_filter_descriptions(texts: pd.Series) -> list[str]: -# """Batch processes text to keep only NOUN, PROPN, and ADJ.""" -# import spacy -# #spacy.cli.download("en_core_web_sm") -# # Load model once, disable what we don't need for speed -# nlp = spacy.load("en_core_web_sm", disable=["parser", "ner", "lemmatizer"]) -# # Note: We keep the lemmatizer if you want 'games' -> 'game', -# # but for raw speed, you can disable it too. - -# processed_texts = [] -# # nlp.pipe processes in batches and is much faster than .apply() -# for doc in nlp.pipe(texts, batch_size=1000, n_process=-1): # -1 uses all cores -# tokens = [ -# token.text.lower() -# for token in doc -# if token.pos_ in {"NOUN", "PROPN", "ADJ"} and not token.is_stop -# ] -# processed_texts.append(" ".join(tokens)) -# return processed_texts - -# 2000/4 = 15000 -# 1000/8 = 26000 -# 2000/8 = oom -# 200/14 = 30000 -# 1000/14 = oom -# 600/14 = 21000 -# 800/12 = 24000 - - def pos_filter_descriptions(texts: pd.Series, batch_size=1000) -> list[str]: # Load light model; disable everything but the tagger (for POS) and lemmatizer import spacy @@ -325,12 +320,21 @@ def pos_filter_descriptions(texts: pd.Series, batch_size=1000) -> list[str]: return processed_texts + + + + + + + + def get_global_keywords(database_connection: PostgresCon) -> list[str]: """Get the global keywords from the database. NOTE: This takes about ~5-8GB of RAM for 50k keywords and 200k descriptions. For now run manually. """ from sklearn.feature_extraction.text import TfidfVectorizer # noqa: PLC0415 + from multiprocessing import Pool mystopwords = get_stopwords() @@ -338,12 +342,24 @@ def get_global_keywords(database_connection: PostgresCon) -> list[str]: language_slug="en", database_connection=database_connection ) - df = pd.read_pickle("descriptions_df.pkl") - df = clean_df_text(df, "description") + # df = pd.read_pickle("descriptions_df.pkl") + + # Number of chunks + n_chunks = 8 + chunk_size = len(df) // n_chunks + 1 + chunks = [df['description'].iloc[i*chunk_size:(i+1)*chunk_size] for i in range(n_chunks)] + with Pool(n_chunks) as pool: + cleaned_chunks = pool.map(clean_series_text, chunks) + # Combine back into one Series + df['description'] = pd.concat(cleaned_chunks).reset_index(drop=True) + # df.to_pickle("descriptions_df_cleaned.pkl") - df = pd.read_pickle("descriptions_df_cleaned.pkl") + # df = pd.read_pickle("descriptions_df_cleaned.pkl") + df["description"] = pos_filter_descriptions(df["description"]) + # df.to_pickle("descriptions_df_cleaned_pos_filtered.pkl") + # df = pd.read_pickle("descriptions_df_cleaned_pos_filtered.pkl") vectorizer = TfidfVectorizer( ngram_range=(1, 3), # Include 1-grams, 2-grams, 3-grams @@ -361,7 +377,7 @@ def get_global_keywords(database_connection: PostgresCon) -> list[str]: keyword_scores = list(zip(feature_names, global_scores, strict=False)) keyword_scores.sort(key=lambda x: x[1], reverse=True) global_keywords = [kw for kw, score in keyword_scores if kw not in mystopwords] - return global_keywords + return df, global_keywords def insert_global_keywords(database_connection: PostgresCon) -> None: @@ -387,6 +403,10 @@ def insert_global_keywords(database_connection: PostgresCon) -> None: table_name = "keywords_base" insert_columns = ["keyword_id"] key_columns = ["keyword_id"] + + keywords_df.head() + + # Replace old base keywords keywords_df.to_sql( name=table_name, con=database_connection.engine, @@ -412,7 +432,9 @@ def extract_app_keywords_from_descriptions( database_connection: PostgresCon, limit: int ) -> None: """Process keywords for app descriptions.""" + description_df = query_apps_to_process_keywords(database_connection, limit=limit) + keywords_base = query_keywords_base(database_connection) keywords_base["keyword_text"] = ( " " + keywords_base["keyword_text"].str.lower() + " " @@ -424,7 +446,7 @@ def extract_app_keywords_from_descriptions( + description_df["description"] + " " ).str.lower() - description_df = clean_df_text(description_df, "description_text") + description_df["description_text"] = clean_series_text(description_df["description_text"]) all_keywords_dfs = [] logger.info(f"Processing {len(description_df)} app descriptions") for _i, row in description_df.iterrows(): @@ -458,3 +480,15 @@ def extract_app_keywords_from_descriptions( delete_by_keys=["store_app"], delete_keys_have_duplicates=True, ) + table_name = "app_description_keywords_extracted" + apps_extracted_df = main_keywords_df[['store_app', 'description_id', 'extracted_at']].drop_duplicates() + apps_extracted_df["extracted_at"] = apps_extracted_df["extracted_at"] + apps_extracted_df.to_sql( + name=table_name, + con=database_connection.engine, + if_exists="append", + index=False, + schema="logging", + ) + + From b1b457816dcc8e74ed120c0190930029910fca29 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Fri, 30 Jan 2026 11:30:33 +0800 Subject: [PATCH 50/81] Better processing of app keyword extraction --- adscrawler/app_stores/process_keywords.py | 47 +++++++++---------- .../sql/query_apps_to_process_keywords.sql | 24 ++++++---- 2 files changed, 37 insertions(+), 34 deletions(-) diff --git a/adscrawler/app_stores/process_keywords.py b/adscrawler/app_stores/process_keywords.py index 0cd6e72c..e8add5a8 100644 --- a/adscrawler/app_stores/process_keywords.py +++ b/adscrawler/app_stores/process_keywords.py @@ -87,7 +87,7 @@ def clean_series_text(s: pd.Series) -> pd.Series: # ) # s = s.str.replace(emoji_regex, ". ", regex=True) s = s.map(lambda x: emoji.replace_emoji(x, replace=". ")) - logger.info(f"Replaced emojis with periods") + logger.info("Replaced emojis with periods") # 2. Convert all structural separators and whitespace-like noise to periods # This handles \r, \n, \t, \xa0, and bullets in one pass @@ -106,14 +106,18 @@ def clean_series_text(s: pd.Series) -> pd.Series: # 6. Final Cleanup: lowercase and collapse multiple spaces/periods # "Design. . . . Community" -> "design. community" - s = s.str.lower().str.replace(r"\s+", " ", regex=True).str.replace(r"\.+", ".", regex=True) + s = ( + s.str.lower() + .str.replace(r"\s+", " ", regex=True) + .str.replace(r"\.+", ".", regex=True) + ) return s - -def clean_df_text(df: pd.DataFrame, column: str, lang='en') -> pd.DataFrame: +def clean_df_text(df: pd.DataFrame, column: str, lang="en") -> pd.DataFrame: import emoji + s = df[column].astype(str) # 1. Replace emojis with periods @@ -122,7 +126,7 @@ def clean_df_text(df: pd.DataFrame, column: str, lang='en') -> pd.DataFrame: # ) # s = s.str.replace(emoji_regex, ". ", regex=True) s = s.map(lambda x: emoji.replace_emoji(x, replace=". ")) - logger.info(f"Replaced emojis with periods") + logger.info("Replaced emojis with periods") # 2. Convert all structural separators and whitespace-like noise to periods # This handles \r, \n, \t, \xa0, and bullets in one pass @@ -150,8 +154,6 @@ def clean_df_text(df: pd.DataFrame, column: str, lang='en') -> pd.DataFrame: return df - - def count_tokens(phrase: str) -> int: """Count the number of tokens in a phrase.""" from nltk.tokenize import word_tokenize @@ -320,22 +322,15 @@ def pos_filter_descriptions(texts: pd.Series, batch_size=1000) -> list[str]: return processed_texts - - - - - - - - def get_global_keywords(database_connection: PostgresCon) -> list[str]: """Get the global keywords from the database. NOTE: This takes about ~5-8GB of RAM for 50k keywords and 200k descriptions. For now run manually. """ - from sklearn.feature_extraction.text import TfidfVectorizer # noqa: PLC0415 from multiprocessing import Pool + from sklearn.feature_extraction.text import TfidfVectorizer # noqa: PLC0415 + mystopwords = get_stopwords() df = query_all_store_app_descriptions( @@ -347,16 +342,18 @@ def get_global_keywords(database_connection: PostgresCon) -> list[str]: # Number of chunks n_chunks = 8 chunk_size = len(df) // n_chunks + 1 - chunks = [df['description'].iloc[i*chunk_size:(i+1)*chunk_size] for i in range(n_chunks)] + chunks = [ + df["description"].iloc[i * chunk_size : (i + 1) * chunk_size] + for i in range(n_chunks) + ] with Pool(n_chunks) as pool: cleaned_chunks = pool.map(clean_series_text, chunks) # Combine back into one Series - df['description'] = pd.concat(cleaned_chunks).reset_index(drop=True) + df["description"] = pd.concat(cleaned_chunks).reset_index(drop=True) # df.to_pickle("descriptions_df_cleaned.pkl") # df = pd.read_pickle("descriptions_df_cleaned.pkl") - df["description"] = pos_filter_descriptions(df["description"]) # df.to_pickle("descriptions_df_cleaned_pos_filtered.pkl") # df = pd.read_pickle("descriptions_df_cleaned_pos_filtered.pkl") @@ -432,7 +429,7 @@ def extract_app_keywords_from_descriptions( database_connection: PostgresCon, limit: int ) -> None: """Process keywords for app descriptions.""" - + description_df = query_apps_to_process_keywords(database_connection, limit=limit) keywords_base = query_keywords_base(database_connection) @@ -446,7 +443,9 @@ def extract_app_keywords_from_descriptions( + description_df["description"] + " " ).str.lower() - description_df["description_text"] = clean_series_text(description_df["description_text"]) + description_df["description_text"] = clean_series_text( + description_df["description_text"] + ) all_keywords_dfs = [] logger.info(f"Processing {len(description_df)} app descriptions") for _i, row in description_df.iterrows(): @@ -481,7 +480,9 @@ def extract_app_keywords_from_descriptions( delete_keys_have_duplicates=True, ) table_name = "app_description_keywords_extracted" - apps_extracted_df = main_keywords_df[['store_app', 'description_id', 'extracted_at']].drop_duplicates() + apps_extracted_df = main_keywords_df[ + ["store_app", "description_id", "extracted_at"] + ].drop_duplicates() apps_extracted_df["extracted_at"] = apps_extracted_df["extracted_at"] apps_extracted_df.to_sql( name=table_name, @@ -490,5 +491,3 @@ def extract_app_keywords_from_descriptions( index=False, schema="logging", ) - - diff --git a/adscrawler/dbcon/sql/query_apps_to_process_keywords.sql b/adscrawler/dbcon/sql/query_apps_to_process_keywords.sql index 35273f6f..4d343f82 100644 --- a/adscrawler/dbcon/sql/query_apps_to_process_keywords.sql +++ b/adscrawler/dbcon/sql/query_apps_to_process_keywords.sql @@ -1,4 +1,4 @@ - WITH latest_descriptions AS ( +WITH latest_descriptions AS ( SELECT DISTINCT ON (sad.store_app) sad.id AS description_id, sad.store_app, @@ -13,9 +13,9 @@ sad.store_app ASC, sad.updated_at DESC ), - latest_extractions AS ( +latest_extractions AS ( SELECT DISTINCT ON - (adke.description_id) + (adke.description_id) adke.description_id, adke.store_app, adke.extracted_at AS app_keywords_extracted_at @@ -37,13 +37,12 @@ base AS ( latest_extractions AS le ON ld.description_id = le.description_id - WHERE -le.app_keywords_extracted_at IS NULL -OR ld.description_last_updated > le.app_keywords_extracted_at -OR le.app_keywords_extracted_at <= NOW() - INTERVAL '31 days' - ) + WHERE + le.app_keywords_extracted_at IS NULL + OR ld.description_last_updated > le.app_keywords_extracted_at + OR le.app_keywords_extracted_at <= NOW() - INTERVAL '31 days' ) -SELECT +SELECT b.store_app, b.description_id, b.app_keywords_extracted_at, @@ -59,6 +58,11 @@ ORDER BY COALESCE(agml.installs, 0), COALESCE(agml.rating_count::BIGINT, 0) ) - * (10 * COALESCE(EXTRACT(DAY FROM (NOW() - b.app_keywords_extracted_at)), 1)) + * ( + 10 + * COALESCE( + EXTRACT(DAY FROM (NOW() - b.app_keywords_extracted_at)), 1 + ) + ) ) DESC LIMIT :mylimit; From b04e01946f1d3044547622804ec14d70615c0a64 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sat, 31 Jan 2026 13:46:05 +0800 Subject: [PATCH 51/81] Allow bad version strings --- adscrawler/packages/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adscrawler/packages/storage.py b/adscrawler/packages/storage.py index e9633e3b..fdd8ee5d 100644 --- a/adscrawler/packages/storage.py +++ b/adscrawler/packages/storage.py @@ -467,7 +467,7 @@ def download_app_by_store_id( df = df[~(df["version_code"] == "failed")] if df.empty: logger.error(f"S3 only has failed apk for {store_id=}, no version_code") - if version_str: + if version_str or version_str == -1: df = df[df["version_code"] == version_str] final_version_str = version_str else: From ba68121c9e6fc540d544933a51fc94dd4ec3111f Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sat, 31 Jan 2026 13:53:23 +0800 Subject: [PATCH 52/81] Allow bad version strings --- adscrawler/packages/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adscrawler/packages/storage.py b/adscrawler/packages/storage.py index fdd8ee5d..e74cb475 100644 --- a/adscrawler/packages/storage.py +++ b/adscrawler/packages/storage.py @@ -467,7 +467,7 @@ def download_app_by_store_id( df = df[~(df["version_code"] == "failed")] if df.empty: logger.error(f"S3 only has failed apk for {store_id=}, no version_code") - if version_str or version_str == -1: + if version_str or version_str == '-1': df = df[df["version_code"] == version_str] final_version_str = version_str else: From 0fde485459e081ce92573f7104f997ddd931f740 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sat, 31 Jan 2026 13:59:45 +0800 Subject: [PATCH 53/81] Allow bad version strings --- adscrawler/packages/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adscrawler/packages/storage.py b/adscrawler/packages/storage.py index e74cb475..bf4c682f 100644 --- a/adscrawler/packages/storage.py +++ b/adscrawler/packages/storage.py @@ -467,7 +467,7 @@ def download_app_by_store_id( df = df[~(df["version_code"] == "failed")] if df.empty: logger.error(f"S3 only has failed apk for {store_id=}, no version_code") - if version_str or version_str == '-1': + if version_str and version_str != '-1': df = df[df["version_code"] == version_str] final_version_str = version_str else: From 5d6a4f3f7ff4f9098eab713974acd9255fac8080 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Mon, 2 Feb 2026 11:14:23 +0800 Subject: [PATCH 54/81] Clean weekly rank table after importing data --- adscrawler/app_stores/process_from_s3.py | 7 ++++-- adscrawler/dbcon/queries.py | 28 ++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/adscrawler/app_stores/process_from_s3.py b/adscrawler/app_stores/process_from_s3.py index a4f21e5b..e49ed99a 100644 --- a/adscrawler/app_stores/process_from_s3.py +++ b/adscrawler/app_stores/process_from_s3.py @@ -16,6 +16,7 @@ ) from adscrawler.dbcon.queries import ( delete_and_insert, + clean_app_ranks_weekly_table, query_categories, query_collections, query_countries, @@ -540,6 +541,7 @@ def import_ranks_from_s3( period=period, s3_config_key=s3_config_key, ) + clean_app_ranks_weekly_table(database_connection) def process_ranks_from_s3( @@ -613,9 +615,10 @@ def process_ranks_from_s3( store_id_map.set_index("store_id")["id"].to_dict() ) wdf = wdf.drop(columns=["store_id", "collection", "category"]) + table_name=f"store_app_ranks_{table_suffix}" upsert_df( df=wdf, - table_name=f"store_app_ranks_{table_suffix}", + table_name=table_name, schema="frontend", database_connection=database_connection, key_columns=[ @@ -634,7 +637,7 @@ def process_ranks_from_s3( "store_app", "best_rank", ], - ) + ) def query_store_collection_ranks( diff --git a/adscrawler/dbcon/queries.py b/adscrawler/dbcon/queries.py index 754feade..02617f5f 100644 --- a/adscrawler/dbcon/queries.py +++ b/adscrawler/dbcon/queries.py @@ -404,6 +404,34 @@ def upsert_df( return return_df +def clean_app_ranks_weekly_table(database_connection: PostgresCon): + # Use a smaller limit to prevent long locks + batch_size = 100000 + del_query = f""" + DELETE FROM frontend.store_app_ranks_weekly + WHERE ctid IN ( + SELECT ctid FROM frontend.store_app_ranks_weekly + WHERE crawled_date < CURRENT_DATE - INTERVAL '14 days' + AND EXTRACT(DOW FROM crawled_date) != 1 + LIMIT {batch_size} + ); + """ + raw_conn = database_connection.engine.raw_connection() + # Ensure we aren't in an implicit transaction block that stays open + raw_conn.set_session(autocommit=True) + try: + with raw_conn.cursor() as cur: + while True: + cur.execute(del_query) + rows_affected = cur.rowcount + print(f"Deleted {rows_affected} rows...") + + if rows_affected == 0: + break + finally: + raw_conn.close() + + def delete_and_insert( df: pd.DataFrame, table_name: str, From 7afef485293f33259100590c8ed81b84dd377640 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Mon, 2 Feb 2026 12:32:00 +0800 Subject: [PATCH 55/81] Clean weekly rank table after importing data --- adscrawler/app_stores/process_from_s3.py | 6 +++--- adscrawler/dbcon/queries.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/adscrawler/app_stores/process_from_s3.py b/adscrawler/app_stores/process_from_s3.py index e49ed99a..92ecc06c 100644 --- a/adscrawler/app_stores/process_from_s3.py +++ b/adscrawler/app_stores/process_from_s3.py @@ -15,8 +15,8 @@ get_db_connection, ) from adscrawler.dbcon.queries import ( - delete_and_insert, clean_app_ranks_weekly_table, + delete_and_insert, query_categories, query_collections, query_countries, @@ -615,7 +615,7 @@ def process_ranks_from_s3( store_id_map.set_index("store_id")["id"].to_dict() ) wdf = wdf.drop(columns=["store_id", "collection", "category"]) - table_name=f"store_app_ranks_{table_suffix}" + table_name = f"store_app_ranks_{table_suffix}" upsert_df( df=wdf, table_name=table_name, @@ -637,7 +637,7 @@ def process_ranks_from_s3( "store_app", "best_rank", ], - ) + ) def query_store_collection_ranks( diff --git a/adscrawler/dbcon/queries.py b/adscrawler/dbcon/queries.py index 02617f5f..d749e209 100644 --- a/adscrawler/dbcon/queries.py +++ b/adscrawler/dbcon/queries.py @@ -406,7 +406,7 @@ def upsert_df( def clean_app_ranks_weekly_table(database_connection: PostgresCon): # Use a smaller limit to prevent long locks - batch_size = 100000 + batch_size = 100000 del_query = f""" DELETE FROM frontend.store_app_ranks_weekly WHERE ctid IN ( @@ -418,14 +418,14 @@ def clean_app_ranks_weekly_table(database_connection: PostgresCon): """ raw_conn = database_connection.engine.raw_connection() # Ensure we aren't in an implicit transaction block that stays open - raw_conn.set_session(autocommit=True) + raw_conn.set_session(autocommit=True) try: with raw_conn.cursor() as cur: while True: cur.execute(del_query) rows_affected = cur.rowcount print(f"Deleted {rows_affected} rows...") - + if rows_affected == 0: break finally: From cfa04a23f040dcd070013b4a0bde2c777e046968 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Tue, 3 Feb 2026 16:08:52 +0800 Subject: [PATCH 56/81] New schema dump with moving mvs to using sdk ids inplace of company ids --- pg-ddl/schema/adtech/api_call_urls.sql | 8 +- pg-ddl/schema/adtech/categories.sql | 8 +- ..._store_apps_companies_2025_h1__matview.sql | 128 +++ ..._store_apps_companies_2025_h2__matview.sql | 128 +++ ...combined_store_apps_companies__matview.sql | 15 +- ...d_store_apps_parent_companies__matview.sql | 8 +- pg-ddl/schema/adtech/companies.sql | 8 +- .../adtech/company_categories__matview.sql | 8 +- pg-ddl/schema/adtech/company_developers.sql | 8 +- .../schema/adtech/company_domain_mapping.sql | 8 +- .../adtech/company_mediation_adapters.sql | 59 ++ .../adtech/company_mediation_patterns.sql | 59 ++ .../adtech/company_sdk_strings__matview.sql | 8 +- .../company_share_change_2025__matview.sql | 114 +++ .../company_shares_2025_common__matview.sql | 84 ++ pg-ddl/schema/adtech/sdk_categories.sql | 8 +- pg-ddl/schema/adtech/sdk_packages.sql | 8 +- pg-ddl/schema/adtech/sdk_paths.sql | 8 +- pg-ddl/schema/adtech/sdks.sql | 8 +- ...store_app_sdk_strings_2025_h1__matview.sql | 59 ++ ...store_app_sdk_strings_2025_h2__matview.sql | 59 ++ .../adtech/store_app_sdk_strings__matview.sql | 8 +- pg-ddl/schema/adtech/url_redirect_chains.sql | 8 +- pg-ddl/schema/adtech/urls.sql | 8 +- .../adstxt_ad_domain_overview__matview.sql | 8 +- .../adstxt_entries_store_apps__matview.sql | 8 +- .../adstxt_publishers_overview__matview.sql | 8 +- .../advertiser_creative_rankings__matview.sql | 8 +- ...reative_rankings_recent_month__matview.sql | 8 +- .../advertiser_creatives__matview.sql | 8 +- .../frontend/api_call_countries__matview.sql | 8 +- .../app_keyword_rank_stats__matview.sql | 8 +- .../frontend/app_keyword_ranks_daily.sql | 8 +- .../frontend/apps_new_monthly__matview.sql | 76 +- .../frontend/apps_new_weekly__matview.sql | 76 +- .../frontend/apps_new_yearly__matview.sql | 75 +- .../frontend/category_tag_stats__matview.sql | 8 +- .../companies_apps_overview__matview.sql | 11 +- .../companies_category_stats__matview.sql | 8 +- .../companies_category_tag_stats__matview.sql | 8 +- ...anies_category_tag_type_stats__matview.sql | 8 +- .../companies_creative_rankings__matview.sql | 8 +- ...companies_open_source_percent__matview.sql | 8 +- ...mpanies_parent_category_stats__matview.sql | 8 +- ...ies_parent_category_tag_stats__matview.sql | 8 +- .../companies_sdks_overview__matview.sql | 8 +- .../company_domain_country__matview.sql | 8 +- .../company_domains_top_apps__matview.sql | 8 +- .../company_parent_top_apps__matview.sql | 14 +- .../frontend/company_top_apps__matview.sql | 14 +- .../frontend/keyword_scores__matview.sql | 15 +- .../latest_sdk_scanned_apps__matview.sql | 8 +- .../mediation_adapter_app_counts__matview.sql | 82 ++ .../store_app_api_companies__matview.sql | 8 +- .../store_app_ranks_best_monthly__matview.sql | 8 +- .../schema/frontend/store_app_ranks_daily.sql | 8 +- .../store_app_ranks_latest__matview.sql | 9 +- .../frontend/store_app_ranks_weekly.sql | 8 +- .../frontend/store_apps_overview__matview.sql | 15 +- .../frontend/store_apps_z_scores__matview.sql | 9 +- .../total_categories_app_counts__matview.sql | 8 +- pg-ddl/schema/full_db_dump.sql | 880 ++++++++++++++---- pg-ddl/schema/logging/app_country_crawls.sql | 8 +- .../app_description_keywords_extracted.sql | 59 ++ .../schema/logging/creative_scan_results.sql | 8 +- .../schema/logging/developers_crawled_at.sql | 8 +- pg-ddl/schema/logging/keywords_crawled_at.sql | 8 +- .../schema/logging/snapshot_pub_domains.sql | 8 +- pg-ddl/schema/logging/store_app_downloads.sql | 8 +- .../schema/logging/store_app_no_creatives.sql | 8 +- pg-ddl/schema/logging/store_app_sources.sql | 8 +- .../logging/store_app_waydroid_crawled_at.sql | 8 +- pg-ddl/schema/logging/store_apps_snapshot.sql | 8 +- .../logging/version_code_api_scan_results.sql | 8 +- .../public/ad_network_sdk_keys__matview.sql | 8 +- pg-ddl/schema/public/adstxt_crawl_results.sql | 8 +- pg-ddl/schema/public/api_calls.sql | 8 +- pg-ddl/schema/public/app_ads_entrys.sql | 8 +- pg-ddl/schema/public/app_ads_map.sql | 8 +- .../public/app_country_metrics_history.sql | 8 +- .../app_country_metrics_latest__matview.sql | 8 +- .../public/app_global_metrics_history.sql | 8 +- .../app_global_metrics_latest__matview.sql | 8 +- ...p_global_metrics_weekly_diffs__matview.sql | 8 +- .../schema/public/app_keywords_extracted.sql | 15 +- pg-ddl/schema/public/app_urls_map.sql | 8 +- .../public/category_mapping__matview.sql | 8 +- pg-ddl/schema/public/countries.sql | 8 +- pg-ddl/schema/public/crawl_results.sql | 8 +- .../public/crawl_scenario_country_config.sql | 8 +- pg-ddl/schema/public/crawl_scenarios.sql | 8 +- pg-ddl/schema/public/creative_assets.sql | 8 +- pg-ddl/schema/public/creative_records.sql | 8 +- .../public/developer_store_apps__matview.sql | 8 +- pg-ddl/schema/public/developers.sql | 8 +- pg-ddl/schema/public/domains.sql | 8 +- pg-ddl/schema/public/ip_geo_snapshots.sql | 8 +- pg-ddl/schema/public/keywords.sql | 8 +- pg-ddl/schema/public/keywords_base.sql | 8 +- pg-ddl/schema/public/languages.sql | 8 +- .../public/mv_app_categories__matview.sql | 8 +- .../public/pg_stat_statements__view.sql | 8 +- .../public/pg_stat_statements_info__view.sql | 8 +- pg-ddl/schema/public/platforms.sql | 8 +- .../public/store_app_z_scores__matview.sql | 8 +- .../public/store_app_z_scores_history.sql | 8 +- pg-ddl/schema/public/store_apps.sql | 8 +- .../schema/public/store_apps_descriptions.sql | 8 +- ...store_apps_in_latest_rankings__matview.sql | 8 +- pg-ddl/schema/public/store_categories.sql | 8 +- pg-ddl/schema/public/store_collections.sql | 8 +- pg-ddl/schema/public/stores.sql | 8 +- .../public/total_count_overview__matview.sql | 8 +- .../public/version_code_api_scan_results.sql | 8 +- .../public/version_code_sdk_scan_results.sql | 8 +- pg-ddl/schema/public/version_codes.sql | 8 +- pg-ddl/schema/public/version_details_map.sql | 8 +- pg-ddl/schema/public/version_manifests.sql | 8 +- pg-ddl/schema/public/version_strings.sql | 8 +- 119 files changed, 2096 insertions(+), 727 deletions(-) create mode 100644 pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql create mode 100644 pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql create mode 100644 pg-ddl/schema/adtech/company_mediation_adapters.sql create mode 100644 pg-ddl/schema/adtech/company_mediation_patterns.sql create mode 100644 pg-ddl/schema/adtech/company_share_change_2025__matview.sql create mode 100644 pg-ddl/schema/adtech/company_shares_2025_common__matview.sql create mode 100644 pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql create mode 100644 pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql create mode 100644 pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql create mode 100644 pg-ddl/schema/logging/app_description_keywords_extracted.sql diff --git a/pg-ddl/schema/adtech/api_call_urls.sql b/pg-ddl/schema/adtech/api_call_urls.sql index ff2c5f70..f2a26d81 100644 --- a/pg-ddl/schema/adtech/api_call_urls.sql +++ b/pg-ddl/schema/adtech/api_call_urls.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict KmaPiymVLTG0W4FUncbRdUH7NaMU2hHlS9fcrDsHSFtDdq35C2kHII7ZcY4BQ00 +\restrict ZvORijBFYR0LedFHWzgFb9bCrA5aTgXHKsccR4wkNqcfaaSyhZomsEggo5DQHqH --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -118,5 +118,5 @@ ALTER TABLE ONLY adtech.api_call_urls -- PostgreSQL database dump complete -- -\unrestrict KmaPiymVLTG0W4FUncbRdUH7NaMU2hHlS9fcrDsHSFtDdq35C2kHII7ZcY4BQ00 +\unrestrict ZvORijBFYR0LedFHWzgFb9bCrA5aTgXHKsccR4wkNqcfaaSyhZomsEggo5DQHqH diff --git a/pg-ddl/schema/adtech/categories.sql b/pg-ddl/schema/adtech/categories.sql index 6b9ea5de..0e3d9f87 100644 --- a/pg-ddl/schema/adtech/categories.sql +++ b/pg-ddl/schema/adtech/categories.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict jtpDDLOKcIdCzVdP9z1Hhqohdke2u1ty396V8vhAJ7S6NdNDa7UjwxTmFrdh4ae +\restrict Q5V3eLFsM8RIMvXEObyOHxZKuchZFeQJKOOF4Cnb2HPOrQ9spjndBOlUNMHnMHJ --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -62,5 +62,5 @@ ALTER TABLE ONLY adtech.categories -- PostgreSQL database dump complete -- -\unrestrict jtpDDLOKcIdCzVdP9z1Hhqohdke2u1ty396V8vhAJ7S6NdNDa7UjwxTmFrdh4ae +\unrestrict Q5V3eLFsM8RIMvXEObyOHxZKuchZFeQJKOOF4Cnb2HPOrQ9spjndBOlUNMHnMHJ diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql new file mode 100644 index 00000000..8f73918f --- /dev/null +++ b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql @@ -0,0 +1,128 @@ +-- +-- PostgreSQL database dump +-- + +\restrict YXpHTcLEvtI7UlH7BDZMEoYMgeZUgZdZ7bdCW2NFwH3R5dq4Oz0UjiybvxXA3ya + +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: combined_store_apps_companies_2025_h1; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres +-- + +CREATE MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h1 AS + WITH api_based_companies AS ( + SELECT DISTINCT saac.store_app, + cm.mapped_category AS app_category, + cdm.company_id, + c_1.parent_company_id AS parent_id, + 'api_call'::text AS tag_source, + COALESCE(cad_1.domain_name, (saac.tld_url)::character varying) AS ad_domain + FROM ((((((public.api_calls saac + LEFT JOIN public.store_apps sa_1 ON ((saac.store_app = sa_1.id))) + LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) + LEFT JOIN public.domains ad_1 ON ((saac.tld_url = (ad_1.domain_name)::text))) + LEFT JOIN adtech.company_domain_mapping cdm ON ((ad_1.id = cdm.domain_id))) + LEFT JOIN adtech.companies c_1 ON ((cdm.company_id = c_1.id))) + LEFT JOIN public.domains cad_1 ON ((c_1.domain_id = cad_1.id))) + WHERE ((saac.called_at >= '2025-01-01 00:00:00'::timestamp without time zone) AND (saac.called_at < '2025-07-01 00:00:00'::timestamp without time zone)) + ), developer_based_companies AS ( + SELECT DISTINCT sa_1.id AS store_app, + cm.mapped_category AS app_category, + cd.company_id, + d.domain_name AS ad_domain, + 'developer'::text AS tag_source, + COALESCE(c_1.parent_company_id, cd.company_id) AS parent_id + FROM ((((adtech.company_developers cd + LEFT JOIN public.store_apps sa_1 ON ((cd.developer_id = sa_1.developer))) + LEFT JOIN adtech.companies c_1 ON ((cd.company_id = c_1.id))) + LEFT JOIN public.domains d ON ((c_1.domain_id = d.id))) + LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) + ), sdk_based_companies AS ( + SELECT DISTINCT sasd.store_app, + cm.mapped_category AS app_category, + sac.company_id, + ad_1.domain_name AS ad_domain, + 'sdk'::text AS tag_source, + COALESCE(c_1.parent_company_id, sac.company_id) AS parent_id + FROM (((((adtech.store_app_sdk_strings_2025_h1 sasd + LEFT JOIN adtech.sdks sac ON ((sac.id = sasd.sdk_id))) + LEFT JOIN adtech.companies c_1 ON ((sac.company_id = c_1.id))) + LEFT JOIN public.domains ad_1 ON ((c_1.domain_id = ad_1.id))) + LEFT JOIN public.store_apps sa_1 ON ((sasd.store_app = sa_1.id))) + LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) + ), distinct_ad_and_pub_domains AS ( + SELECT DISTINCT pd.domain_name AS publisher_domain_url, + ad_1.domain_name AS ad_domain_url, + aae.relationship + FROM ((((public.app_ads_entrys aae + LEFT JOIN public.domains ad_1 ON ((aae.ad_domain = ad_1.id))) + LEFT JOIN public.app_ads_map aam ON ((aae.id = aam.app_ads_entry))) + LEFT JOIN public.domains pd ON ((aam.pub_domain = pd.id))) + LEFT JOIN public.adstxt_crawl_results pdcr ON ((pd.id = pdcr.domain_id))) + WHERE ((pdcr.crawled_at - aam.updated_at) < '01:00:00'::interval) + ), combined_sources AS ( + SELECT api_based_companies.store_app, + api_based_companies.app_category, + api_based_companies.company_id, + api_based_companies.parent_id, + api_based_companies.ad_domain, + api_based_companies.tag_source + FROM api_based_companies + UNION ALL + SELECT sdk_based_companies.store_app, + sdk_based_companies.app_category, + sdk_based_companies.company_id, + sdk_based_companies.parent_id, + sdk_based_companies.ad_domain, + sdk_based_companies.tag_source + FROM sdk_based_companies + ) + SELECT cs.ad_domain, + cs.store_app, + sa.category AS app_category, + c.id AS company_id, + COALESCE(c.parent_company_id, c.id) AS parent_id, + CASE + WHEN (sa.sdk_successful_last_crawled IS NOT NULL) THEN bool_or((cs.tag_source = 'sdk'::text)) + ELSE NULL::boolean + END AS sdk, + CASE + WHEN (sa.api_successful_last_crawled IS NOT NULL) THEN bool_or((cs.tag_source = 'api_call'::text)) + ELSE NULL::boolean + END AS api_call, + bool_or((cs.tag_source = 'app_ads_direct'::text)) AS app_ads_direct, + bool_or((cs.tag_source = 'app_ads_reseller'::text)) AS app_ads_reseller + FROM (((combined_sources cs + LEFT JOIN frontend.store_apps_overview sa ON ((cs.store_app = sa.id))) + LEFT JOIN public.domains ad ON (((cs.ad_domain)::text = (ad.domain_name)::text))) + LEFT JOIN adtech.companies c ON ((ad.id = c.domain_id))) + GROUP BY cs.ad_domain, cs.store_app, sa.category, c.id, c.parent_company_id, sa.sdk_successful_last_crawled, sa.api_successful_last_crawled + WITH NO DATA; + + +ALTER MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h1 OWNER TO postgres; + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict YXpHTcLEvtI7UlH7BDZMEoYMgeZUgZdZ7bdCW2NFwH3R5dq4Oz0UjiybvxXA3ya + diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql new file mode 100644 index 00000000..cb4c6be6 --- /dev/null +++ b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql @@ -0,0 +1,128 @@ +-- +-- PostgreSQL database dump +-- + +\restrict 6hikIorENh7ySqTZa405betCcCp1WBUPdIBkokNYuinfV0Ys5N3bp2NzNqZVO2I + +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: combined_store_apps_companies_2025_h2; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres +-- + +CREATE MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h2 AS + WITH api_based_companies AS ( + SELECT DISTINCT saac.store_app, + cm.mapped_category AS app_category, + cdm.company_id, + c_1.parent_company_id AS parent_id, + 'api_call'::text AS tag_source, + COALESCE(cad_1.domain_name, (saac.tld_url)::character varying) AS ad_domain + FROM ((((((public.api_calls saac + LEFT JOIN public.store_apps sa_1 ON ((saac.store_app = sa_1.id))) + LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) + LEFT JOIN public.domains ad_1 ON ((saac.tld_url = (ad_1.domain_name)::text))) + LEFT JOIN adtech.company_domain_mapping cdm ON ((ad_1.id = cdm.domain_id))) + LEFT JOIN adtech.companies c_1 ON ((cdm.company_id = c_1.id))) + LEFT JOIN public.domains cad_1 ON ((c_1.domain_id = cad_1.id))) + WHERE ((saac.called_at >= '2025-01-01 00:00:00'::timestamp without time zone) AND (saac.called_at < '2026-01-01 00:00:00'::timestamp without time zone)) + ), developer_based_companies AS ( + SELECT DISTINCT sa_1.id AS store_app, + cm.mapped_category AS app_category, + cd.company_id, + d.domain_name AS ad_domain, + 'developer'::text AS tag_source, + COALESCE(c_1.parent_company_id, cd.company_id) AS parent_id + FROM ((((adtech.company_developers cd + LEFT JOIN public.store_apps sa_1 ON ((cd.developer_id = sa_1.developer))) + LEFT JOIN adtech.companies c_1 ON ((cd.company_id = c_1.id))) + LEFT JOIN public.domains d ON ((c_1.domain_id = d.id))) + LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) + ), sdk_based_companies AS ( + SELECT DISTINCT sasd.store_app, + cm.mapped_category AS app_category, + sac.company_id, + ad_1.domain_name AS ad_domain, + 'sdk'::text AS tag_source, + COALESCE(c_1.parent_company_id, sac.company_id) AS parent_id + FROM (((((adtech.store_app_sdk_strings_2025_h2 sasd + LEFT JOIN adtech.sdks sac ON ((sac.id = sasd.sdk_id))) + LEFT JOIN adtech.companies c_1 ON ((sac.company_id = c_1.id))) + LEFT JOIN public.domains ad_1 ON ((c_1.domain_id = ad_1.id))) + LEFT JOIN public.store_apps sa_1 ON ((sasd.store_app = sa_1.id))) + LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) + ), distinct_ad_and_pub_domains AS ( + SELECT DISTINCT pd.domain_name AS publisher_domain_url, + ad_1.domain_name AS ad_domain_url, + aae.relationship + FROM ((((public.app_ads_entrys aae + LEFT JOIN public.domains ad_1 ON ((aae.ad_domain = ad_1.id))) + LEFT JOIN public.app_ads_map aam ON ((aae.id = aam.app_ads_entry))) + LEFT JOIN public.domains pd ON ((aam.pub_domain = pd.id))) + LEFT JOIN public.adstxt_crawl_results pdcr ON ((pd.id = pdcr.domain_id))) + WHERE ((pdcr.crawled_at - aam.updated_at) < '01:00:00'::interval) + ), combined_sources AS ( + SELECT api_based_companies.store_app, + api_based_companies.app_category, + api_based_companies.company_id, + api_based_companies.parent_id, + api_based_companies.ad_domain, + api_based_companies.tag_source + FROM api_based_companies + UNION ALL + SELECT sdk_based_companies.store_app, + sdk_based_companies.app_category, + sdk_based_companies.company_id, + sdk_based_companies.parent_id, + sdk_based_companies.ad_domain, + sdk_based_companies.tag_source + FROM sdk_based_companies + ) + SELECT cs.ad_domain, + cs.store_app, + sa.category AS app_category, + c.id AS company_id, + COALESCE(c.parent_company_id, c.id) AS parent_id, + CASE + WHEN (sa.sdk_successful_last_crawled IS NOT NULL) THEN bool_or((cs.tag_source = 'sdk'::text)) + ELSE NULL::boolean + END AS sdk, + CASE + WHEN (sa.api_successful_last_crawled IS NOT NULL) THEN bool_or((cs.tag_source = 'api_call'::text)) + ELSE NULL::boolean + END AS api_call, + bool_or((cs.tag_source = 'app_ads_direct'::text)) AS app_ads_direct, + bool_or((cs.tag_source = 'app_ads_reseller'::text)) AS app_ads_reseller + FROM (((combined_sources cs + LEFT JOIN frontend.store_apps_overview sa ON ((cs.store_app = sa.id))) + LEFT JOIN public.domains ad ON (((cs.ad_domain)::text = (ad.domain_name)::text))) + LEFT JOIN adtech.companies c ON ((ad.id = c.domain_id))) + GROUP BY cs.ad_domain, cs.store_app, sa.category, c.id, c.parent_company_id, sa.sdk_successful_last_crawled, sa.api_successful_last_crawled + WITH NO DATA; + + +ALTER MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h2 OWNER TO postgres; + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict 6hikIorENh7ySqTZa405betCcCp1WBUPdIBkokNYuinfV0Ys5N3bp2NzNqZVO2I + diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql index 6ea86acd..4f935ddb 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict QBe0hItBIcOV4rOmpvm10RGptOMvo1e1iEljHXjeYPdOp6ihMeKimOmQXacv6Uc +\restrict UZKhbF6VSbEOEcKlVfw36m5JAqKN7eEneUwgbF0sbIoI0edSVHl2ysxzvaOpdwr --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -55,16 +55,17 @@ CREATE MATERIALIZED VIEW adtech.combined_store_apps_companies AS LEFT JOIN public.domains d ON ((c_1.domain_id = d.id))) LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) ), sdk_based_companies AS ( - SELECT DISTINCT sac.store_app, + SELECT DISTINCT sasd.store_app, cm.mapped_category AS app_category, sac.company_id, ad_1.domain_name AS ad_domain, 'sdk'::text AS tag_source, COALESCE(c_1.parent_company_id, sac.company_id) AS parent_id - FROM ((((adtech.store_app_sdk_strings sac + FROM (((((adtech.store_app_sdk_strings sasd + LEFT JOIN adtech.sdks sac ON ((sac.id = sasd.sdk_id))) LEFT JOIN adtech.companies c_1 ON ((sac.company_id = c_1.id))) LEFT JOIN public.domains ad_1 ON ((c_1.domain_id = ad_1.id))) - LEFT JOIN public.store_apps sa_1 ON ((sac.store_app = sa_1.id))) + LEFT JOIN public.store_apps sa_1 ON ((sasd.store_app = sa_1.id))) LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) ), distinct_ad_and_pub_domains AS ( SELECT DISTINCT pd.domain_name AS publisher_domain_url, @@ -164,5 +165,5 @@ CREATE UNIQUE INDEX combined_store_app_companies_idx ON adtech.combined_store_ap -- PostgreSQL database dump complete -- -\unrestrict QBe0hItBIcOV4rOmpvm10RGptOMvo1e1iEljHXjeYPdOp6ihMeKimOmQXacv6Uc +\unrestrict UZKhbF6VSbEOEcKlVfw36m5JAqKN7eEneUwgbF0sbIoI0edSVHl2ysxzvaOpdwr diff --git a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql index b0797ac7..363753ea 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 6v4a8RhAdoTYlF1fY3ChFAYW2qLKFSNMpM4pcuQtVJd26Ydr82DPGTMOIjzJCqo +\restrict qh1qA0L8Cor3zFLZ7pXjo9F6hOsWeBdLoXWyyG8QnJ4l1PVilFanMuAQfaZXHQx --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -59,5 +59,5 @@ CREATE UNIQUE INDEX idx_combined_store_apps_parent_companies_idx ON adtech.combi -- PostgreSQL database dump complete -- -\unrestrict 6v4a8RhAdoTYlF1fY3ChFAYW2qLKFSNMpM4pcuQtVJd26Ydr82DPGTMOIjzJCqo +\unrestrict qh1qA0L8Cor3zFLZ7pXjo9F6hOsWeBdLoXWyyG8QnJ4l1PVilFanMuAQfaZXHQx diff --git a/pg-ddl/schema/adtech/companies.sql b/pg-ddl/schema/adtech/companies.sql index 0f547cd8..7aa26d9c 100644 --- a/pg-ddl/schema/adtech/companies.sql +++ b/pg-ddl/schema/adtech/companies.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict hfu4WY7SYvgMd5MrRWiuca0QPEQh6uQQBuX6WlPQ5fehMUcTIbF5tQOgsXQQwSv +\restrict 9y1qad6mjfdvZyiAoYjewJU4oQiI5ZV19io3SBW1GrIjjV0O2LHAjQ8LePJA5Vy --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -98,5 +98,5 @@ ALTER TABLE ONLY adtech.companies -- PostgreSQL database dump complete -- -\unrestrict hfu4WY7SYvgMd5MrRWiuca0QPEQh6uQQBuX6WlPQ5fehMUcTIbF5tQOgsXQQwSv +\unrestrict 9y1qad6mjfdvZyiAoYjewJU4oQiI5ZV19io3SBW1GrIjjV0O2LHAjQ8LePJA5Vy diff --git a/pg-ddl/schema/adtech/company_categories__matview.sql b/pg-ddl/schema/adtech/company_categories__matview.sql index 776388f7..81ba72a4 100644 --- a/pg-ddl/schema/adtech/company_categories__matview.sql +++ b/pg-ddl/schema/adtech/company_categories__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict xo8ia6rwW2ScRCiwTra6d4XKycKxb87xgskAgEDKdN3fhnv0iSTOzXGt62hcNYe +\restrict Fu7uLenhH1FEN7u5YgIaNPbmMZCwm7GziCXkYN5LfXtccIgks0QwxXU85sUE0Oi --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -42,5 +42,5 @@ ALTER MATERIALIZED VIEW adtech.company_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict xo8ia6rwW2ScRCiwTra6d4XKycKxb87xgskAgEDKdN3fhnv0iSTOzXGt62hcNYe +\unrestrict Fu7uLenhH1FEN7u5YgIaNPbmMZCwm7GziCXkYN5LfXtccIgks0QwxXU85sUE0Oi diff --git a/pg-ddl/schema/adtech/company_developers.sql b/pg-ddl/schema/adtech/company_developers.sql index ddcfccb3..f456cb39 100644 --- a/pg-ddl/schema/adtech/company_developers.sql +++ b/pg-ddl/schema/adtech/company_developers.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict fcUekSa5Eby6Guf9XvjRHJLQikmPmul7jVmMW3ZD3cFZWXtiHleUyxx36CXGc4A +\restrict TfEd2Zp5bqR8o5VuL2seE3ej7kI78QQOgYnkUBdbVvfKae0oUGVjG9AfL4KxeOf --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.company_developers -- PostgreSQL database dump complete -- -\unrestrict fcUekSa5Eby6Guf9XvjRHJLQikmPmul7jVmMW3ZD3cFZWXtiHleUyxx36CXGc4A +\unrestrict TfEd2Zp5bqR8o5VuL2seE3ej7kI78QQOgYnkUBdbVvfKae0oUGVjG9AfL4KxeOf diff --git a/pg-ddl/schema/adtech/company_domain_mapping.sql b/pg-ddl/schema/adtech/company_domain_mapping.sql index 1ba2cd20..a401a3a1 100644 --- a/pg-ddl/schema/adtech/company_domain_mapping.sql +++ b/pg-ddl/schema/adtech/company_domain_mapping.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict t3vWfJNXK4drHeKquzsztAWG39HTff8c67q1nz9xGBr74X7QUU8ZtvifvMlqx9b +\restrict ZpqMrHNXGu5WB17SmvfdjZiD1ZicEQToT0z7Lwl9LKPnW0RvAa9X0WahIb5WO4d --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.company_domain_mapping -- PostgreSQL database dump complete -- -\unrestrict t3vWfJNXK4drHeKquzsztAWG39HTff8c67q1nz9xGBr74X7QUU8ZtvifvMlqx9b +\unrestrict ZpqMrHNXGu5WB17SmvfdjZiD1ZicEQToT0z7Lwl9LKPnW0RvAa9X0WahIb5WO4d diff --git a/pg-ddl/schema/adtech/company_mediation_adapters.sql b/pg-ddl/schema/adtech/company_mediation_adapters.sql new file mode 100644 index 00000000..fb57984b --- /dev/null +++ b/pg-ddl/schema/adtech/company_mediation_adapters.sql @@ -0,0 +1,59 @@ +-- +-- PostgreSQL database dump +-- + +\restrict EFzyAZrAxXrx2qfVY6pgCpMb74BXJPMbq32RRkKH0PsAXlrxabXDV3kO4DfUBiT + +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: company_mediation_adapters; Type: TABLE; Schema: adtech; Owner: postgres +-- + +CREATE TABLE adtech.company_mediation_adapters ( + company_id integer NOT NULL, + adapter_pattern character varying(100) NOT NULL +); + + +ALTER TABLE adtech.company_mediation_adapters OWNER TO postgres; + +-- +-- Name: company_mediation_adapters company_mediation_adapters_pkey; Type: CONSTRAINT; Schema: adtech; Owner: postgres +-- + +ALTER TABLE ONLY adtech.company_mediation_adapters + ADD CONSTRAINT company_mediation_adapters_pkey PRIMARY KEY (company_id, adapter_pattern); + + +-- +-- Name: company_mediation_adapters company_mediation_adapters_company_id_fkey; Type: FK CONSTRAINT; Schema: adtech; Owner: postgres +-- + +ALTER TABLE ONLY adtech.company_mediation_adapters + ADD CONSTRAINT company_mediation_adapters_company_id_fkey FOREIGN KEY (company_id) REFERENCES adtech.companies(id); + + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict EFzyAZrAxXrx2qfVY6pgCpMb74BXJPMbq32RRkKH0PsAXlrxabXDV3kO4DfUBiT + diff --git a/pg-ddl/schema/adtech/company_mediation_patterns.sql b/pg-ddl/schema/adtech/company_mediation_patterns.sql new file mode 100644 index 00000000..9357e937 --- /dev/null +++ b/pg-ddl/schema/adtech/company_mediation_patterns.sql @@ -0,0 +1,59 @@ +-- +-- PostgreSQL database dump +-- + +\restrict yNYymEQkbAYytxVBMRGjLXrYur2vSBveQudV7bxkKRldo5VkP0DsLbj9cxcWwgT + +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: company_mediation_patterns; Type: TABLE; Schema: adtech; Owner: postgres +-- + +CREATE TABLE adtech.company_mediation_patterns ( + company_id integer NOT NULL, + mediation_pattern character varying(255) NOT NULL +); + + +ALTER TABLE adtech.company_mediation_patterns OWNER TO postgres; + +-- +-- Name: company_mediation_patterns company_mediation_patterns_pkey; Type: CONSTRAINT; Schema: adtech; Owner: postgres +-- + +ALTER TABLE ONLY adtech.company_mediation_patterns + ADD CONSTRAINT company_mediation_patterns_pkey PRIMARY KEY (company_id, mediation_pattern); + + +-- +-- Name: company_mediation_patterns company_mediation_patterns_company_id_fkey; Type: FK CONSTRAINT; Schema: adtech; Owner: postgres +-- + +ALTER TABLE ONLY adtech.company_mediation_patterns + ADD CONSTRAINT company_mediation_patterns_company_id_fkey FOREIGN KEY (company_id) REFERENCES adtech.companies(id); + + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict yNYymEQkbAYytxVBMRGjLXrYur2vSBveQudV7bxkKRldo5VkP0DsLbj9cxcWwgT + diff --git a/pg-ddl/schema/adtech/company_sdk_strings__matview.sql b/pg-ddl/schema/adtech/company_sdk_strings__matview.sql index 0c20d79e..82b6d65a 100644 --- a/pg-ddl/schema/adtech/company_sdk_strings__matview.sql +++ b/pg-ddl/schema/adtech/company_sdk_strings__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict slXgFDG7DoDZmWmNkf4QeBnwJ1eADbWlBrjHLgwpM2ilWCgzWYzWaDV7IFSZZVd +\restrict ZAYcX7GXKS7t4VCgnZIaXxKtYE7ka8WoF7wRWmKWAAmbOhIsEc1PHUBusxGXpI3 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -66,5 +66,5 @@ CREATE UNIQUE INDEX company_sdk_strings_version_string_id_company_id_idx ON adte -- PostgreSQL database dump complete -- -\unrestrict slXgFDG7DoDZmWmNkf4QeBnwJ1eADbWlBrjHLgwpM2ilWCgzWYzWaDV7IFSZZVd +\unrestrict ZAYcX7GXKS7t4VCgnZIaXxKtYE7ka8WoF7wRWmKWAAmbOhIsEc1PHUBusxGXpI3 diff --git a/pg-ddl/schema/adtech/company_share_change_2025__matview.sql b/pg-ddl/schema/adtech/company_share_change_2025__matview.sql new file mode 100644 index 00000000..6fa049f4 --- /dev/null +++ b/pg-ddl/schema/adtech/company_share_change_2025__matview.sql @@ -0,0 +1,114 @@ +-- +-- PostgreSQL database dump +-- + +\restrict BgXRyIjKPvCreuAubND2kXoCGnlOr1MDrT5IazYXU07U2qHj7CU38EGnX8Mpdob + +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: company_share_change_2025; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres +-- + +CREATE MATERIALIZED VIEW adtech.company_share_change_2025 AS + WITH limit_apps AS ( + SELECT DISTINCT store_app_ranks_weekly.store_app + FROM frontend.store_app_ranks_weekly + WHERE ((store_app_ranks_weekly.crawled_date >= '2025-01-01'::date) AND (store_app_ranks_weekly.crawled_date < '2026-01-01'::date)) + ), totals AS ( + SELECT 'h1'::text AS half, + count(DISTINCT combined_store_apps_companies_2025_h1.store_app) AS total_apps + FROM adtech.combined_store_apps_companies_2025_h1 + WHERE (combined_store_apps_companies_2025_h1.sdk AND (combined_store_apps_companies_2025_h1.store_app IN ( SELECT limit_apps.store_app + FROM limit_apps))) + UNION ALL + SELECT 'h2'::text AS half, + count(DISTINCT combined_store_apps_companies_2025_h2.store_app) AS total_apps + FROM adtech.combined_store_apps_companies_2025_h2 + WHERE (combined_store_apps_companies_2025_h2.sdk AND (combined_store_apps_companies_2025_h2.store_app IN ( SELECT limit_apps.store_app + FROM limit_apps))) + ), domain_counts AS ( + SELECT 'h1'::text AS half, + combined_store_apps_companies_2025_h1.ad_domain, + count(DISTINCT combined_store_apps_companies_2025_h1.store_app) AS app_count + FROM adtech.combined_store_apps_companies_2025_h1 + WHERE (combined_store_apps_companies_2025_h1.sdk AND (combined_store_apps_companies_2025_h1.store_app IN ( SELECT limit_apps.store_app + FROM limit_apps))) + GROUP BY combined_store_apps_companies_2025_h1.ad_domain + UNION ALL + SELECT 'h2'::text AS half, + combined_store_apps_companies_2025_h2.ad_domain, + count(DISTINCT combined_store_apps_companies_2025_h2.store_app) AS app_count + FROM adtech.combined_store_apps_companies_2025_h2 + WHERE (combined_store_apps_companies_2025_h2.sdk AND (combined_store_apps_companies_2025_h2.store_app IN ( SELECT limit_apps.store_app + FROM limit_apps))) + GROUP BY combined_store_apps_companies_2025_h2.ad_domain + ), shares AS ( + SELECT d.half, + d.ad_domain, + d.app_count, + t.total_apps, + ((d.app_count)::numeric / (NULLIF(t.total_apps, 0))::numeric) AS pct_share + FROM (domain_counts d + JOIN totals t ON ((t.half = d.half))) + ), shares_h1 AS ( + SELECT shares.half, + shares.ad_domain, + shares.app_count, + shares.total_apps, + shares.pct_share + FROM shares + WHERE (shares.half = 'h1'::text) + ), shares_h2 AS ( + SELECT shares.half, + shares.ad_domain, + shares.app_count, + shares.total_apps, + shares.pct_share + FROM shares + WHERE (shares.half = 'h2'::text) + ) + SELECT COALESCE(s2.ad_domain, s1.ad_domain) AS ad_domain, + s1.app_count AS apps_h1, + s1.total_apps AS total_apps_h1, + round((COALESCE(s1.pct_share, (0)::numeric) * (100)::numeric), 4) AS share_h1_pct, + s2.app_count AS apps_h2, + s2.total_apps AS total_apps_h2, + round((COALESCE(s2.pct_share, (0)::numeric) * (100)::numeric), 4) AS share_h2_pct, + (COALESCE(s2.app_count, (0)::bigint) - COALESCE(s1.app_count, (0)::bigint)) AS net_app_change, + CASE + WHEN ((s1.app_count IS NULL) OR (s1.app_count = 0)) THEN 100.00 + ELSE round(((((COALESCE(s2.app_count, (0)::bigint) - s1.app_count))::numeric / (s1.app_count)::numeric) * (100)::numeric), 2) + END AS app_growth_pct, + round(((COALESCE(s2.pct_share, (0)::numeric) - COALESCE(s1.pct_share, (0)::numeric)) * (100)::numeric), 6) AS share_change_pp + FROM (shares_h1 s1 + FULL JOIN shares_h2 s2 ON (((s1.ad_domain)::text = (s2.ad_domain)::text))) + ORDER BY (round(((COALESCE(s2.pct_share, (0)::numeric) - COALESCE(s1.pct_share, (0)::numeric)) * (100)::numeric), 6)) DESC NULLS LAST + WITH NO DATA; + + +ALTER MATERIALIZED VIEW adtech.company_share_change_2025 OWNER TO postgres; + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict BgXRyIjKPvCreuAubND2kXoCGnlOr1MDrT5IazYXU07U2qHj7CU38EGnX8Mpdob + diff --git a/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql b/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql new file mode 100644 index 00000000..11f36218 --- /dev/null +++ b/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql @@ -0,0 +1,84 @@ +-- +-- PostgreSQL database dump +-- + +\restrict 0frgW3Uq8HfX8IArBx9SsXMmxZeg7h52bURnIdYDnH6IgOemjK0UABgOmNlINl5 + +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: company_shares_2025_common; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres +-- + +CREATE MATERIALIZED VIEW adtech.company_shares_2025_common AS + WITH common_apps AS ( + SELECT h1.store_app + FROM adtech.store_app_sdk_strings_2025_h1 h1 + INTERSECT + SELECT h2.store_app + FROM adtech.store_app_sdk_strings_2025_h2 h2 + ), h1_stats AS ( + SELECT sd.company_id, + count(DISTINCT store_app_sdk_strings_2025_h1.store_app) AS h1_app_count + FROM adtech.store_app_sdk_strings_2025_h1 + JOIN adtech.sdks sd ON ((store_app_sdk_strings_2025_h1.sdk_id = sd.id)) + WHERE (store_app_sdk_strings_2025_h1.store_app IN ( SELECT common_apps.store_app + FROM common_apps)) + GROUP BY sd.company_id + ), h2_stats AS ( + SELECT sd.company_id, + count(DISTINCT store_app_sdk_strings_2025_h2.store_app) AS h2_app_count + FROM adtech.store_app_sdk_strings_2025_h2 + JOIN adtech.sdks sd ON ((store_app_sdk_strings_2025_h2.sdk_id = sd.id)) + WHERE (store_app_sdk_strings_2025_h2.store_app IN ( SELECT common_apps.store_app + FROM common_apps)) + GROUP BY sd.company_id + ), comb AS ( + SELECT COALESCE(h1.company_id, h2.company_id) AS sdk_company_id, + ( SELECT count(*) AS count + FROM common_apps) AS total_app_count, + h1.h1_app_count, + h2.h2_app_count, + (h2.h2_app_count - h1.h1_app_count) AS net_migration, + round((((h2.h2_app_count)::numeric / (h1.h1_app_count)::numeric) - (1)::numeric), 4) AS round + FROM (h1_stats h1 + FULL JOIN h2_stats h2 ON ((h1.company_id = h2.company_id))) + ) + SELECT co.sdk_company_id, + co.total_app_count, + co.h1_app_count, + co.h2_app_count, + co.net_migration, + co.round, + d.domain_name AS company_domain + FROM ((comb co + LEFT JOIN adtech.companies c ON ((co.sdk_company_id = c.id))) + LEFT JOIN public.domains d ON ((d.id = c.domain_id))) + WITH NO DATA; + + +ALTER MATERIALIZED VIEW adtech.company_shares_2025_common OWNER TO postgres; + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict 0frgW3Uq8HfX8IArBx9SsXMmxZeg7h52bURnIdYDnH6IgOemjK0UABgOmNlINl5 + diff --git a/pg-ddl/schema/adtech/sdk_categories.sql b/pg-ddl/schema/adtech/sdk_categories.sql index 16b6f4be..1cbb5b90 100644 --- a/pg-ddl/schema/adtech/sdk_categories.sql +++ b/pg-ddl/schema/adtech/sdk_categories.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 8LE8ke2fWqnNdXzvEWYrh1DPPB79md0mWgEy3Qi73VEdDEjafZIVYISmedZO9PL +\restrict 28JjLexUzIHM7xfman14wISXibaYKcpU727hyzBXhLJOkJIYbncDg5AzZRSANc5 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.sdk_categories -- PostgreSQL database dump complete -- -\unrestrict 8LE8ke2fWqnNdXzvEWYrh1DPPB79md0mWgEy3Qi73VEdDEjafZIVYISmedZO9PL +\unrestrict 28JjLexUzIHM7xfman14wISXibaYKcpU727hyzBXhLJOkJIYbncDg5AzZRSANc5 diff --git a/pg-ddl/schema/adtech/sdk_packages.sql b/pg-ddl/schema/adtech/sdk_packages.sql index c4335aea..a17acdfc 100644 --- a/pg-ddl/schema/adtech/sdk_packages.sql +++ b/pg-ddl/schema/adtech/sdk_packages.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict nzNFl85IJ4tgwzfdKRXWeLL3JrB9fyoGWrDO5N2asRZ0XPougedzvkekKETsBqR +\restrict aKgzD98NwYI62oNPwKDNR7auZtR2eGNYaDujsO6Gdybjxz6qIkriRe2zSSXT9xU --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -99,5 +99,5 @@ ALTER TABLE ONLY adtech.sdk_packages -- PostgreSQL database dump complete -- -\unrestrict nzNFl85IJ4tgwzfdKRXWeLL3JrB9fyoGWrDO5N2asRZ0XPougedzvkekKETsBqR +\unrestrict aKgzD98NwYI62oNPwKDNR7auZtR2eGNYaDujsO6Gdybjxz6qIkriRe2zSSXT9xU diff --git a/pg-ddl/schema/adtech/sdk_paths.sql b/pg-ddl/schema/adtech/sdk_paths.sql index 112bb7d0..e0aefe4d 100644 --- a/pg-ddl/schema/adtech/sdk_paths.sql +++ b/pg-ddl/schema/adtech/sdk_paths.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict EhGb6MCCa4Ar3MeEdnQG82wtJGqNZWeOlejzfhXaPbBBLWeyGy0YCiPPY1CNV2m +\restrict EbER3S6ktdevHIlaVu1EY9O8kv1I9VWy3jbfiS8TpUao0742AZDYFRoSYCxLtg2 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdk_paths -- PostgreSQL database dump complete -- -\unrestrict EhGb6MCCa4Ar3MeEdnQG82wtJGqNZWeOlejzfhXaPbBBLWeyGy0YCiPPY1CNV2m +\unrestrict EbER3S6ktdevHIlaVu1EY9O8kv1I9VWy3jbfiS8TpUao0742AZDYFRoSYCxLtg2 diff --git a/pg-ddl/schema/adtech/sdks.sql b/pg-ddl/schema/adtech/sdks.sql index c210357e..693b518d 100644 --- a/pg-ddl/schema/adtech/sdks.sql +++ b/pg-ddl/schema/adtech/sdks.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict bDMu5cX8U1sc0ViVDaGNdhVkhK4siegga7OxNSgGeG6nEwQ7dlXL0fj40g1c26Z +\restrict wCtnADnh3Vr4sQt56isU4Ll52w2EVDXRBfHu3sILeQqkJm0ify33gSCShrzoyq5 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdks -- PostgreSQL database dump complete -- -\unrestrict bDMu5cX8U1sc0ViVDaGNdhVkhK4siegga7OxNSgGeG6nEwQ7dlXL0fj40g1c26Z +\unrestrict wCtnADnh3Vr4sQt56isU4Ll52w2EVDXRBfHu3sILeQqkJm0ify33gSCShrzoyq5 diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql new file mode 100644 index 00000000..294361a4 --- /dev/null +++ b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql @@ -0,0 +1,59 @@ +-- +-- PostgreSQL database dump +-- + +\restrict dxTiIr3M2HnW3BHz7pcpm4ufaRpCiSIUL0PgJbPs41y6bBabTPPGheLIuzFMCz1 + +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: store_app_sdk_strings_2025_h1; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres +-- + +CREATE MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h1 AS + WITH latest_version_codes AS ( + SELECT DISTINCT ON (vc_1.store_app) vc_1.id, + vc_1.store_app, + vc_1.version_code, + vc_1.updated_at, + vc_1.crawl_result + FROM (public.version_codes vc_1 + JOIN public.version_code_sdk_scan_results vcssr ON ((vc_1.id = vcssr.version_code_id))) + WHERE ((vcssr.scan_result = 1) AND (vc_1.updated_at >= '2025-01-01 00:00:00'::timestamp without time zone) AND (vc_1.updated_at < '2025-07-01 00:00:00'::timestamp without time zone)) + ORDER BY vc_1.store_app, (string_to_array((vc_1.version_code)::text, '.'::text))::bigint[] DESC + ) + SELECT vc.store_app, + vdm.string_id AS version_string_id, + sd.id as sdk_id + FROM (((latest_version_codes vc + JOIN public.version_details_map vdm ON ((vc.id = vdm.version_code))) + JOIN adtech.company_sdk_strings css ON ((vdm.string_id = css.version_string_id))) + JOIN adtech.sdks sd ON ((css.sdk_id = sd.id))) + WITH NO DATA; + + +ALTER MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h1 OWNER TO postgres; + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict dxTiIr3M2HnW3BHz7pcpm4ufaRpCiSIUL0PgJbPs41y6bBabTPPGheLIuzFMCz1 + diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql new file mode 100644 index 00000000..f5d7af94 --- /dev/null +++ b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql @@ -0,0 +1,59 @@ +-- +-- PostgreSQL database dump +-- + +\restrict HSIxrKhagiWFHeShe8uLqydqepmDFH9UigpGM0aFUh08MoXbFG0yz4pNbKHmZfq + +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: store_app_sdk_strings_2025_h2; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres +-- + +CREATE MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h2 AS + WITH latest_version_codes AS ( + SELECT DISTINCT ON (vc_1.store_app) vc_1.id, + vc_1.store_app, + vc_1.version_code, + vc_1.updated_at, + vc_1.crawl_result + FROM (public.version_codes vc_1 + JOIN public.version_code_sdk_scan_results vcssr ON ((vc_1.id = vcssr.version_code_id))) + WHERE ((vcssr.scan_result = 1) AND (vc_1.updated_at >= '2025-01-01 00:00:00'::timestamp without time zone) AND (vc_1.updated_at < '2026-01-01 00:00:00'::timestamp without time zone)) + ORDER BY vc_1.store_app, (string_to_array((vc_1.version_code)::text, '.'::text))::bigint[] DESC + ) + SELECT vc.store_app, + vdm.string_id AS version_string_id, + sd.id as sdk_id + FROM (((latest_version_codes vc + JOIN public.version_details_map vdm ON ((vc.id = vdm.version_code))) + JOIN adtech.company_sdk_strings css ON ((vdm.string_id = css.version_string_id))) + JOIN adtech.sdks sd ON ((css.sdk_id = sd.id))) + WITH NO DATA; + + +ALTER MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h2 OWNER TO postgres; + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict HSIxrKhagiWFHeShe8uLqydqepmDFH9UigpGM0aFUh08MoXbFG0yz4pNbKHmZfq + diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql index 1714f55e..f45d2754 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict uGd5FftiM55EqmocqeRn2efCnVczv9xaoWT4Xa18XhRuLqwdNrgxvDmgcdvWa0K +\restrict HpNr3HwgeRLkM41yPWEA4bLaUU0jDjSEsqoBIinlNsGMO3Ogy0esRYWAC0fbjzr --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -61,5 +61,5 @@ CREATE UNIQUE INDEX store_app_sdk_strings_idx ON adtech.store_app_sdk_strings US -- PostgreSQL database dump complete -- -\unrestrict uGd5FftiM55EqmocqeRn2efCnVczv9xaoWT4Xa18XhRuLqwdNrgxvDmgcdvWa0K +\unrestrict HpNr3HwgeRLkM41yPWEA4bLaUU0jDjSEsqoBIinlNsGMO3Ogy0esRYWAC0fbjzr diff --git a/pg-ddl/schema/adtech/url_redirect_chains.sql b/pg-ddl/schema/adtech/url_redirect_chains.sql index b26f252e..86e903d4 100644 --- a/pg-ddl/schema/adtech/url_redirect_chains.sql +++ b/pg-ddl/schema/adtech/url_redirect_chains.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict j5wQwZWrpTAvOnbLbcGacXjs4nTj0AlnT5rdUQwefbDFtlapDylfv6JguBF82a7 +\restrict 0Kxy68upHe0v645wUxZKYOK5zpYGQPUxiHPZOyP5IcdEnF7sHeWMme1F6pZnoWZ --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -122,5 +122,5 @@ ALTER TABLE ONLY adtech.url_redirect_chains -- PostgreSQL database dump complete -- -\unrestrict j5wQwZWrpTAvOnbLbcGacXjs4nTj0AlnT5rdUQwefbDFtlapDylfv6JguBF82a7 +\unrestrict 0Kxy68upHe0v645wUxZKYOK5zpYGQPUxiHPZOyP5IcdEnF7sHeWMme1F6pZnoWZ diff --git a/pg-ddl/schema/adtech/urls.sql b/pg-ddl/schema/adtech/urls.sql index 1b2a62ba..f105833e 100644 --- a/pg-ddl/schema/adtech/urls.sql +++ b/pg-ddl/schema/adtech/urls.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict bHGZAuwFaMNDznyHdWLYzX9FsTnngUTJASKtbymbs43cl40fuR40EGjSMoBbuEU +\restrict m2zVNb0WiTQPUtjo9hGg8h6qaYlNad2x7ijwRstPPLAoiZ87SoJbp9PHPWy6qaQ --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -111,5 +111,5 @@ ALTER TABLE ONLY adtech.urls -- PostgreSQL database dump complete -- -\unrestrict bHGZAuwFaMNDznyHdWLYzX9FsTnngUTJASKtbymbs43cl40fuR40EGjSMoBbuEU +\unrestrict m2zVNb0WiTQPUtjo9hGg8h6qaYlNad2x7ijwRstPPLAoiZ87SoJbp9PHPWy6qaQ diff --git a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql index 65c9d029..f6b21ba6 100644 --- a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict PrP00PEdtMIHXdThj4UchXyTkVD9aMbP85zk2on4l8M1nvnO7xFYdDhxae3MfRC +\restrict MvWY56iHZJKv4M24wPjIVdGgSWOZqmd9ODa3GKMBm8JvXfVZQqYBy22Zzr6Jtuj --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX adstxt_ad_domain_overview_unique_idx ON frontend.adstxt_ad_d -- PostgreSQL database dump complete -- -\unrestrict PrP00PEdtMIHXdThj4UchXyTkVD9aMbP85zk2on4l8M1nvnO7xFYdDhxae3MfRC +\unrestrict MvWY56iHZJKv4M24wPjIVdGgSWOZqmd9ODa3GKMBm8JvXfVZQqYBy22Zzr6Jtuj diff --git a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql index 0e213db6..729b116e 100644 --- a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict wN7y0mbD2hLUPmaD6ckEBiNsoHAp7sOfyx6qtqi8ukRlGTSq1r8V29fZJWd9xpo +\restrict Cdho15KZoPjTIQiAU6HrCJ80KPifu4rhfnvweEMhUGWDCFcUxIT8X7LAInFqebP --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -81,5 +81,5 @@ CREATE UNIQUE INDEX adstxt_entries_store_apps_unique_idx ON frontend.adstxt_entr -- PostgreSQL database dump complete -- -\unrestrict wN7y0mbD2hLUPmaD6ckEBiNsoHAp7sOfyx6qtqi8ukRlGTSq1r8V29fZJWd9xpo +\unrestrict Cdho15KZoPjTIQiAU6HrCJ80KPifu4rhfnvweEMhUGWDCFcUxIT8X7LAInFqebP diff --git a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql index 3634abfc..ba2c6f07 100644 --- a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict cV6V0Rx7Qwfi43U7nVItzi6CVHstdNgvoLLq9P0PokLKw4pHpB9NZ715m14LH3L +\restrict 6BTFx15PFaiTpwPcCl8X7ypgacdMGFClVBVEKN3KpfzzMjPldRY8UYdcARjJxLA --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -74,5 +74,5 @@ CREATE UNIQUE INDEX adstxt_publishers_overview_ad_domain_unique_idx ON frontend. -- PostgreSQL database dump complete -- -\unrestrict cV6V0Rx7Qwfi43U7nVItzi6CVHstdNgvoLLq9P0PokLKw4pHpB9NZ715m14LH3L +\unrestrict 6BTFx15PFaiTpwPcCl8X7ypgacdMGFClVBVEKN3KpfzzMjPldRY8UYdcARjJxLA diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql index 6250e722..04a5e28b 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict GEtvm1FkJTGbCgJp8hE9UjccMaiDBcDl3ngbX31hb2rORA9dc8HQINne1airJCq +\restrict KHQoYLD4G5WI9wBoVeqRgtNiqIhZxCcpoYISmvRCbNL1clUkVaqE2SeYWQLjIeN --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -107,5 +107,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict GEtvm1FkJTGbCgJp8hE9UjccMaiDBcDl3ngbX31hb2rORA9dc8HQINne1airJCq +\unrestrict KHQoYLD4G5WI9wBoVeqRgtNiqIhZxCcpoYISmvRCbNL1clUkVaqE2SeYWQLjIeN diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql index fde181d5..53587dec 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 9fdACUrqF9F49Nh6ThSUI78gGdqXItt6IID3XIXWSJhkgrHg3uZHi8VMqu4fuAl +\restrict B1Q3g4Rt33FhEWtUMM9Xo0QAQNO77L253HVTiy8rwscD0bgInl9mOHJblRYsiWB --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -114,5 +114,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings_recent_month OWNER -- PostgreSQL database dump complete -- -\unrestrict 9fdACUrqF9F49Nh6ThSUI78gGdqXItt6IID3XIXWSJhkgrHg3uZHi8VMqu4fuAl +\unrestrict B1Q3g4Rt33FhEWtUMM9Xo0QAQNO77L253HVTiy8rwscD0bgInl9mOHJblRYsiWB diff --git a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql index cfae2e2f..2bec1448 100644 --- a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict QHFeDAv7TxeKqh9jlgPb25Lget0qGBsi1RI2Ntif49mGRwfWiWv5KqH7zOXWA20 +\restrict Iz3NWT46dGT1a79cEdDoBOCUd9hJ8TlCqFAH6DItUH1ouHSzNSMN6ZPHDH6lIgt --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict QHFeDAv7TxeKqh9jlgPb25Lget0qGBsi1RI2Ntif49mGRwfWiWv5KqH7zOXWA20 +\unrestrict Iz3NWT46dGT1a79cEdDoBOCUd9hJ8TlCqFAH6DItUH1ouHSzNSMN6ZPHDH6lIgt diff --git a/pg-ddl/schema/frontend/api_call_countries__matview.sql b/pg-ddl/schema/frontend/api_call_countries__matview.sql index b1d986d8..11d2361a 100644 --- a/pg-ddl/schema/frontend/api_call_countries__matview.sql +++ b/pg-ddl/schema/frontend/api_call_countries__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 13gVnybBUIFbu2Jn5h6mHe99M8pFXaXjrNI0NtqIhgsfzcY5RVsiVzfNewWzeoH +\restrict cfjWM3RRSrc4M3G5ffKgoybhWs63030pR3mmOaoW4pclVW6Dgsu60lancgagTdK --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -87,5 +87,5 @@ CREATE UNIQUE INDEX api_call_countries_unique ON frontend.api_call_countries USI -- PostgreSQL database dump complete -- -\unrestrict 13gVnybBUIFbu2Jn5h6mHe99M8pFXaXjrNI0NtqIhgsfzcY5RVsiVzfNewWzeoH +\unrestrict cfjWM3RRSrc4M3G5ffKgoybhWs63030pR3mmOaoW4pclVW6Dgsu60lancgagTdK diff --git a/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql index 07354e63..490027ae 100644 --- a/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql +++ b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 3TrRJJMNChYX97vNmMWfDOpcbKCQeczmFHh9uVuaUWKTJXNlCzbfYEzhZv7mCHQ +\restrict 6afgnTeT0OFmAtAMAmerckub4FkAp4c1m8I0I0oH7ej0YY1mYrGc71mNooIoYa6 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -72,5 +72,5 @@ ALTER MATERIALIZED VIEW frontend.app_keyword_rank_stats OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 3TrRJJMNChYX97vNmMWfDOpcbKCQeczmFHh9uVuaUWKTJXNlCzbfYEzhZv7mCHQ +\unrestrict 6afgnTeT0OFmAtAMAmerckub4FkAp4c1m8I0I0oH7ej0YY1mYrGc71mNooIoYa6 diff --git a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql index 228d7ab8..8894c482 100644 --- a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql +++ b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict FPgtpU1PEUpVaXv4sJPRtDVemcA5t4BLGG62MJ2uYoaTfpXBkCGeXaIOmV5kKWN +\restrict EnInnhEfpUNXjmlaSqurcfLfLiU5aIR7ZvpqYaGxDtyKuDOQn1NIbpCnsD2tK6y --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -104,5 +104,5 @@ ALTER TABLE ONLY frontend.app_keyword_ranks_daily -- PostgreSQL database dump complete -- -\unrestrict FPgtpU1PEUpVaXv4sJPRtDVemcA5t4BLGG62MJ2uYoaTfpXBkCGeXaIOmV5kKWN +\unrestrict EnInnhEfpUNXjmlaSqurcfLfLiU5aIR7ZvpqYaGxDtyKuDOQn1NIbpCnsD2tK6y diff --git a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql index 3404e5e9..13f0fa59 100644 --- a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict d97o38X3k3RXGVlT74gzSvy1gSnrORGSR12SRRySNaxkWdpTnoRqlIqTFnIyuQd +\restrict y0a0t9gzNnTq5HfNaBvADul1gdqwW8me36g3TKLPEQwUe4RgzIyW4JWqMpTABLD --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -34,6 +34,7 @@ CREATE MATERIALIZED VIEW frontend.apps_new_monthly AS sa_1.store_id, sa_1.store, sa_1.category, + sa_1.developer_name, sa_1.rating, sa_1.installs, sa_1.installs_sum_1w, @@ -46,7 +47,7 @@ CREATE MATERIALIZED VIEW frontend.apps_new_monthly AS sa_1.created_at, sa_1.updated_at, sa_1.crawl_result, - sa_1.icon_url_512, + sa_1.icon_url_100, sa_1.release_date, sa_1.rating_count, sa_1.featured_image_url, @@ -60,39 +61,38 @@ CREATE MATERIALIZED VIEW frontend.apps_new_monthly AS FROM frontend.store_apps_overview sa_1 WHERE ((sa_1.release_date >= (CURRENT_DATE - '30 days'::interval)) AND (sa_1.created_at >= (CURRENT_DATE - '45 days'::interval)) AND (sa_1.crawl_result = 1)) ) - SELECT ra.id, - ra.name, - ra.store_id, - ra.store, - ra.category, - ra.rating, - ra.installs, - ra.installs_sum_1w, - ra.installs_sum_4w, - ra.ratings_sum_1w, - ra.ratings_sum_4w, - ra.store_last_updated, - ra.ad_supported, - ra.in_app_purchases, - ra.created_at, - ra.updated_at, - ra.crawl_result, - sa.icon_url_100, - ra.icon_url_512, - ra.release_date, - ra.rating_count, - ra.featured_image_url, - ra.phone_image_url_1, - ra.phone_image_url_2, - ra.phone_image_url_3, - ra.tablet_image_url_1, - ra.tablet_image_url_2, - ra.tablet_image_url_3, - ra.category AS app_category, - ra.rn - FROM (rankedapps ra - LEFT JOIN public.store_apps sa ON ((ra.id = sa.id))) - WHERE (ra.rn <= 100) + SELECT id, + name, + store_id, + store, + category, + developer_name, + rating, + installs, + installs_sum_1w, + installs_sum_4w, + ratings_sum_1w, + ratings_sum_4w, + store_last_updated, + ad_supported, + in_app_purchases, + created_at, + updated_at, + crawl_result, + icon_url_100, + release_date, + rating_count, + featured_image_url, + phone_image_url_1, + phone_image_url_2, + phone_image_url_3, + tablet_image_url_1, + tablet_image_url_2, + tablet_image_url_3, + category AS app_category, + rn + FROM rankedapps ra + WHERE (rn <= 100) WITH NO DATA; @@ -116,5 +116,5 @@ CREATE UNIQUE INDEX idx_apps_new_monthly ON frontend.apps_new_monthly USING btre -- PostgreSQL database dump complete -- -\unrestrict d97o38X3k3RXGVlT74gzSvy1gSnrORGSR12SRRySNaxkWdpTnoRqlIqTFnIyuQd +\unrestrict y0a0t9gzNnTq5HfNaBvADul1gdqwW8me36g3TKLPEQwUe4RgzIyW4JWqMpTABLD diff --git a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql index 9f67d176..9cbcb3d4 100644 --- a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict VJOsLogw2xf5IMGYDGivSkuKx1tuI847hMGZ43Vqe4aG6yCNTOwCkgREyaUENlz +\restrict OaW58FXF9cJemkuHBEeUBpLwZsUnErgXONmyUYeo4OfuaMr52BLmDuVrgjiQ7WA --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -34,6 +34,7 @@ CREATE MATERIALIZED VIEW frontend.apps_new_weekly AS sa_1.store_id, sa_1.store, sa_1.category, + sa_1.developer_name, sa_1.rating, sa_1.installs, sa_1.installs_sum_1w, @@ -46,7 +47,7 @@ CREATE MATERIALIZED VIEW frontend.apps_new_weekly AS sa_1.created_at, sa_1.updated_at, sa_1.crawl_result, - sa_1.icon_url_512, + sa_1.icon_url_100, sa_1.release_date, sa_1.rating_count, sa_1.featured_image_url, @@ -60,39 +61,38 @@ CREATE MATERIALIZED VIEW frontend.apps_new_weekly AS FROM frontend.store_apps_overview sa_1 WHERE ((sa_1.release_date >= (CURRENT_DATE - '7 days'::interval)) AND (sa_1.created_at >= (CURRENT_DATE - '11 days'::interval)) AND (sa_1.crawl_result = 1)) ) - SELECT ra.id, - ra.name, - ra.store_id, - ra.store, - ra.category, - ra.rating, - ra.installs, - ra.installs_sum_1w, - ra.installs_sum_4w, - ra.ratings_sum_1w, - ra.ratings_sum_4w, - ra.store_last_updated, - ra.ad_supported, - ra.in_app_purchases, - ra.created_at, - ra.updated_at, - ra.crawl_result, - sa.icon_url_100, - ra.icon_url_512, - ra.release_date, - ra.rating_count, - ra.featured_image_url, - ra.phone_image_url_1, - ra.phone_image_url_2, - ra.phone_image_url_3, - ra.tablet_image_url_1, - ra.tablet_image_url_2, - ra.tablet_image_url_3, - ra.category AS app_category, - ra.rn - FROM (rankedapps ra - LEFT JOIN public.store_apps sa ON ((ra.id = sa.id))) - WHERE (ra.rn <= 100) + SELECT id, + name, + store_id, + store, + category, + developer_name, + rating, + installs, + installs_sum_1w, + installs_sum_4w, + ratings_sum_1w, + ratings_sum_4w, + store_last_updated, + ad_supported, + in_app_purchases, + created_at, + updated_at, + crawl_result, + icon_url_100, + release_date, + rating_count, + featured_image_url, + phone_image_url_1, + phone_image_url_2, + phone_image_url_3, + tablet_image_url_1, + tablet_image_url_2, + tablet_image_url_3, + category AS app_category, + rn + FROM rankedapps ra + WHERE (rn <= 100) WITH NO DATA; @@ -123,5 +123,5 @@ CREATE UNIQUE INDEX idx_apps_new_weekly_f ON frontend.apps_new_weekly USING btre -- PostgreSQL database dump complete -- -\unrestrict VJOsLogw2xf5IMGYDGivSkuKx1tuI847hMGZ43Vqe4aG6yCNTOwCkgREyaUENlz +\unrestrict OaW58FXF9cJemkuHBEeUBpLwZsUnErgXONmyUYeo4OfuaMr52BLmDuVrgjiQ7WA diff --git a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql index d7665d77..28afc122 100644 --- a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 0AtRdtjajDYgXvxd17krK6yUpiReFAzFckPNug1FM8skcGDNtVsJ1SGNXPsihpw +\restrict J3sCavymN8nfZA1fwLRbX4IHsgU6cG1bzRq4CQgeCm0H5gUqDSJsnKfq4JPAFuQ --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -34,6 +34,8 @@ CREATE MATERIALIZED VIEW frontend.apps_new_yearly AS sa_1.store_id, sa_1.store, sa_1.category, + sa_1.developer_name, + sa_1.icon_url_100, sa_1.rating, sa_1.installs, sa_1.installs_sum_1w, @@ -60,39 +62,38 @@ CREATE MATERIALIZED VIEW frontend.apps_new_yearly AS FROM frontend.store_apps_overview sa_1 WHERE ((sa_1.release_date >= (CURRENT_DATE - '365 days'::interval)) AND (sa_1.created_at >= (CURRENT_DATE - '380 days'::interval)) AND (sa_1.crawl_result = 1)) ) - SELECT ra.id, - ra.name, - ra.store_id, - ra.store, - ra.category, - ra.rating, - ra.installs, - ra.installs_sum_1w, - ra.installs_sum_4w, - ra.ratings_sum_1w, - ra.ratings_sum_4w, - ra.store_last_updated, - ra.ad_supported, - ra.in_app_purchases, - ra.created_at, - ra.updated_at, - ra.crawl_result, - sa.icon_url_100, - ra.icon_url_512, - ra.release_date, - ra.rating_count, - ra.featured_image_url, - ra.phone_image_url_1, - ra.phone_image_url_2, - ra.phone_image_url_3, - ra.tablet_image_url_1, - ra.tablet_image_url_2, - ra.tablet_image_url_3, - ra.category AS app_category, - ra.rn - FROM (rankedapps ra - LEFT JOIN public.store_apps sa ON ((ra.id = sa.id))) - WHERE (ra.rn <= 100) + SELECT id, + name, + store_id, + store, + category, + developer_name, + rating, + installs, + installs_sum_1w, + installs_sum_4w, + ratings_sum_1w, + ratings_sum_4w, + store_last_updated, + ad_supported, + in_app_purchases, + created_at, + updated_at, + crawl_result, + icon_url_100, + release_date, + rating_count, + featured_image_url, + phone_image_url_1, + phone_image_url_2, + phone_image_url_3, + tablet_image_url_1, + tablet_image_url_2, + tablet_image_url_3, + category AS app_category, + rn + FROM rankedapps ra + WHERE (rn <= 100) WITH NO DATA; @@ -116,5 +117,5 @@ CREATE UNIQUE INDEX idx_apps_new_yearly ON frontend.apps_new_yearly USING btree -- PostgreSQL database dump complete -- -\unrestrict 0AtRdtjajDYgXvxd17krK6yUpiReFAzFckPNug1FM8skcGDNtVsJ1SGNXPsihpw +\unrestrict J3sCavymN8nfZA1fwLRbX4IHsgU6cG1bzRq4CQgeCm0H5gUqDSJsnKfq4JPAFuQ diff --git a/pg-ddl/schema/frontend/category_tag_stats__matview.sql b/pg-ddl/schema/frontend/category_tag_stats__matview.sql index 50e50420..ade26ca6 100644 --- a/pg-ddl/schema/frontend/category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/category_tag_stats__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict cdgVxINSOXcDZutKE95l5uE8HBy7nTcgqINBftX7mHAaTzuQahPLu1pdGhu6gSP +\restrict MEgSaT8uiGxwVxpJYv6qQYyeNSs9XOxG2TMblWe0nljzcYxBRekazJYl0A5T4xo --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -74,5 +74,5 @@ CREATE UNIQUE INDEX idx_category_tag_stats ON frontend.category_tag_stats USING -- PostgreSQL database dump complete -- -\unrestrict cdgVxINSOXcDZutKE95l5uE8HBy7nTcgqINBftX7mHAaTzuQahPLu1pdGhu6gSP +\unrestrict MEgSaT8uiGxwVxpJYv6qQYyeNSs9XOxG2TMblWe0nljzcYxBRekazJYl0A5T4xo diff --git a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql index d86da36a..3e0bf705 100644 --- a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict I1rfTQYe2tJtOUmWVZVVK5iSIIzqe9POCLHAYTEfUYfkl2gkozymb5IMxqhg8u5 +\restrict 9vqUuxl09Jw8aa58lnNETGirgLknu7TZO9WphV5zCZrqu10rxKCHxcbcqCt144m --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -30,8 +30,9 @@ SET default_table_access_method = heap; CREATE MATERIALIZED VIEW frontend.companies_apps_overview AS WITH store_app_sdk_companies AS ( SELECT DISTINCT savs.store_app, - savs.company_id + sd.company_id FROM adtech.store_app_sdk_strings savs + LEFT JOIN adtech.sdks sd ON ((savs.sdk_id = sd.id)) ) SELECT sa.store_id, sacs.company_id, @@ -68,5 +69,5 @@ CREATE UNIQUE INDEX companies_apps_overview_unique_idx ON frontend.companies_app -- PostgreSQL database dump complete -- -\unrestrict I1rfTQYe2tJtOUmWVZVVK5iSIIzqe9POCLHAYTEfUYfkl2gkozymb5IMxqhg8u5 +\unrestrict 9vqUuxl09Jw8aa58lnNETGirgLknu7TZO9WphV5zCZrqu10rxKCHxcbcqCt144m diff --git a/pg-ddl/schema/frontend/companies_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_stats__matview.sql index 4aa795d2..a3d327b5 100644 --- a/pg-ddl/schema/frontend/companies_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_stats__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict ZEqvOlgFmWVZvRCcEsnhbZHObSRlScKztHDVztUehcmKalpHjHlK9erzjfG5N51 +\restrict ElOfojYHnhHjw9jK9lzZUh5biTMZDx2oYeczSUQQTYYpq1hon3dgwdZ06OlY8mI --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -82,5 +82,5 @@ CREATE INDEX companies_category_stats_query_idx ON frontend.companies_category_s -- PostgreSQL database dump complete -- -\unrestrict ZEqvOlgFmWVZvRCcEsnhbZHObSRlScKztHDVztUehcmKalpHjHlK9erzjfG5N51 +\unrestrict ElOfojYHnhHjw9jK9lzZUh5biTMZDx2oYeczSUQQTYYpq1hon3dgwdZ06OlY8mI diff --git a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql index 6a59f6f3..83fb778d 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict YKc3exCpzxt1hQyJLHo22jOlye4QMIFb97djcilhkvh9AJAZ6f5jaVopvEV2szT +\restrict 5DWajnyzsxHtYwUH6iebk0lnmYgy2AGUkoGF58jP4OflSF4rm80ZOFUI1u82SgB --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -86,5 +86,5 @@ CREATE UNIQUE INDEX companies_category_tag_stats_idx ON frontend.companies_categ -- PostgreSQL database dump complete -- -\unrestrict YKc3exCpzxt1hQyJLHo22jOlye4QMIFb97djcilhkvh9AJAZ6f5jaVopvEV2szT +\unrestrict 5DWajnyzsxHtYwUH6iebk0lnmYgy2AGUkoGF58jP4OflSF4rm80ZOFUI1u82SgB diff --git a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql index 3fad3df8..495638e6 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict dPc9yGDdfREaD9iEnNhg1L2zGJb16iCKtAZhLANEVvLQ9gdqpdVcBVnHAyuZEy0 +\restrict PNo82BVN0eedB5rDOBv6Gu7eL0Ecnl4qn3b5pPDHddOgIfrbEhVzz5XvtQgRsaL --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -86,5 +86,5 @@ CREATE INDEX companies_category_tag_type_stats_query_idx ON frontend.companies_c -- PostgreSQL database dump complete -- -\unrestrict dPc9yGDdfREaD9iEnNhg1L2zGJb16iCKtAZhLANEVvLQ9gdqpdVcBVnHAyuZEy0 +\unrestrict PNo82BVN0eedB5rDOBv6Gu7eL0Ecnl4qn3b5pPDHddOgIfrbEhVzz5XvtQgRsaL diff --git a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql index 8c2e0115..0d0522dc 100644 --- a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict XtZwxdXJZEL5haag2cDXg8NxO9SVs7NcKqYpWSnhUeYvM2Zs35MEGxjSuXeh3t0 +\restrict kMZj0re3qbuI4ufbuLyYnfStAFzE8uqJkU9kQ4qksJiVKVXWKmIrPMS0ZrNnHFt --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -130,5 +130,5 @@ ALTER MATERIALIZED VIEW frontend.companies_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict XtZwxdXJZEL5haag2cDXg8NxO9SVs7NcKqYpWSnhUeYvM2Zs35MEGxjSuXeh3t0 +\unrestrict kMZj0re3qbuI4ufbuLyYnfStAFzE8uqJkU9kQ4qksJiVKVXWKmIrPMS0ZrNnHFt diff --git a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql index 3a137265..ee1719f0 100644 --- a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql +++ b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict Fkc0XUwzwhC7ds6Dnyn2SOgeHyaDMuLgY8z00gVEs3TEusgs4aHonvFfjW08kc0 +\restrict Z4AJWwaP82NK0uhqukSFQUAaelFJRWDWRZ7Jvpzx8Cz5UNnyrhaJMtjyTalNjrN --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -54,5 +54,5 @@ CREATE UNIQUE INDEX companies_open_source_percent_unique ON frontend.companies_o -- PostgreSQL database dump complete -- -\unrestrict Fkc0XUwzwhC7ds6Dnyn2SOgeHyaDMuLgY8z00gVEs3TEusgs4aHonvFfjW08kc0 +\unrestrict Z4AJWwaP82NK0uhqukSFQUAaelFJRWDWRZ7Jvpzx8Cz5UNnyrhaJMtjyTalNjrN diff --git a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql index 5297a1ac..de3ef2a5 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict cdglKtSqvDxhG6JvuRkwkblvYhiTi02iFURJwtym2wO8MOQHDUco0heAfmkOvze +\restrict Q5ghx5UNhlsVnqhqtKXrwIXZtLDaVXynUxGD7vjYYV0zrhRAeEZdSZKPYrdh5K9 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -87,5 +87,5 @@ CREATE INDEX companies_parent_category_stats_query_idx ON frontend.companies_par -- PostgreSQL database dump complete -- -\unrestrict cdglKtSqvDxhG6JvuRkwkblvYhiTi02iFURJwtym2wO8MOQHDUco0heAfmkOvze +\unrestrict Q5ghx5UNhlsVnqhqtKXrwIXZtLDaVXynUxGD7vjYYV0zrhRAeEZdSZKPYrdh5K9 diff --git a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql index c32f050e..18b7072f 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 3k6fcLUecHTChC2qAdyatWg25Cv6KGjgWMunUSjiirhrunqGMee63Sqs4OIMjTC +\restrict gyfQHdGyJ3UBe80YFdf3AXzIhRbIak0EZv6V7GkhJHIokFYmmPtGcNE3fOXPWJB --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -90,5 +90,5 @@ CREATE INDEX companies_parent_category_tag_stats_query_idx ON frontend.companies -- PostgreSQL database dump complete -- -\unrestrict 3k6fcLUecHTChC2qAdyatWg25Cv6KGjgWMunUSjiirhrunqGMee63Sqs4OIMjTC +\unrestrict gyfQHdGyJ3UBe80YFdf3AXzIhRbIak0EZv6V7GkhJHIokFYmmPtGcNE3fOXPWJB diff --git a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql index 1556de50..a717850b 100644 --- a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict rDKCV0vejaO5aiowL8LAPJpvTrf4FD0mXbjSz1IQWyaZWAvThw9ytIFh7gHoa0l +\restrict Dpv0qfLHRN4sBWCxbPq3re6jHLOOoLErMbdPDUbhcgFu5m2Zw4cby8npQbycZ3q --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX companies_sdks_overview_unique_idx ON frontend.companies_sdk -- PostgreSQL database dump complete -- -\unrestrict rDKCV0vejaO5aiowL8LAPJpvTrf4FD0mXbjSz1IQWyaZWAvThw9ytIFh7gHoa0l +\unrestrict Dpv0qfLHRN4sBWCxbPq3re6jHLOOoLErMbdPDUbhcgFu5m2Zw4cby8npQbycZ3q diff --git a/pg-ddl/schema/frontend/company_domain_country__matview.sql b/pg-ddl/schema/frontend/company_domain_country__matview.sql index c795e5fe..a7f3055c 100644 --- a/pg-ddl/schema/frontend/company_domain_country__matview.sql +++ b/pg-ddl/schema/frontend/company_domain_country__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict Rhu0cIcSovHzzvcVyoTcGN4ElnbnTgdSS8FeRGghKAvpGvnKe4ZMurETcwv1dM9 +\restrict lwdkjtrzGGWUkQRo11xGVj61f7iogCklKWYU62ey1KWW6TSQBa6wsnbachg9xlV --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -74,5 +74,5 @@ ALTER MATERIALIZED VIEW frontend.company_domain_country OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict Rhu0cIcSovHzzvcVyoTcGN4ElnbnTgdSS8FeRGghKAvpGvnKe4ZMurETcwv1dM9 +\unrestrict lwdkjtrzGGWUkQRo11xGVj61f7iogCklKWYU62ey1KWW6TSQBa6wsnbachg9xlV diff --git a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql index 2be2fe13..16558ec6 100644 --- a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 7oHB0SYSHduhrvvQdqTznt8GdMGJQv3pFU5je00Q3ymSiKMwpIRNobYeQSi2GbZ +\restrict zjpSAD3Y7Li8JUpZ3vqd3gRPLIurIA0J8IzvaoUkAvvzfcRXeqca0NhCQzX8wO9 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -115,5 +115,5 @@ CREATE UNIQUE INDEX idx_unique_company_domains_top_apps ON frontend.company_doma -- PostgreSQL database dump complete -- -\unrestrict 7oHB0SYSHduhrvvQdqTznt8GdMGJQv3pFU5je00Q3ymSiKMwpIRNobYeQSi2GbZ +\unrestrict zjpSAD3Y7Li8JUpZ3vqd3gRPLIurIA0J8IzvaoUkAvvzfcRXeqca0NhCQzX8wO9 diff --git a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql index eded4a47..67337044 100644 --- a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict clV6qj8pdjuS3nFzYjALtbK0bPd98Ztt7Ze8CXEcHBEasX7YE7H6rmx61uUBp6W +\restrict 8F6r4iHjbIOSxiBbIqBCaiEKeyiZBTlsKwV3u8ByiSIdCSVk2AYPhbqZLhR4e32 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -35,6 +35,8 @@ CREATE MATERIALIZED VIEW frontend.company_parent_top_apps AS sa.name, sa.store_id, csapc.app_category, + sa.developer_name, + sa.icon_url_100, sa.installs_sum_4w AS installs_d30, sa.ratings_sum_4w AS rating_count_d30, csapc.sdk, @@ -50,6 +52,8 @@ CREATE MATERIALIZED VIEW frontend.company_parent_top_apps AS deduped_data.store, deduped_data.name, deduped_data.store_id, + deduped_data.developer_name, + deduped_data.icon_url_100, deduped_data.app_category, deduped_data.installs_d30, deduped_data.rating_count_d30, @@ -65,7 +69,9 @@ CREATE MATERIALIZED VIEW frontend.company_parent_top_apps AS store, name, store_id, + developer_name, app_category, + icon_url_100, installs_d30, rating_count_d30, sdk, @@ -105,5 +111,5 @@ CREATE UNIQUE INDEX idx_company_parent_top_apps_unique ON frontend.company_paren -- PostgreSQL database dump complete -- -\unrestrict clV6qj8pdjuS3nFzYjALtbK0bPd98Ztt7Ze8CXEcHBEasX7YE7H6rmx61uUBp6W +\unrestrict 8F6r4iHjbIOSxiBbIqBCaiEKeyiZBTlsKwV3u8ByiSIdCSVk2AYPhbqZLhR4e32 diff --git a/pg-ddl/schema/frontend/company_top_apps__matview.sql b/pg-ddl/schema/frontend/company_top_apps__matview.sql index a4d53824..3ad6ac2d 100644 --- a/pg-ddl/schema/frontend/company_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_top_apps__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict E3wij5mxR0GFYKjle0z3NcdD7dkjT6Mbw2433RATEK2eHgTWl3IYYX7uj4pfIZF +\restrict sbubiDP11YvyGThUgg0GjQLYRb9XGLvEH7DYq4OpJwaSUpeBJG1MP2VfqIAizV7 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -35,6 +35,8 @@ CREATE MATERIALIZED VIEW frontend.company_top_apps AS sa.name, sa.store_id, cac.app_category, + sa.developer_name, + sa.icon_url_100, sa.installs_sum_4w AS installs_d30, sa.ratings_sum_4w AS rating_count_d30, cac.sdk, @@ -50,6 +52,8 @@ CREATE MATERIALIZED VIEW frontend.company_top_apps AS deduped_data.store, deduped_data.name, deduped_data.store_id, + deduped_data.developer_name, + deduped_data.icon_url_100, deduped_data.app_category, deduped_data.installs_d30, deduped_data.rating_count_d30, @@ -65,6 +69,8 @@ CREATE MATERIALIZED VIEW frontend.company_top_apps AS store, name, store_id, + developer_name, + icon_url_100, app_category, installs_d30, rating_count_d30, @@ -112,5 +118,5 @@ CREATE UNIQUE INDEX idx_unique_company_top_apps ON frontend.company_top_apps USI -- PostgreSQL database dump complete -- -\unrestrict E3wij5mxR0GFYKjle0z3NcdD7dkjT6Mbw2433RATEK2eHgTWl3IYYX7uj4pfIZF +\unrestrict sbubiDP11YvyGThUgg0GjQLYRb9XGLvEH7DYq4OpJwaSUpeBJG1MP2VfqIAizV7 diff --git a/pg-ddl/schema/frontend/keyword_scores__matview.sql b/pg-ddl/schema/frontend/keyword_scores__matview.sql index 4714726f..16e02eeb 100644 --- a/pg-ddl/schema/frontend/keyword_scores__matview.sql +++ b/pg-ddl/schema/frontend/keyword_scores__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 2WtDDWINDaH9mPSYVmqd9YuqC9xWxPoCDssZEQ1p3viy0riQ1DI4jZP0Nc3XKdU +\restrict mFZea2caNHqSEAEKE0MygioFaGUzzRzJdB2dgadmbDNWVdwG8oWA0a6TUDBwEKa --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -133,9 +133,16 @@ CREATE MATERIALIZED VIEW frontend.keyword_scores AS ALTER MATERIALIZED VIEW frontend.keyword_scores OWNER TO postgres; +-- +-- Name: keyword_scores_store_keyword_id_idx; Type: INDEX; Schema: frontend; Owner: postgres +-- + +CREATE UNIQUE INDEX keyword_scores_store_keyword_id_idx ON frontend.keyword_scores USING btree (store, keyword_id); + + -- -- PostgreSQL database dump complete -- -\unrestrict 2WtDDWINDaH9mPSYVmqd9YuqC9xWxPoCDssZEQ1p3viy0riQ1DI4jZP0Nc3XKdU +\unrestrict mFZea2caNHqSEAEKE0MygioFaGUzzRzJdB2dgadmbDNWVdwG8oWA0a6TUDBwEKa diff --git a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql index d20a0850..aecdbad7 100644 --- a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql +++ b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict Sij27e7FmEN1SoFqdJIke8RSSWAuydfBWvmfKKd69pfGd92assCEL1JjHdT6cfa +\restrict yxbuFX85tn01LhSvzTOZpz1mEGlGcgIMmZU5rGz2skzxnF8Y6UjJbYzx1zAlcFK --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -77,5 +77,5 @@ CREATE UNIQUE INDEX latest_sdk_scanned_apps_unique_index ON frontend.latest_sdk_ -- PostgreSQL database dump complete -- -\unrestrict Sij27e7FmEN1SoFqdJIke8RSSWAuydfBWvmfKKd69pfGd92assCEL1JjHdT6cfa +\unrestrict yxbuFX85tn01LhSvzTOZpz1mEGlGcgIMmZU5rGz2skzxnF8Y6UjJbYzx1zAlcFK diff --git a/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql b/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql new file mode 100644 index 00000000..637ad647 --- /dev/null +++ b/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql @@ -0,0 +1,82 @@ +-- +-- PostgreSQL database dump +-- + +\restrict 2PKmdIf0lsNMmdP2mQUtqaDbsDFaCl9fbZCOmxksMs35blu3n3TJe9lypsvHm8d + +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: mediation_adapter_app_counts; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres +-- + +CREATE MATERIALIZED VIEW frontend.mediation_adapter_app_counts AS + WITH filter_mediation_strings AS ( + SELECT vs.id AS string_id, + sd.company_id AS mediation_company_id, + vs.value_name AS full_sdk, + regexp_replace(regexp_replace(vs.value_name, concat(cmp.mediation_pattern, '.'), ''::text), '\..*$'::text, ''::text) AS adapter_string + FROM ((public.version_strings vs + JOIN adtech.sdk_mediation_patterns cmp ON ((lower(vs.value_name) ~~ (lower(concat((cmp.mediation_pattern)::text, '.')) || '%'::text)))) + JOIN adtech.sdks sd ON ((cmp.sdk_id = sd.id))) + ), mediation_strings AS ( + SELECT fms.string_id, + fms.mediation_company_id, + cma.company_id AS adapter_company_id, + fms.adapter_string, + fms.full_sdk + FROM (filter_mediation_strings fms + LEFT JOIN adtech.company_mediation_adapters cma ON ((lower(fms.adapter_string) ~~ (lower((cma.adapter_pattern)::text) || '%'::text)))) + WHERE (fms.mediation_company_id <> cma.company_id) + ), app_counts AS ( + SELECT ms.mediation_company_id, + ms.adapter_string, + ms.adapter_company_id, + cm.mapped_category AS app_category, + count(DISTINCT sass.store_app) AS app_count + FROM (((adtech.store_app_sdk_strings sass + JOIN mediation_strings ms ON ((sass.version_string_id = ms.string_id))) + LEFT JOIN public.store_apps sa ON ((sass.store_app = sa.id))) + LEFT JOIN public.category_mapping cm ON (((sa.category)::text = (cm.original_category)::text))) + GROUP BY ms.mediation_company_id, ms.adapter_string, ms.adapter_company_id, cm.mapped_category + ) + SELECT md.domain_name AS mediation_domain, + ac.adapter_string, + ad.domain_name AS adapter_domain, + adc.name AS adapter_company_name, + adc.logo_url AS adapter_logo_url, + ac.app_category, + ac.app_count + FROM ((((app_counts ac + LEFT JOIN adtech.companies mdc ON ((ac.mediation_company_id = mdc.id))) + LEFT JOIN public.domains md ON ((mdc.domain_id = md.id))) + LEFT JOIN adtech.companies adc ON ((ac.adapter_company_id = adc.id))) + LEFT JOIN public.domains ad ON ((adc.domain_id = ad.id))) + WITH NO DATA; + + +ALTER MATERIALIZED VIEW frontend.mediation_adapter_app_counts OWNER TO postgres; + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict 2PKmdIf0lsNMmdP2mQUtqaDbsDFaCl9fbZCOmxksMs35blu3n3TJe9lypsvHm8d + diff --git a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql index a234150a..33007d76 100644 --- a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql +++ b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 8DBf4vawmGwsxb8O6hKgb2M0Y22uxKPs21O03NJhKcmrPCVYGyZQzXv2R7LEpUA +\restrict Ulz1KD8Uz9vlOQQmrYeAI9jKQSpcszmqqdG4qb8xbm2hZj1CE56OZt2dLydoziN --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -61,5 +61,5 @@ ALTER MATERIALIZED VIEW frontend.store_app_api_companies OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 8DBf4vawmGwsxb8O6hKgb2M0Y22uxKPs21O03NJhKcmrPCVYGyZQzXv2R7LEpUA +\unrestrict Ulz1KD8Uz9vlOQQmrYeAI9jKQSpcszmqqdG4qb8xbm2hZj1CE56OZt2dLydoziN diff --git a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql index 8a0c3d98..b0a2594e 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict Y9kP6iMCypTIsuDsCbNdB2WwM5baJdvQxKili82W78kR4OmFQmj5ZmsQOzIrYSH +\restrict CjuKv1vsEkhtyLriMGCdCwO3dIXKkcTMZ1saadZsUuXk6X7Ri7lB9GgY4iz5Geb --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -71,5 +71,5 @@ CREATE UNIQUE INDEX store_app_ranks_best_monthly_uidx ON frontend.store_app_rank -- PostgreSQL database dump complete -- -\unrestrict Y9kP6iMCypTIsuDsCbNdB2WwM5baJdvQxKili82W78kR4OmFQmj5ZmsQOzIrYSH +\unrestrict CjuKv1vsEkhtyLriMGCdCwO3dIXKkcTMZ1saadZsUuXk6X7Ri7lB9GgY4iz5Geb diff --git a/pg-ddl/schema/frontend/store_app_ranks_daily.sql b/pg-ddl/schema/frontend/store_app_ranks_daily.sql index 6da64c2a..00622401 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_daily.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_daily.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict VyzIRk2fhfDgpYbPl2woMzFK0I0kCH8OIYOpgvQlZE7OISyau2ZYtGXK6g9sEsl +\restrict aDcpIp9fJt46L3tD5FEVsdQM5tqfkb4DxcJfsDcSYHg7PJlEpzio5gAUM9NXbSP --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -91,5 +91,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_daily -- PostgreSQL database dump complete -- -\unrestrict VyzIRk2fhfDgpYbPl2woMzFK0I0kCH8OIYOpgvQlZE7OISyau2ZYtGXK6g9sEsl +\unrestrict aDcpIp9fJt46L3tD5FEVsdQM5tqfkb4DxcJfsDcSYHg7PJlEpzio5gAUM9NXbSP diff --git a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql index e51582d3..86c3fc65 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict uw9YV8rv2tRdcsLreoX6ND9DdgDt82Ri5wxiK4Jk3hgqncOesDAgssyXfY4Dtlw +\restrict VQsHRS7BDYoqsMdR8rArhA3jTCu2ONRW9wzYTlRcE1OUy9gwLzbjCR62dbx1te5 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -39,6 +39,7 @@ CREATE MATERIALIZED VIEW frontend.store_app_ranks_latest AS sa.name, sa.store_id, sa.store, + sa.developer_name, sa.installs, sa.rating_count, sa.rating, @@ -72,5 +73,5 @@ CREATE UNIQUE INDEX idx_store_app_ranks_latest_filter_sort ON frontend.store_app -- PostgreSQL database dump complete -- -\unrestrict uw9YV8rv2tRdcsLreoX6ND9DdgDt82Ri5wxiK4Jk3hgqncOesDAgssyXfY4Dtlw +\unrestrict VQsHRS7BDYoqsMdR8rArhA3jTCu2ONRW9wzYTlRcE1OUy9gwLzbjCR62dbx1te5 diff --git a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql index a7585cbd..616adc7d 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 6EFiGoc3vqCvA0oWXUWOhupZ2lgUlchHc0N3xBcOrj0Wfncy0NI2UhIGd5TFXZu +\restrict BQdpPaLKt2CzaYNeNJ6TNox277eKQhq1uU00qmStxcGA0wojW5dzgTpytYHJO8N --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -98,5 +98,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_weekly -- PostgreSQL database dump complete -- -\unrestrict 6EFiGoc3vqCvA0oWXUWOhupZ2lgUlchHc0N3xBcOrj0Wfncy0NI2UhIGd5TFXZu +\unrestrict BQdpPaLKt2CzaYNeNJ6TNox277eKQhq1uU00qmStxcGA0wojW5dzgTpytYHJO8N diff --git a/pg-ddl/schema/frontend/store_apps_overview__matview.sql b/pg-ddl/schema/frontend/store_apps_overview__matview.sql index c5c8a682..41eaa0d3 100644 --- a/pg-ddl/schema/frontend/store_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/store_apps_overview__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict bHxMGD2MyZTL0geELEYYhZthLErpjn3T52DHT4HgAs7swxbanzyk9qubRFfcBJh +\restrict SHtZRLImzWYLvZX5T4sToumJ0HTFOF6bKbw9RVCk1wTuWex1ZigllSKcGoEbxBx --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -173,6 +173,13 @@ CREATE MATERIALIZED VIEW frontend.store_apps_overview AS ALTER MATERIALIZED VIEW frontend.store_apps_overview OWNER TO postgres; +-- +-- Name: store_apps_overview_textsearch_idx; Type: INDEX; Schema: frontend; Owner: postgres +-- + +CREATE INDEX store_apps_overview_textsearch_idx ON frontend.store_apps_overview USING gin (textsearchable); + + -- -- Name: store_apps_overview_unique_idx; Type: INDEX; Schema: frontend; Owner: postgres -- @@ -198,5 +205,5 @@ CREATE UNIQUE INDEX store_apps_overview_unique_store_id_idx ON frontend.store_ap -- PostgreSQL database dump complete -- -\unrestrict bHxMGD2MyZTL0geELEYYhZthLErpjn3T52DHT4HgAs7swxbanzyk9qubRFfcBJh +\unrestrict SHtZRLImzWYLvZX5T4sToumJ0HTFOF6bKbw9RVCk1wTuWex1ZigllSKcGoEbxBx diff --git a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql b/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql index 3f75883a..56b3ec33 100644 --- a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql +++ b/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict VFUxBYpJJzqefKYdcakYJSLTXibJuahu9PWm9T5LZsBW2AoSKo5wXhVDPVN5v9u +\restrict bw5kuKLgFqali6aMN9kAman9YJdC3caat6gDTJBWhyEIjcDLsxlielFaxj6ZcbU --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -84,6 +84,7 @@ CREATE MATERIALIZED VIEW frontend.store_apps_z_scores AS LEFT JOIN public.store_apps sa ON ((saz.store_app = sa.id))) LEFT JOIN app_metrics am ON ((saz.store_app = am.store_app))) LEFT JOIN public.category_mapping cm ON (((sa.category)::text = (cm.original_category)::text))) + WHERE (sa.store = ANY (ARRAY[1, 2])) ) SELECT store, store_id, @@ -124,5 +125,5 @@ CREATE UNIQUE INDEX frontend_store_apps_z_scores_unique ON frontend.store_apps_z -- PostgreSQL database dump complete -- -\unrestrict VFUxBYpJJzqefKYdcakYJSLTXibJuahu9PWm9T5LZsBW2AoSKo5wXhVDPVN5v9u +\unrestrict bw5kuKLgFqali6aMN9kAman9YJdC3caat6gDTJBWhyEIjcDLsxlielFaxj6ZcbU diff --git a/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql b/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql index d412cf35..359f243e 100644 --- a/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql +++ b/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict uxeNazwNSdTnByAlHsUrdmjmH2MEZZmfoDlp0keNxtLIuQIODXnOKSkWB6rCK3s +\restrict OgKKtM1xxzoCf3uNxfs1IIsOHwu9KlPDvcunRiK765kkwKJROzQfLY3ChIZ4aY7 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -53,5 +53,5 @@ CREATE UNIQUE INDEX idx_total_categories_app_counts ON frontend.total_categories -- PostgreSQL database dump complete -- -\unrestrict uxeNazwNSdTnByAlHsUrdmjmH2MEZZmfoDlp0keNxtLIuQIODXnOKSkWB6rCK3s +\unrestrict OgKKtM1xxzoCf3uNxfs1IIsOHwu9KlPDvcunRiK765kkwKJROzQfLY3ChIZ4aY7 diff --git a/pg-ddl/schema/full_db_dump.sql b/pg-ddl/schema/full_db_dump.sql index 5a14c556..a0f45650 100644 --- a/pg-ddl/schema/full_db_dump.sql +++ b/pg-ddl/schema/full_db_dump.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict YN5pf2W3Mo9kwVZB0VjdIB2Z7lpYJOnffPfo4LzSTgsnmhTIKYWxdk1O4Q3BgSJ +\restrict mCACbDkQ8bhWlrsSS73ZknnV2d4oNqxJQEyLQURVYjwTAFZaXP0Tnb2tYIRlAWf --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -1356,6 +1356,252 @@ CREATE MATERIALIZED VIEW adtech.combined_store_apps_companies AS ALTER MATERIALIZED VIEW adtech.combined_store_apps_companies OWNER TO postgres; +-- +-- Name: store_app_sdk_strings_2025_h1; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres +-- + +CREATE MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h1 AS + WITH latest_version_codes AS ( + SELECT DISTINCT ON (vc_1.store_app) vc_1.id, + vc_1.store_app, + vc_1.version_code, + vc_1.updated_at, + vc_1.crawl_result + FROM (public.version_codes vc_1 + JOIN public.version_code_sdk_scan_results vcssr ON ((vc_1.id = vcssr.version_code_id))) + WHERE ((vcssr.scan_result = 1) AND (vc_1.updated_at >= '2025-01-01 00:00:00'::timestamp without time zone) AND (vc_1.updated_at < '2025-07-01 00:00:00'::timestamp without time zone)) + ORDER BY vc_1.store_app, (string_to_array((vc_1.version_code)::text, '.'::text))::bigint[] DESC + ) + SELECT vc.store_app, + vdm.string_id AS version_string_id, + css.company_id + FROM ((latest_version_codes vc + JOIN public.version_details_map vdm ON ((vc.id = vdm.version_code))) + JOIN adtech.company_sdk_strings css ON ((vdm.string_id = css.version_string_id))) + WITH NO DATA; + + +ALTER MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h1 OWNER TO postgres; + +-- +-- Name: combined_store_apps_companies_2025_h1; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres +-- + +CREATE MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h1 AS + WITH api_based_companies AS ( + SELECT DISTINCT saac.store_app, + cm.mapped_category AS app_category, + cdm.company_id, + c_1.parent_company_id AS parent_id, + 'api_call'::text AS tag_source, + COALESCE(cad_1.domain_name, (saac.tld_url)::character varying) AS ad_domain + FROM ((((((public.api_calls saac + LEFT JOIN public.store_apps sa_1 ON ((saac.store_app = sa_1.id))) + LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) + LEFT JOIN public.domains ad_1 ON ((saac.tld_url = (ad_1.domain_name)::text))) + LEFT JOIN adtech.company_domain_mapping cdm ON ((ad_1.id = cdm.domain_id))) + LEFT JOIN adtech.companies c_1 ON ((cdm.company_id = c_1.id))) + LEFT JOIN public.domains cad_1 ON ((c_1.domain_id = cad_1.id))) + WHERE ((saac.called_at >= '2025-01-01 00:00:00'::timestamp without time zone) AND (saac.called_at < '2025-07-01 00:00:00'::timestamp without time zone)) + ), developer_based_companies AS ( + SELECT DISTINCT sa_1.id AS store_app, + cm.mapped_category AS app_category, + cd.company_id, + d.domain_name AS ad_domain, + 'developer'::text AS tag_source, + COALESCE(c_1.parent_company_id, cd.company_id) AS parent_id + FROM ((((adtech.company_developers cd + LEFT JOIN public.store_apps sa_1 ON ((cd.developer_id = sa_1.developer))) + LEFT JOIN adtech.companies c_1 ON ((cd.company_id = c_1.id))) + LEFT JOIN public.domains d ON ((c_1.domain_id = d.id))) + LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) + ), sdk_based_companies AS ( + SELECT DISTINCT sac.store_app, + cm.mapped_category AS app_category, + sac.company_id, + ad_1.domain_name AS ad_domain, + 'sdk'::text AS tag_source, + COALESCE(c_1.parent_company_id, sac.company_id) AS parent_id + FROM ((((adtech.store_app_sdk_strings_2025_h1 sac + LEFT JOIN adtech.companies c_1 ON ((sac.company_id = c_1.id))) + LEFT JOIN public.domains ad_1 ON ((c_1.domain_id = ad_1.id))) + LEFT JOIN public.store_apps sa_1 ON ((sac.store_app = sa_1.id))) + LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) + ), distinct_ad_and_pub_domains AS ( + SELECT DISTINCT pd.domain_name AS publisher_domain_url, + ad_1.domain_name AS ad_domain_url, + aae.relationship + FROM ((((public.app_ads_entrys aae + LEFT JOIN public.domains ad_1 ON ((aae.ad_domain = ad_1.id))) + LEFT JOIN public.app_ads_map aam ON ((aae.id = aam.app_ads_entry))) + LEFT JOIN public.domains pd ON ((aam.pub_domain = pd.id))) + LEFT JOIN public.adstxt_crawl_results pdcr ON ((pd.id = pdcr.domain_id))) + WHERE ((pdcr.crawled_at - aam.updated_at) < '01:00:00'::interval) + ), combined_sources AS ( + SELECT api_based_companies.store_app, + api_based_companies.app_category, + api_based_companies.company_id, + api_based_companies.parent_id, + api_based_companies.ad_domain, + api_based_companies.tag_source + FROM api_based_companies + UNION ALL + SELECT sdk_based_companies.store_app, + sdk_based_companies.app_category, + sdk_based_companies.company_id, + sdk_based_companies.parent_id, + sdk_based_companies.ad_domain, + sdk_based_companies.tag_source + FROM sdk_based_companies + ) + SELECT cs.ad_domain, + cs.store_app, + sa.category AS app_category, + c.id AS company_id, + COALESCE(c.parent_company_id, c.id) AS parent_id, + CASE + WHEN (sa.sdk_successful_last_crawled IS NOT NULL) THEN bool_or((cs.tag_source = 'sdk'::text)) + ELSE NULL::boolean + END AS sdk, + CASE + WHEN (sa.api_successful_last_crawled IS NOT NULL) THEN bool_or((cs.tag_source = 'api_call'::text)) + ELSE NULL::boolean + END AS api_call, + bool_or((cs.tag_source = 'app_ads_direct'::text)) AS app_ads_direct, + bool_or((cs.tag_source = 'app_ads_reseller'::text)) AS app_ads_reseller + FROM (((combined_sources cs + LEFT JOIN frontend.store_apps_overview sa ON ((cs.store_app = sa.id))) + LEFT JOIN public.domains ad ON (((cs.ad_domain)::text = (ad.domain_name)::text))) + LEFT JOIN adtech.companies c ON ((ad.id = c.domain_id))) + GROUP BY cs.ad_domain, cs.store_app, sa.category, c.id, c.parent_company_id, sa.sdk_successful_last_crawled, sa.api_successful_last_crawled + WITH NO DATA; + + +ALTER MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h1 OWNER TO postgres; + +-- +-- Name: store_app_sdk_strings_2025_h2; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres +-- + +CREATE MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h2 AS + WITH latest_version_codes AS ( + SELECT DISTINCT ON (vc_1.store_app) vc_1.id, + vc_1.store_app, + vc_1.version_code, + vc_1.updated_at, + vc_1.crawl_result + FROM (public.version_codes vc_1 + JOIN public.version_code_sdk_scan_results vcssr ON ((vc_1.id = vcssr.version_code_id))) + WHERE ((vcssr.scan_result = 1) AND (vc_1.updated_at >= '2025-01-01 00:00:00'::timestamp without time zone) AND (vc_1.updated_at < '2026-01-01 00:00:00'::timestamp without time zone)) + ORDER BY vc_1.store_app, (string_to_array((vc_1.version_code)::text, '.'::text))::bigint[] DESC + ) + SELECT vc.store_app, + vdm.string_id AS version_string_id, + css.company_id + FROM ((latest_version_codes vc + JOIN public.version_details_map vdm ON ((vc.id = vdm.version_code))) + JOIN adtech.company_sdk_strings css ON ((vdm.string_id = css.version_string_id))) + WITH NO DATA; + + +ALTER MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h2 OWNER TO postgres; + +-- +-- Name: combined_store_apps_companies_2025_h2; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres +-- + +CREATE MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h2 AS + WITH api_based_companies AS ( + SELECT DISTINCT saac.store_app, + cm.mapped_category AS app_category, + cdm.company_id, + c_1.parent_company_id AS parent_id, + 'api_call'::text AS tag_source, + COALESCE(cad_1.domain_name, (saac.tld_url)::character varying) AS ad_domain + FROM ((((((public.api_calls saac + LEFT JOIN public.store_apps sa_1 ON ((saac.store_app = sa_1.id))) + LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) + LEFT JOIN public.domains ad_1 ON ((saac.tld_url = (ad_1.domain_name)::text))) + LEFT JOIN adtech.company_domain_mapping cdm ON ((ad_1.id = cdm.domain_id))) + LEFT JOIN adtech.companies c_1 ON ((cdm.company_id = c_1.id))) + LEFT JOIN public.domains cad_1 ON ((c_1.domain_id = cad_1.id))) + WHERE ((saac.called_at >= '2025-01-01 00:00:00'::timestamp without time zone) AND (saac.called_at < '2026-01-01 00:00:00'::timestamp without time zone)) + ), developer_based_companies AS ( + SELECT DISTINCT sa_1.id AS store_app, + cm.mapped_category AS app_category, + cd.company_id, + d.domain_name AS ad_domain, + 'developer'::text AS tag_source, + COALESCE(c_1.parent_company_id, cd.company_id) AS parent_id + FROM ((((adtech.company_developers cd + LEFT JOIN public.store_apps sa_1 ON ((cd.developer_id = sa_1.developer))) + LEFT JOIN adtech.companies c_1 ON ((cd.company_id = c_1.id))) + LEFT JOIN public.domains d ON ((c_1.domain_id = d.id))) + LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) + ), sdk_based_companies AS ( + SELECT DISTINCT sac.store_app, + cm.mapped_category AS app_category, + sac.company_id, + ad_1.domain_name AS ad_domain, + 'sdk'::text AS tag_source, + COALESCE(c_1.parent_company_id, sac.company_id) AS parent_id + FROM ((((adtech.store_app_sdk_strings_2025_h2 sac + LEFT JOIN adtech.companies c_1 ON ((sac.company_id = c_1.id))) + LEFT JOIN public.domains ad_1 ON ((c_1.domain_id = ad_1.id))) + LEFT JOIN public.store_apps sa_1 ON ((sac.store_app = sa_1.id))) + LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) + ), distinct_ad_and_pub_domains AS ( + SELECT DISTINCT pd.domain_name AS publisher_domain_url, + ad_1.domain_name AS ad_domain_url, + aae.relationship + FROM ((((public.app_ads_entrys aae + LEFT JOIN public.domains ad_1 ON ((aae.ad_domain = ad_1.id))) + LEFT JOIN public.app_ads_map aam ON ((aae.id = aam.app_ads_entry))) + LEFT JOIN public.domains pd ON ((aam.pub_domain = pd.id))) + LEFT JOIN public.adstxt_crawl_results pdcr ON ((pd.id = pdcr.domain_id))) + WHERE ((pdcr.crawled_at - aam.updated_at) < '01:00:00'::interval) + ), combined_sources AS ( + SELECT api_based_companies.store_app, + api_based_companies.app_category, + api_based_companies.company_id, + api_based_companies.parent_id, + api_based_companies.ad_domain, + api_based_companies.tag_source + FROM api_based_companies + UNION ALL + SELECT sdk_based_companies.store_app, + sdk_based_companies.app_category, + sdk_based_companies.company_id, + sdk_based_companies.parent_id, + sdk_based_companies.ad_domain, + sdk_based_companies.tag_source + FROM sdk_based_companies + ) + SELECT cs.ad_domain, + cs.store_app, + sa.category AS app_category, + c.id AS company_id, + COALESCE(c.parent_company_id, c.id) AS parent_id, + CASE + WHEN (sa.sdk_successful_last_crawled IS NOT NULL) THEN bool_or((cs.tag_source = 'sdk'::text)) + ELSE NULL::boolean + END AS sdk, + CASE + WHEN (sa.api_successful_last_crawled IS NOT NULL) THEN bool_or((cs.tag_source = 'api_call'::text)) + ELSE NULL::boolean + END AS api_call, + bool_or((cs.tag_source = 'app_ads_direct'::text)) AS app_ads_direct, + bool_or((cs.tag_source = 'app_ads_reseller'::text)) AS app_ads_reseller + FROM (((combined_sources cs + LEFT JOIN frontend.store_apps_overview sa ON ((cs.store_app = sa.id))) + LEFT JOIN public.domains ad ON (((cs.ad_domain)::text = (ad.domain_name)::text))) + LEFT JOIN adtech.companies c ON ((ad.id = c.domain_id))) + GROUP BY cs.ad_domain, cs.store_app, sa.category, c.id, c.parent_company_id, sa.sdk_successful_last_crawled, sa.api_successful_last_crawled + WITH NO DATA; + + +ALTER MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h2 OWNER TO postgres; + -- -- Name: combined_store_apps_parent_companies; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres -- @@ -1422,6 +1668,181 @@ CREATE MATERIALIZED VIEW adtech.company_categories AS ALTER MATERIALIZED VIEW adtech.company_categories OWNER TO postgres; +-- +-- Name: company_mediation_adapters; Type: TABLE; Schema: adtech; Owner: postgres +-- + +CREATE TABLE adtech.company_mediation_adapters ( + company_id integer NOT NULL, + adapter_pattern character varying(100) NOT NULL +); + + +ALTER TABLE adtech.company_mediation_adapters OWNER TO postgres; + +-- +-- Name: company_mediation_patterns; Type: TABLE; Schema: adtech; Owner: postgres +-- + +CREATE TABLE adtech.company_mediation_patterns ( + company_id integer NOT NULL, + mediation_pattern character varying(255) NOT NULL +); + + +ALTER TABLE adtech.company_mediation_patterns OWNER TO postgres; + +-- +-- Name: store_app_ranks_weekly; Type: TABLE; Schema: frontend; Owner: postgres +-- + +CREATE TABLE frontend.store_app_ranks_weekly ( + rank smallint NOT NULL, + best_rank smallint NOT NULL, + country smallint NOT NULL, + store_collection smallint NOT NULL, + store_category smallint NOT NULL, + crawled_date date NOT NULL, + store_app integer NOT NULL +); + + +ALTER TABLE frontend.store_app_ranks_weekly OWNER TO postgres; + +-- +-- Name: company_share_change_2025; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres +-- + +CREATE MATERIALIZED VIEW adtech.company_share_change_2025 AS + WITH limit_apps AS ( + SELECT DISTINCT store_app_ranks_weekly.store_app + FROM frontend.store_app_ranks_weekly + WHERE ((store_app_ranks_weekly.crawled_date >= '2025-01-01'::date) AND (store_app_ranks_weekly.crawled_date < '2026-01-01'::date)) + ), totals AS ( + SELECT 'h1'::text AS half, + count(DISTINCT combined_store_apps_companies_2025_h1.store_app) AS total_apps + FROM adtech.combined_store_apps_companies_2025_h1 + WHERE (combined_store_apps_companies_2025_h1.sdk AND (combined_store_apps_companies_2025_h1.store_app IN ( SELECT limit_apps.store_app + FROM limit_apps))) + UNION ALL + SELECT 'h2'::text AS half, + count(DISTINCT combined_store_apps_companies_2025_h2.store_app) AS total_apps + FROM adtech.combined_store_apps_companies_2025_h2 + WHERE (combined_store_apps_companies_2025_h2.sdk AND (combined_store_apps_companies_2025_h2.store_app IN ( SELECT limit_apps.store_app + FROM limit_apps))) + ), domain_counts AS ( + SELECT 'h1'::text AS half, + combined_store_apps_companies_2025_h1.ad_domain, + count(DISTINCT combined_store_apps_companies_2025_h1.store_app) AS app_count + FROM adtech.combined_store_apps_companies_2025_h1 + WHERE (combined_store_apps_companies_2025_h1.sdk AND (combined_store_apps_companies_2025_h1.store_app IN ( SELECT limit_apps.store_app + FROM limit_apps))) + GROUP BY combined_store_apps_companies_2025_h1.ad_domain + UNION ALL + SELECT 'h2'::text AS half, + combined_store_apps_companies_2025_h2.ad_domain, + count(DISTINCT combined_store_apps_companies_2025_h2.store_app) AS app_count + FROM adtech.combined_store_apps_companies_2025_h2 + WHERE (combined_store_apps_companies_2025_h2.sdk AND (combined_store_apps_companies_2025_h2.store_app IN ( SELECT limit_apps.store_app + FROM limit_apps))) + GROUP BY combined_store_apps_companies_2025_h2.ad_domain + ), shares AS ( + SELECT d.half, + d.ad_domain, + d.app_count, + t.total_apps, + ((d.app_count)::numeric / (NULLIF(t.total_apps, 0))::numeric) AS pct_share + FROM (domain_counts d + JOIN totals t ON ((t.half = d.half))) + ), shares_h1 AS ( + SELECT shares.half, + shares.ad_domain, + shares.app_count, + shares.total_apps, + shares.pct_share + FROM shares + WHERE (shares.half = 'h1'::text) + ), shares_h2 AS ( + SELECT shares.half, + shares.ad_domain, + shares.app_count, + shares.total_apps, + shares.pct_share + FROM shares + WHERE (shares.half = 'h2'::text) + ) + SELECT COALESCE(s2.ad_domain, s1.ad_domain) AS ad_domain, + s1.app_count AS apps_h1, + s1.total_apps AS total_apps_h1, + round((COALESCE(s1.pct_share, (0)::numeric) * (100)::numeric), 4) AS share_h1_pct, + s2.app_count AS apps_h2, + s2.total_apps AS total_apps_h2, + round((COALESCE(s2.pct_share, (0)::numeric) * (100)::numeric), 4) AS share_h2_pct, + (COALESCE(s2.app_count, (0)::bigint) - COALESCE(s1.app_count, (0)::bigint)) AS net_app_change, + CASE + WHEN ((s1.app_count IS NULL) OR (s1.app_count = 0)) THEN 100.00 + ELSE round(((((COALESCE(s2.app_count, (0)::bigint) - s1.app_count))::numeric / (s1.app_count)::numeric) * (100)::numeric), 2) + END AS app_growth_pct, + round(((COALESCE(s2.pct_share, (0)::numeric) - COALESCE(s1.pct_share, (0)::numeric)) * (100)::numeric), 6) AS share_change_pp + FROM (shares_h1 s1 + FULL JOIN shares_h2 s2 ON (((s1.ad_domain)::text = (s2.ad_domain)::text))) + ORDER BY (round(((COALESCE(s2.pct_share, (0)::numeric) - COALESCE(s1.pct_share, (0)::numeric)) * (100)::numeric), 6)) DESC NULLS LAST + WITH NO DATA; + + +ALTER MATERIALIZED VIEW adtech.company_share_change_2025 OWNER TO postgres; + +-- +-- Name: company_shares_2025_common; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres +-- + +CREATE MATERIALIZED VIEW adtech.company_shares_2025_common AS + WITH common_apps AS ( + SELECT h1.store_app + FROM adtech.store_app_sdk_strings_2025_h1 h1 + INTERSECT + SELECT h2.store_app + FROM adtech.store_app_sdk_strings_2025_h2 h2 + ), h1_stats AS ( + SELECT store_app_sdk_strings_2025_h1.company_id, + count(DISTINCT store_app_sdk_strings_2025_h1.store_app) AS h1_app_count + FROM adtech.store_app_sdk_strings_2025_h1 + WHERE (store_app_sdk_strings_2025_h1.store_app IN ( SELECT common_apps.store_app + FROM common_apps)) + GROUP BY store_app_sdk_strings_2025_h1.company_id + ), h2_stats AS ( + SELECT store_app_sdk_strings_2025_h2.company_id, + count(DISTINCT store_app_sdk_strings_2025_h2.store_app) AS h2_app_count + FROM adtech.store_app_sdk_strings_2025_h2 + WHERE (store_app_sdk_strings_2025_h2.store_app IN ( SELECT common_apps.store_app + FROM common_apps)) + GROUP BY store_app_sdk_strings_2025_h2.company_id + ), comb AS ( + SELECT COALESCE(h1.company_id, h2.company_id) AS sdk_company_id, + ( SELECT count(*) AS count + FROM common_apps) AS total_app_count, + h1.h1_app_count, + h2.h2_app_count, + (h2.h2_app_count - h1.h1_app_count) AS net_migration, + round((((h2.h2_app_count)::numeric / (h1.h1_app_count)::numeric) - (1)::numeric), 4) AS round + FROM (h1_stats h1 + FULL JOIN h2_stats h2 ON ((h1.company_id = h2.company_id))) + ) + SELECT co.sdk_company_id, + co.total_app_count, + co.h1_app_count, + co.h2_app_count, + co.net_migration, + co.round, + d.domain_name AS company_domain + FROM ((comb co + LEFT JOIN adtech.companies c ON ((co.sdk_company_id = c.id))) + LEFT JOIN public.domains d ON ((d.id = c.domain_id))) + WITH NO DATA; + + +ALTER MATERIALIZED VIEW adtech.company_shares_2025_common OWNER TO postgres; + -- -- Name: sdk_packages_id_seq; Type: SEQUENCE; Schema: adtech; Owner: postgres -- @@ -2030,6 +2451,7 @@ CREATE MATERIALIZED VIEW frontend.apps_new_monthly AS sa_1.store_id, sa_1.store, sa_1.category, + sa_1.developer_name, sa_1.rating, sa_1.installs, sa_1.installs_sum_1w, @@ -2042,7 +2464,7 @@ CREATE MATERIALIZED VIEW frontend.apps_new_monthly AS sa_1.created_at, sa_1.updated_at, sa_1.crawl_result, - sa_1.icon_url_512, + sa_1.icon_url_100, sa_1.release_date, sa_1.rating_count, sa_1.featured_image_url, @@ -2056,39 +2478,38 @@ CREATE MATERIALIZED VIEW frontend.apps_new_monthly AS FROM frontend.store_apps_overview sa_1 WHERE ((sa_1.release_date >= (CURRENT_DATE - '30 days'::interval)) AND (sa_1.created_at >= (CURRENT_DATE - '45 days'::interval)) AND (sa_1.crawl_result = 1)) ) - SELECT ra.id, - ra.name, - ra.store_id, - ra.store, - ra.category, - ra.rating, - ra.installs, - ra.installs_sum_1w, - ra.installs_sum_4w, - ra.ratings_sum_1w, - ra.ratings_sum_4w, - ra.store_last_updated, - ra.ad_supported, - ra.in_app_purchases, - ra.created_at, - ra.updated_at, - ra.crawl_result, - sa.icon_url_100, - ra.icon_url_512, - ra.release_date, - ra.rating_count, - ra.featured_image_url, - ra.phone_image_url_1, - ra.phone_image_url_2, - ra.phone_image_url_3, - ra.tablet_image_url_1, - ra.tablet_image_url_2, - ra.tablet_image_url_3, - ra.category AS app_category, - ra.rn - FROM (rankedapps ra - LEFT JOIN public.store_apps sa ON ((ra.id = sa.id))) - WHERE (ra.rn <= 100) + SELECT id, + name, + store_id, + store, + category, + developer_name, + rating, + installs, + installs_sum_1w, + installs_sum_4w, + ratings_sum_1w, + ratings_sum_4w, + store_last_updated, + ad_supported, + in_app_purchases, + created_at, + updated_at, + crawl_result, + icon_url_100, + release_date, + rating_count, + featured_image_url, + phone_image_url_1, + phone_image_url_2, + phone_image_url_3, + tablet_image_url_1, + tablet_image_url_2, + tablet_image_url_3, + category AS app_category, + rn + FROM rankedapps ra + WHERE (rn <= 100) WITH NO DATA; @@ -2105,6 +2526,7 @@ CREATE MATERIALIZED VIEW frontend.apps_new_weekly AS sa_1.store_id, sa_1.store, sa_1.category, + sa_1.developer_name, sa_1.rating, sa_1.installs, sa_1.installs_sum_1w, @@ -2117,7 +2539,7 @@ CREATE MATERIALIZED VIEW frontend.apps_new_weekly AS sa_1.created_at, sa_1.updated_at, sa_1.crawl_result, - sa_1.icon_url_512, + sa_1.icon_url_100, sa_1.release_date, sa_1.rating_count, sa_1.featured_image_url, @@ -2131,39 +2553,38 @@ CREATE MATERIALIZED VIEW frontend.apps_new_weekly AS FROM frontend.store_apps_overview sa_1 WHERE ((sa_1.release_date >= (CURRENT_DATE - '7 days'::interval)) AND (sa_1.created_at >= (CURRENT_DATE - '11 days'::interval)) AND (sa_1.crawl_result = 1)) ) - SELECT ra.id, - ra.name, - ra.store_id, - ra.store, - ra.category, - ra.rating, - ra.installs, - ra.installs_sum_1w, - ra.installs_sum_4w, - ra.ratings_sum_1w, - ra.ratings_sum_4w, - ra.store_last_updated, - ra.ad_supported, - ra.in_app_purchases, - ra.created_at, - ra.updated_at, - ra.crawl_result, - sa.icon_url_100, - ra.icon_url_512, - ra.release_date, - ra.rating_count, - ra.featured_image_url, - ra.phone_image_url_1, - ra.phone_image_url_2, - ra.phone_image_url_3, - ra.tablet_image_url_1, - ra.tablet_image_url_2, - ra.tablet_image_url_3, - ra.category AS app_category, - ra.rn - FROM (rankedapps ra - LEFT JOIN public.store_apps sa ON ((ra.id = sa.id))) - WHERE (ra.rn <= 100) + SELECT id, + name, + store_id, + store, + category, + developer_name, + rating, + installs, + installs_sum_1w, + installs_sum_4w, + ratings_sum_1w, + ratings_sum_4w, + store_last_updated, + ad_supported, + in_app_purchases, + created_at, + updated_at, + crawl_result, + icon_url_100, + release_date, + rating_count, + featured_image_url, + phone_image_url_1, + phone_image_url_2, + phone_image_url_3, + tablet_image_url_1, + tablet_image_url_2, + tablet_image_url_3, + category AS app_category, + rn + FROM rankedapps ra + WHERE (rn <= 100) WITH NO DATA; @@ -2180,6 +2601,8 @@ CREATE MATERIALIZED VIEW frontend.apps_new_yearly AS sa_1.store_id, sa_1.store, sa_1.category, + sa_1.developer_name, + sa_1.icon_url_100, sa_1.rating, sa_1.installs, sa_1.installs_sum_1w, @@ -2206,39 +2629,38 @@ CREATE MATERIALIZED VIEW frontend.apps_new_yearly AS FROM frontend.store_apps_overview sa_1 WHERE ((sa_1.release_date >= (CURRENT_DATE - '365 days'::interval)) AND (sa_1.created_at >= (CURRENT_DATE - '380 days'::interval)) AND (sa_1.crawl_result = 1)) ) - SELECT ra.id, - ra.name, - ra.store_id, - ra.store, - ra.category, - ra.rating, - ra.installs, - ra.installs_sum_1w, - ra.installs_sum_4w, - ra.ratings_sum_1w, - ra.ratings_sum_4w, - ra.store_last_updated, - ra.ad_supported, - ra.in_app_purchases, - ra.created_at, - ra.updated_at, - ra.crawl_result, - sa.icon_url_100, - ra.icon_url_512, - ra.release_date, - ra.rating_count, - ra.featured_image_url, - ra.phone_image_url_1, - ra.phone_image_url_2, - ra.phone_image_url_3, - ra.tablet_image_url_1, - ra.tablet_image_url_2, - ra.tablet_image_url_3, - ra.category AS app_category, - ra.rn - FROM (rankedapps ra - LEFT JOIN public.store_apps sa ON ((ra.id = sa.id))) - WHERE (ra.rn <= 100) + SELECT id, + name, + store_id, + store, + category, + developer_name, + rating, + installs, + installs_sum_1w, + installs_sum_4w, + ratings_sum_1w, + ratings_sum_4w, + store_last_updated, + ad_supported, + in_app_purchases, + created_at, + updated_at, + crawl_result, + icon_url_100, + release_date, + rating_count, + featured_image_url, + phone_image_url_1, + phone_image_url_2, + phone_image_url_3, + tablet_image_url_1, + tablet_image_url_2, + tablet_image_url_3, + category AS app_category, + rn + FROM rankedapps ra + WHERE (rn <= 100) WITH NO DATA; @@ -2803,6 +3225,8 @@ CREATE MATERIALIZED VIEW frontend.company_parent_top_apps AS sa.name, sa.store_id, csapc.app_category, + sa.developer_name, + sa.icon_url_100, sa.installs_sum_4w AS installs_d30, sa.ratings_sum_4w AS rating_count_d30, csapc.sdk, @@ -2818,6 +3242,8 @@ CREATE MATERIALIZED VIEW frontend.company_parent_top_apps AS deduped_data.store, deduped_data.name, deduped_data.store_id, + deduped_data.developer_name, + deduped_data.icon_url_100, deduped_data.app_category, deduped_data.installs_d30, deduped_data.rating_count_d30, @@ -2833,7 +3259,9 @@ CREATE MATERIALIZED VIEW frontend.company_parent_top_apps AS store, name, store_id, + developer_name, app_category, + icon_url_100, installs_d30, rating_count_d30, sdk, @@ -2860,6 +3288,8 @@ CREATE MATERIALIZED VIEW frontend.company_top_apps AS sa.name, sa.store_id, cac.app_category, + sa.developer_name, + sa.icon_url_100, sa.installs_sum_4w AS installs_d30, sa.ratings_sum_4w AS rating_count_d30, cac.sdk, @@ -2875,6 +3305,8 @@ CREATE MATERIALIZED VIEW frontend.company_top_apps AS deduped_data.store, deduped_data.name, deduped_data.store_id, + deduped_data.developer_name, + deduped_data.icon_url_100, deduped_data.app_category, deduped_data.installs_d30, deduped_data.rating_count_d30, @@ -2890,6 +3322,8 @@ CREATE MATERIALIZED VIEW frontend.company_top_apps AS store, name, store_id, + developer_name, + icon_url_100, app_category, installs_d30, rating_count_d30, @@ -3084,6 +3518,56 @@ CREATE MATERIALIZED VIEW frontend.latest_sdk_scanned_apps AS ALTER MATERIALIZED VIEW frontend.latest_sdk_scanned_apps OWNER TO postgres; +-- +-- Name: mediation_adapter_app_counts; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres +-- + +CREATE MATERIALIZED VIEW frontend.mediation_adapter_app_counts AS + WITH filter_mediation_strings AS ( + SELECT vs.id AS string_id, + cmp.company_id AS mediation_company_id, + vs.value_name AS full_sdk, + regexp_replace(regexp_replace(vs.value_name, concat(cmp.mediation_pattern, '.'), ''::text), '\..*$'::text, ''::text) AS adapter_string + FROM (public.version_strings vs + JOIN adtech.company_mediation_patterns cmp ON ((lower(vs.value_name) ~~ (lower(concat((cmp.mediation_pattern)::text, '.')) || '%'::text)))) + ), mediation_strings AS ( + SELECT fms.string_id, + fms.mediation_company_id, + cma.company_id AS adapter_company_id, + fms.adapter_string, + fms.full_sdk + FROM (filter_mediation_strings fms + LEFT JOIN adtech.company_mediation_adapters cma ON ((lower(fms.adapter_string) ~~ (lower((cma.adapter_pattern)::text) || '%'::text)))) + WHERE (fms.mediation_company_id <> cma.company_id) + ), app_counts AS ( + SELECT ms.mediation_company_id, + ms.adapter_string, + ms.adapter_company_id, + cm.mapped_category AS app_category, + count(DISTINCT sass.store_app) AS app_count + FROM (((adtech.store_app_sdk_strings sass + JOIN mediation_strings ms ON ((sass.version_string_id = ms.string_id))) + LEFT JOIN public.store_apps sa ON ((sass.store_app = sa.id))) + LEFT JOIN public.category_mapping cm ON (((sa.category)::text = (cm.original_category)::text))) + GROUP BY ms.mediation_company_id, ms.adapter_string, ms.adapter_company_id, cm.mapped_category + ) + SELECT md.domain_name AS mediation_domain, + ac.adapter_string, + ad.domain_name AS adapter_domain, + adc.name AS adapter_company_name, + adc.logo_url AS adapter_logo_url, + ac.app_category, + ac.app_count + FROM ((((app_counts ac + LEFT JOIN adtech.companies mdc ON ((ac.mediation_company_id = mdc.id))) + LEFT JOIN public.domains md ON ((mdc.domain_id = md.id))) + LEFT JOIN adtech.companies adc ON ((ac.adapter_company_id = adc.id))) + LEFT JOIN public.domains ad ON ((adc.domain_id = ad.id))) + WITH NO DATA; + + +ALTER MATERIALIZED VIEW frontend.mediation_adapter_app_counts OWNER TO postgres; + -- -- Name: store_app_api_companies; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres -- @@ -3118,23 +3602,6 @@ CREATE MATERIALIZED VIEW frontend.store_app_api_companies AS ALTER MATERIALIZED VIEW frontend.store_app_api_companies OWNER TO postgres; --- --- Name: store_app_ranks_weekly; Type: TABLE; Schema: frontend; Owner: postgres --- - -CREATE TABLE frontend.store_app_ranks_weekly ( - rank smallint NOT NULL, - best_rank smallint NOT NULL, - country smallint NOT NULL, - store_collection smallint NOT NULL, - store_category smallint NOT NULL, - crawled_date date NOT NULL, - store_app integer NOT NULL -); - - -ALTER TABLE frontend.store_app_ranks_weekly OWNER TO postgres; - -- -- Name: store_categories; Type: TABLE; Schema: public; Owner: postgres -- @@ -3224,6 +3691,7 @@ CREATE MATERIALIZED VIEW frontend.store_app_ranks_latest AS sa.name, sa.store_id, sa.store, + sa.developer_name, sa.installs, sa.rating_count, sa.rating, @@ -3307,6 +3775,7 @@ CREATE MATERIALIZED VIEW frontend.store_apps_z_scores AS LEFT JOIN public.store_apps sa ON ((saz.store_app = sa.id))) LEFT JOIN app_metrics am ON ((saz.store_app = am.store_app))) LEFT JOIN public.category_mapping cm ON (((sa.category)::text = (cm.original_category)::text))) + WHERE (sa.store = ANY (ARRAY[1, 2])) ) SELECT store, store_id, @@ -3369,6 +3838,19 @@ CREATE TABLE logging.app_country_crawls ( ALTER TABLE logging.app_country_crawls OWNER TO postgres; +-- +-- Name: app_description_keywords_extracted; Type: TABLE; Schema: logging; Owner: postgres +-- + +CREATE TABLE logging.app_description_keywords_extracted ( + store_app integer NOT NULL, + description_id integer NOT NULL, + extracted_at timestamp without time zone +); + + +ALTER TABLE logging.app_description_keywords_extracted OWNER TO postgres; + -- -- Name: creative_scan_results; Type: TABLE; Schema: logging; Owner: postgres -- @@ -4360,41 +4842,6 @@ CREATE MATERIALIZED VIEW public.total_count_overview AS ALTER MATERIALIZED VIEW public.total_count_overview OWNER TO postgres; --- --- Name: user_requested_scan; Type: TABLE; Schema: public; Owner: postgres --- - -CREATE TABLE public.user_requested_scan ( - id integer NOT NULL, - store_id character varying NOT NULL, - created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP -); - - -ALTER TABLE public.user_requested_scan OWNER TO postgres; - --- --- Name: user_requested_scan_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres --- - -CREATE SEQUENCE public.user_requested_scan_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER SEQUENCE public.user_requested_scan_id_seq OWNER TO postgres; - --- --- Name: user_requested_scan_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres --- - -ALTER SEQUENCE public.user_requested_scan_id_seq OWNED BY public.user_requested_scan.id; - - -- -- Name: version_code_api_scan_results_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- @@ -4607,13 +5054,6 @@ ALTER TABLE ONLY public.store_apps_descriptions ALTER COLUMN id SET DEFAULT next ALTER TABLE ONLY public.stores ALTER COLUMN id SET DEFAULT nextval('public.stores_column1_seq'::regclass); --- --- Name: user_requested_scan id; Type: DEFAULT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.user_requested_scan ALTER COLUMN id SET DEFAULT nextval('public.user_requested_scan_id_seq'::regclass); - - -- -- Name: version_code_api_scan_results id; Type: DEFAULT; Schema: public; Owner: postgres -- @@ -4684,6 +5124,22 @@ ALTER TABLE ONLY adtech.company_domain_mapping ADD CONSTRAINT company_domain_mapping_pkey PRIMARY KEY (company_id, domain_id); +-- +-- Name: company_mediation_adapters company_mediation_adapters_pkey; Type: CONSTRAINT; Schema: adtech; Owner: postgres +-- + +ALTER TABLE ONLY adtech.company_mediation_adapters + ADD CONSTRAINT company_mediation_adapters_pkey PRIMARY KEY (company_id, adapter_pattern); + + +-- +-- Name: company_mediation_patterns company_mediation_patterns_pkey; Type: CONSTRAINT; Schema: adtech; Owner: postgres +-- + +ALTER TABLE ONLY adtech.company_mediation_patterns + ADD CONSTRAINT company_mediation_patterns_pkey PRIMARY KEY (company_id, mediation_pattern); + + -- -- Name: sdk_categories sdk_categories_pkey; Type: CONSTRAINT; Schema: adtech; Owner: postgres -- @@ -4796,6 +5252,14 @@ ALTER TABLE ONLY frontend.store_app_ranks_weekly ADD CONSTRAINT app_rankings_unique_test UNIQUE (crawled_date, country, store_collection, store_category, rank); +-- +-- Name: app_description_keywords_extracted app_description_keywords_extracted_pk; Type: CONSTRAINT; Schema: logging; Owner: postgres +-- + +ALTER TABLE ONLY logging.app_description_keywords_extracted + ADD CONSTRAINT app_description_keywords_extracted_pk PRIMARY KEY (store_app, description_id); + + -- -- Name: developers_crawled_at developers_crawled_at_pk; Type: CONSTRAINT; Schema: logging; Owner: postgres -- @@ -5180,14 +5644,6 @@ ALTER TABLE ONLY public.keywords ADD CONSTRAINT unique_keyword UNIQUE (keyword_text); --- --- Name: user_requested_scan user_requested_scan_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.user_requested_scan - ADD CONSTRAINT user_requested_scan_pkey PRIMARY KEY (id); - - -- -- Name: version_code_api_scan_results version_code_api_scan_results_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- @@ -5716,6 +6172,13 @@ CREATE UNIQUE INDEX idx_unique_company_domains_top_apps ON frontend.company_doma CREATE UNIQUE INDEX idx_unique_company_top_apps ON frontend.company_top_apps USING btree (company_domain, company_name, store, name, store_id, app_category); +-- +-- Name: keyword_scores_store_keyword_id_idx; Type: INDEX; Schema: frontend; Owner: postgres +-- + +CREATE UNIQUE INDEX keyword_scores_store_keyword_id_idx ON frontend.keyword_scores USING btree (store, keyword_id); + + -- -- Name: latest_sdk_scanned_apps_unique_index; Type: INDEX; Schema: frontend; Owner: postgres -- @@ -5737,6 +6200,13 @@ CREATE INDEX sarw_crawled_store_collection_category_country_idx ON frontend.stor CREATE UNIQUE INDEX store_app_ranks_best_monthly_uidx ON frontend.store_app_ranks_best_monthly USING btree (store_id, country, collection, category); +-- +-- Name: store_apps_overview_textsearch_idx; Type: INDEX; Schema: frontend; Owner: postgres +-- + +CREATE INDEX store_apps_overview_textsearch_idx ON frontend.store_apps_overview USING gin (textsearchable); + + -- -- Name: store_apps_overview_unique_idx; Type: INDEX; Schema: frontend; Owner: postgres -- @@ -5758,6 +6228,13 @@ CREATE UNIQUE INDEX store_apps_overview_unique_store_app_idx ON frontend.store_a CREATE UNIQUE INDEX store_apps_overview_unique_store_id_idx ON frontend.store_apps_overview USING btree (store_id); +-- +-- Name: app_description_keywords_extrac_description_id_extracted_at_idx; Type: INDEX; Schema: logging; Owner: postgres +-- + +CREATE INDEX app_description_keywords_extrac_description_id_extracted_at_idx ON logging.app_description_keywords_extracted USING btree (description_id, extracted_at DESC); + + -- -- Name: logging_store_app_upsert_unique; Type: INDEX; Schema: logging; Owner: postgres -- @@ -5765,6 +6242,13 @@ CREATE UNIQUE INDEX store_apps_overview_unique_store_id_idx ON frontend.store_ap CREATE UNIQUE INDEX logging_store_app_upsert_unique ON logging.store_app_waydroid_crawled_at USING btree (store_app, crawl_result, crawled_at); +-- +-- Name: ake_latest_idx; Type: INDEX; Schema: public; Owner: postgres +-- + +CREATE INDEX ake_latest_idx ON public.app_keywords_extracted USING btree (store_app, extracted_at DESC); + + -- -- Name: app_country_metrics_history_date_idx; Type: INDEX; Schema: public; Owner: postgres -- @@ -6099,6 +6583,22 @@ ALTER TABLE ONLY adtech.company_domain_mapping ADD CONSTRAINT company_domain_mapping_domain_id_fkey FOREIGN KEY (domain_id) REFERENCES public.domains(id) ON DELETE CASCADE; +-- +-- Name: company_mediation_adapters company_mediation_adapters_company_id_fkey; Type: FK CONSTRAINT; Schema: adtech; Owner: postgres +-- + +ALTER TABLE ONLY adtech.company_mediation_adapters + ADD CONSTRAINT company_mediation_adapters_company_id_fkey FOREIGN KEY (company_id) REFERENCES adtech.companies(id); + + +-- +-- Name: company_mediation_patterns company_mediation_patterns_company_id_fkey; Type: FK CONSTRAINT; Schema: adtech; Owner: postgres +-- + +ALTER TABLE ONLY adtech.company_mediation_patterns + ADD CONSTRAINT company_mediation_patterns_company_id_fkey FOREIGN KEY (company_id) REFERENCES adtech.companies(id); + + -- -- Name: sdk_categories fk_category; Type: FK CONSTRAINT; Schema: adtech; Owner: postgres -- @@ -6211,14 +6711,6 @@ ALTER TABLE ONLY frontend.app_keyword_ranks_daily ADD CONSTRAINT country_kr_fk FOREIGN KEY (country) REFERENCES public.countries(id); --- --- Name: store_app_ranks_weekly fk_country; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres --- - -ALTER TABLE ONLY frontend.store_app_ranks_weekly - ADD CONSTRAINT fk_country FOREIGN KEY (country) REFERENCES public.countries(id); - - -- -- Name: store_app_ranks_daily fk_country; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres -- @@ -6228,11 +6720,11 @@ ALTER TABLE ONLY frontend.store_app_ranks_daily -- --- Name: store_app_ranks_weekly fk_store_app; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres +-- Name: store_app_ranks_weekly fk_country; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres -- ALTER TABLE ONLY frontend.store_app_ranks_weekly - ADD CONSTRAINT fk_store_app FOREIGN KEY (store_app) REFERENCES public.store_apps(id) DEFERRABLE INITIALLY DEFERRED; + ADD CONSTRAINT fk_country FOREIGN KEY (country) REFERENCES public.countries(id); -- @@ -6244,11 +6736,11 @@ ALTER TABLE ONLY frontend.store_app_ranks_daily -- --- Name: store_app_ranks_weekly fk_store_category; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres +-- Name: store_app_ranks_weekly fk_store_app; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres -- ALTER TABLE ONLY frontend.store_app_ranks_weekly - ADD CONSTRAINT fk_store_category FOREIGN KEY (store_category) REFERENCES public.store_categories(id); + ADD CONSTRAINT fk_store_app FOREIGN KEY (store_app) REFERENCES public.store_apps(id) DEFERRABLE INITIALLY DEFERRED; -- @@ -6260,11 +6752,11 @@ ALTER TABLE ONLY frontend.store_app_ranks_daily -- --- Name: store_app_ranks_weekly fk_store_collection; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres +-- Name: store_app_ranks_weekly fk_store_category; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres -- ALTER TABLE ONLY frontend.store_app_ranks_weekly - ADD CONSTRAINT fk_store_collection FOREIGN KEY (store_collection) REFERENCES public.store_collections(id); + ADD CONSTRAINT fk_store_category FOREIGN KEY (store_category) REFERENCES public.store_categories(id); -- @@ -6275,6 +6767,14 @@ ALTER TABLE ONLY frontend.store_app_ranks_daily ADD CONSTRAINT fk_store_collection FOREIGN KEY (store_collection) REFERENCES public.store_collections(id); +-- +-- Name: store_app_ranks_weekly fk_store_collection; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres +-- + +ALTER TABLE ONLY frontend.store_app_ranks_weekly + ADD CONSTRAINT fk_store_collection FOREIGN KEY (store_collection) REFERENCES public.store_collections(id); + + -- -- Name: app_keyword_ranks_daily keyword_kr_fk; Type: FK CONSTRAINT; Schema: frontend; Owner: postgres -- @@ -6556,18 +7056,18 @@ ALTER TABLE ONLY public.developers -- --- Name: ip_geo_snapshots fk_country; Type: FK CONSTRAINT; Schema: public; Owner: postgres +-- Name: app_country_metrics_history fk_country; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- -ALTER TABLE ONLY public.ip_geo_snapshots +ALTER TABLE ONLY public.app_country_metrics_history ADD CONSTRAINT fk_country FOREIGN KEY (country_id) REFERENCES public.countries(id); -- --- Name: app_country_metrics_history fk_country; Type: FK CONSTRAINT; Schema: public; Owner: postgres +-- Name: ip_geo_snapshots fk_country; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- -ALTER TABLE ONLY public.app_country_metrics_history +ALTER TABLE ONLY public.ip_geo_snapshots ADD CONSTRAINT fk_country FOREIGN KEY (country_id) REFERENCES public.countries(id); @@ -6687,5 +7187,5 @@ GRANT ALL ON SCHEMA public TO PUBLIC; -- PostgreSQL database dump complete -- -\unrestrict YN5pf2W3Mo9kwVZB0VjdIB2Z7lpYJOnffPfo4LzSTgsnmhTIKYWxdk1O4Q3BgSJ +\unrestrict mCACbDkQ8bhWlrsSS73ZknnV2d4oNqxJQEyLQURVYjwTAFZaXP0Tnb2tYIRlAWf diff --git a/pg-ddl/schema/logging/app_country_crawls.sql b/pg-ddl/schema/logging/app_country_crawls.sql index bc131924..261fc013 100644 --- a/pg-ddl/schema/logging/app_country_crawls.sql +++ b/pg-ddl/schema/logging/app_country_crawls.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict DgwhzKP0BpeThmlr8SiSKJy6dXOm3FZcng8RuECNbWyFUN6XfXpnbjhwwBXjTbH +\restrict V6SmVPd7uSAnAo8jQ56QbrW4zxQAW8A8wb66hclE8NO6Nmfmzr8jR9sfBUIuQol --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -57,5 +57,5 @@ ALTER TABLE ONLY logging.app_country_crawls -- PostgreSQL database dump complete -- -\unrestrict DgwhzKP0BpeThmlr8SiSKJy6dXOm3FZcng8RuECNbWyFUN6XfXpnbjhwwBXjTbH +\unrestrict V6SmVPd7uSAnAo8jQ56QbrW4zxQAW8A8wb66hclE8NO6Nmfmzr8jR9sfBUIuQol diff --git a/pg-ddl/schema/logging/app_description_keywords_extracted.sql b/pg-ddl/schema/logging/app_description_keywords_extracted.sql new file mode 100644 index 00000000..d0dacce0 --- /dev/null +++ b/pg-ddl/schema/logging/app_description_keywords_extracted.sql @@ -0,0 +1,59 @@ +-- +-- PostgreSQL database dump +-- + +\restrict jU0lk3xwFxt0fk8al9ECfhxv8rvVeQOftYRRJWwe5qxahI1bXWu5giMmcZfSrLG + +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: app_description_keywords_extracted; Type: TABLE; Schema: logging; Owner: postgres +-- + +CREATE TABLE logging.app_description_keywords_extracted ( + store_app integer NOT NULL, + description_id integer NOT NULL, + extracted_at timestamp without time zone +); + + +ALTER TABLE logging.app_description_keywords_extracted OWNER TO postgres; + +-- +-- Name: app_description_keywords_extracted app_description_keywords_extracted_pk; Type: CONSTRAINT; Schema: logging; Owner: postgres +-- + +ALTER TABLE ONLY logging.app_description_keywords_extracted + ADD CONSTRAINT app_description_keywords_extracted_pk PRIMARY KEY (store_app, description_id); + + +-- +-- Name: app_description_keywords_extrac_description_id_extracted_at_idx; Type: INDEX; Schema: logging; Owner: postgres +-- + +CREATE INDEX app_description_keywords_extrac_description_id_extracted_at_idx ON logging.app_description_keywords_extracted USING btree (description_id, extracted_at DESC); + + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict jU0lk3xwFxt0fk8al9ECfhxv8rvVeQOftYRRJWwe5qxahI1bXWu5giMmcZfSrLG + diff --git a/pg-ddl/schema/logging/creative_scan_results.sql b/pg-ddl/schema/logging/creative_scan_results.sql index ddcbc0dd..36b1aeff 100644 --- a/pg-ddl/schema/logging/creative_scan_results.sql +++ b/pg-ddl/schema/logging/creative_scan_results.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict sAkt2Q7hnb4Y7HrX1djfLBuApdiv0klMARVSi5bnOoiquc1FAdGng327RdRYDIn +\restrict trKRxkyBOEIiE6Sr5wfFH9foU43oPQhqObKgCTmdKgMxO7IcjWpvPanfh9dM7cm --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -47,5 +47,5 @@ ALTER TABLE logging.creative_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict sAkt2Q7hnb4Y7HrX1djfLBuApdiv0klMARVSi5bnOoiquc1FAdGng327RdRYDIn +\unrestrict trKRxkyBOEIiE6Sr5wfFH9foU43oPQhqObKgCTmdKgMxO7IcjWpvPanfh9dM7cm diff --git a/pg-ddl/schema/logging/developers_crawled_at.sql b/pg-ddl/schema/logging/developers_crawled_at.sql index bcaee7b6..6f60d4ef 100644 --- a/pg-ddl/schema/logging/developers_crawled_at.sql +++ b/pg-ddl/schema/logging/developers_crawled_at.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict nJyV6DCzuLzod4rQDqYTZJ3e8d3tO2iHWQuSvsLIScdwasRm5T34dbaz25LPhec +\restrict HTWFSPQJW7ViGOgY6QcbQ2O697WZJx9fsmR5vFCHbzYe4BAcx9DvcEOg6aCccSL --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.developers_crawled_at -- PostgreSQL database dump complete -- -\unrestrict nJyV6DCzuLzod4rQDqYTZJ3e8d3tO2iHWQuSvsLIScdwasRm5T34dbaz25LPhec +\unrestrict HTWFSPQJW7ViGOgY6QcbQ2O697WZJx9fsmR5vFCHbzYe4BAcx9DvcEOg6aCccSL diff --git a/pg-ddl/schema/logging/keywords_crawled_at.sql b/pg-ddl/schema/logging/keywords_crawled_at.sql index 9ce00c7e..829dac5f 100644 --- a/pg-ddl/schema/logging/keywords_crawled_at.sql +++ b/pg-ddl/schema/logging/keywords_crawled_at.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict rGWAXTyJqDbvcCOLmwdiWlSTqck7MU7JoENMzGZIIjEmSe715S0ihk6cAn9lT1B +\restrict YpFMnL8C051qffxvtcwm4pbk1bE8197pfbxaPAcdY1d8aGoQOewu0VwtTGA4mg0 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.keywords_crawled_at -- PostgreSQL database dump complete -- -\unrestrict rGWAXTyJqDbvcCOLmwdiWlSTqck7MU7JoENMzGZIIjEmSe715S0ihk6cAn9lT1B +\unrestrict YpFMnL8C051qffxvtcwm4pbk1bE8197pfbxaPAcdY1d8aGoQOewu0VwtTGA4mg0 diff --git a/pg-ddl/schema/logging/snapshot_pub_domains.sql b/pg-ddl/schema/logging/snapshot_pub_domains.sql index cc435a91..0f391bee 100644 --- a/pg-ddl/schema/logging/snapshot_pub_domains.sql +++ b/pg-ddl/schema/logging/snapshot_pub_domains.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict fbuWC7H3nJVtquXkVNbHoSavpbn7aRHrFW0VdRZmo7TmHcCLIMO2ndfdxOjLrPl +\restrict KBIsdTvJbSWsz6pv6V0utk7grpUrmSwaq9jipcGsbozrjXl9o2lJYkIuzf6Ux3b --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -43,5 +43,5 @@ ALTER TABLE logging.snapshot_pub_domains OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict fbuWC7H3nJVtquXkVNbHoSavpbn7aRHrFW0VdRZmo7TmHcCLIMO2ndfdxOjLrPl +\unrestrict KBIsdTvJbSWsz6pv6V0utk7grpUrmSwaq9jipcGsbozrjXl9o2lJYkIuzf6Ux3b diff --git a/pg-ddl/schema/logging/store_app_downloads.sql b/pg-ddl/schema/logging/store_app_downloads.sql index b570f545..daa53500 100644 --- a/pg-ddl/schema/logging/store_app_downloads.sql +++ b/pg-ddl/schema/logging/store_app_downloads.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict rNvMvzm9C3OPgfRb8HZEoclNshh0hKAAtPsdgBRxHrRy3fGFkg6m2scazf4SW1T +\restrict 7hibQgfFn9O3znkhv848eBNa1S6HcTpo1QeGuCQdraIM7s3zcfRmmjCukdLT34x --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -49,5 +49,5 @@ ALTER TABLE ONLY logging.store_app_downloads -- PostgreSQL database dump complete -- -\unrestrict rNvMvzm9C3OPgfRb8HZEoclNshh0hKAAtPsdgBRxHrRy3fGFkg6m2scazf4SW1T +\unrestrict 7hibQgfFn9O3znkhv848eBNa1S6HcTpo1QeGuCQdraIM7s3zcfRmmjCukdLT34x diff --git a/pg-ddl/schema/logging/store_app_no_creatives.sql b/pg-ddl/schema/logging/store_app_no_creatives.sql index c238c6a6..7ab397c3 100644 --- a/pg-ddl/schema/logging/store_app_no_creatives.sql +++ b/pg-ddl/schema/logging/store_app_no_creatives.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict wvLvDqJ9oCvgwbiR6nsvFp1lARFS2SWNzNscBwO8cObm6V66q5O5kfzLoWPc4E7 +\restrict a57Iozq6lDJnvq6uPM5T5RHJ1WQrcWiTfBMWiSGtfcV0nfawPlp9i2mj6Lu5ovI --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -40,5 +40,5 @@ ALTER TABLE logging.store_app_no_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict wvLvDqJ9oCvgwbiR6nsvFp1lARFS2SWNzNscBwO8cObm6V66q5O5kfzLoWPc4E7 +\unrestrict a57Iozq6lDJnvq6uPM5T5RHJ1WQrcWiTfBMWiSGtfcV0nfawPlp9i2mj6Lu5ovI diff --git a/pg-ddl/schema/logging/store_app_sources.sql b/pg-ddl/schema/logging/store_app_sources.sql index f434f986..a7cb4ce9 100644 --- a/pg-ddl/schema/logging/store_app_sources.sql +++ b/pg-ddl/schema/logging/store_app_sources.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict WIaBazbmjmE434K4kmOrU3ni9b6yoDc0AZvlanK9KOt6ytqfH3dep8kklkUxLqW +\restrict cthakPDPM8qbBcTSzyjh9a4mQxeciZADL3cwRA9MSbiShcyals4YXzJczkGQDIU --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -64,5 +64,5 @@ ALTER TABLE ONLY logging.store_app_sources -- PostgreSQL database dump complete -- -\unrestrict WIaBazbmjmE434K4kmOrU3ni9b6yoDc0AZvlanK9KOt6ytqfH3dep8kklkUxLqW +\unrestrict cthakPDPM8qbBcTSzyjh9a4mQxeciZADL3cwRA9MSbiShcyals4YXzJczkGQDIU diff --git a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql index cf3eb0cc..f57b629a 100644 --- a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql +++ b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict bzDvZjvPePQZbuzsnJj4HKQ8EbAK3BzPdsDf4THcuoQ93tp4digEbh9f0uifdxe +\restrict g2bD9lORJ7eqdrjUt6BpRkNGpAKtuVOSLh5CJghVRFg9GPKLtaOSDe866OXhgej --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -63,5 +63,5 @@ ALTER TABLE ONLY logging.store_app_waydroid_crawled_at -- PostgreSQL database dump complete -- -\unrestrict bzDvZjvPePQZbuzsnJj4HKQ8EbAK3BzPdsDf4THcuoQ93tp4digEbh9f0uifdxe +\unrestrict g2bD9lORJ7eqdrjUt6BpRkNGpAKtuVOSLh5CJghVRFg9GPKLtaOSDe866OXhgej diff --git a/pg-ddl/schema/logging/store_apps_snapshot.sql b/pg-ddl/schema/logging/store_apps_snapshot.sql index cd70abc1..5c2d2563 100644 --- a/pg-ddl/schema/logging/store_apps_snapshot.sql +++ b/pg-ddl/schema/logging/store_apps_snapshot.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict KYviUQo3eDGcyO7rWFhtXlF6JHzasGynw5fUZuUREscRb3TOlyurgFoJvtuEq2a +\restrict oTXfypJ8Udz2qb9I9Ds41ELqxlCoj991KHS0bIEGkk75e32DomIM0X6c4PALx2j --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -44,5 +44,5 @@ ALTER TABLE logging.store_apps_snapshot OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict KYviUQo3eDGcyO7rWFhtXlF6JHzasGynw5fUZuUREscRb3TOlyurgFoJvtuEq2a +\unrestrict oTXfypJ8Udz2qb9I9Ds41ELqxlCoj991KHS0bIEGkk75e32DomIM0X6c4PALx2j diff --git a/pg-ddl/schema/logging/version_code_api_scan_results.sql b/pg-ddl/schema/logging/version_code_api_scan_results.sql index fc1be925..ce56a056 100644 --- a/pg-ddl/schema/logging/version_code_api_scan_results.sql +++ b/pg-ddl/schema/logging/version_code_api_scan_results.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 33IKjk5a8Q1osoa4s35vyovoQTPTrPrNIiyic76GSKz48MO2ijmHSsNbfx90KFK +\restrict jSjWGfxOR04z5SIhcuneoLrPKZT6LQGcQoVtkBdI0gNaAfiYiPuZx1txJkhqfkX --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -42,5 +42,5 @@ ALTER TABLE logging.version_code_api_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 33IKjk5a8Q1osoa4s35vyovoQTPTrPrNIiyic76GSKz48MO2ijmHSsNbfx90KFK +\unrestrict jSjWGfxOR04z5SIhcuneoLrPKZT6LQGcQoVtkBdI0gNaAfiYiPuZx1txJkhqfkX diff --git a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql index ab4dba63..f1ace652 100644 --- a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql +++ b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict dpofSfzzSDgHnU6elPBamL6YVNzYlUvMisdfV9CB4n9ibxy6qMvXKVeLkmaMmhi +\restrict 5TY1AG6CeRwaRBOi1i451jrbj1zp9kf0ptNGBkTw4vMT78KFLfYLGKVefH2npcj --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -60,5 +60,5 @@ ALTER MATERIALIZED VIEW public.ad_network_sdk_keys OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict dpofSfzzSDgHnU6elPBamL6YVNzYlUvMisdfV9CB4n9ibxy6qMvXKVeLkmaMmhi +\unrestrict 5TY1AG6CeRwaRBOi1i451jrbj1zp9kf0ptNGBkTw4vMT78KFLfYLGKVefH2npcj diff --git a/pg-ddl/schema/public/adstxt_crawl_results.sql b/pg-ddl/schema/public/adstxt_crawl_results.sql index 946096f6..6eb8d895 100644 --- a/pg-ddl/schema/public/adstxt_crawl_results.sql +++ b/pg-ddl/schema/public/adstxt_crawl_results.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict wtHv5QznhwCD1fBiQoto2YaqS8hBOncT4pVrqh8R8LRitUgPqE3wRbKbFxjlk7t +\restrict bfSixVR0hgS8oclcgGQN1dKd9vPiuc2uPdcyPVFOxy2F8JGi4Z6y50Qx39HdfZw --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -96,5 +96,5 @@ ALTER TABLE ONLY public.adstxt_crawl_results -- PostgreSQL database dump complete -- -\unrestrict wtHv5QznhwCD1fBiQoto2YaqS8hBOncT4pVrqh8R8LRitUgPqE3wRbKbFxjlk7t +\unrestrict bfSixVR0hgS8oclcgGQN1dKd9vPiuc2uPdcyPVFOxy2F8JGi4Z6y50Qx39HdfZw diff --git a/pg-ddl/schema/public/api_calls.sql b/pg-ddl/schema/public/api_calls.sql index 3869bd51..a1329533 100644 --- a/pg-ddl/schema/public/api_calls.sql +++ b/pg-ddl/schema/public/api_calls.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict f8Xl53b5SBK5CbX0quZaYiIqtrrU8jr8a8Z4XfFeGJFgaPcbrHnbXD9H36zbmXG +\restrict AdvbC9Myw1lX5poad37hHJPfZqf9Wm711UNfyet7Uq9dgGZsH8QEKWuzlXSsp5a --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -135,5 +135,5 @@ ALTER TABLE ONLY public.api_calls -- PostgreSQL database dump complete -- -\unrestrict f8Xl53b5SBK5CbX0quZaYiIqtrrU8jr8a8Z4XfFeGJFgaPcbrHnbXD9H36zbmXG +\unrestrict AdvbC9Myw1lX5poad37hHJPfZqf9Wm711UNfyet7Uq9dgGZsH8QEKWuzlXSsp5a diff --git a/pg-ddl/schema/public/app_ads_entrys.sql b/pg-ddl/schema/public/app_ads_entrys.sql index 28583f67..2286ab00 100644 --- a/pg-ddl/schema/public/app_ads_entrys.sql +++ b/pg-ddl/schema/public/app_ads_entrys.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict Jtl5F3d2hwULmTywwBA751HS81olS0cmnvO17AMlfG27z8UunqtpRTwPdtOIR3i +\restrict Y4P2qD17VXHQqOY4k63aC2T3486WywSpQyIDgfNGnfyaxwi9hEWgaB2AlW3d2o4 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -90,5 +90,5 @@ ALTER TABLE ONLY public.app_ads_entrys -- PostgreSQL database dump complete -- -\unrestrict Jtl5F3d2hwULmTywwBA751HS81olS0cmnvO17AMlfG27z8UunqtpRTwPdtOIR3i +\unrestrict Y4P2qD17VXHQqOY4k63aC2T3486WywSpQyIDgfNGnfyaxwi9hEWgaB2AlW3d2o4 diff --git a/pg-ddl/schema/public/app_ads_map.sql b/pg-ddl/schema/public/app_ads_map.sql index 10127a81..99bc4b74 100644 --- a/pg-ddl/schema/public/app_ads_map.sql +++ b/pg-ddl/schema/public/app_ads_map.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 3QBjYfREXaXOYRqz41KmkfWaFhSOXYDKmlMLTJzIqqTJIfdbNMtWXwbNENxsgfQ +\restrict KduhMLA7K4LAm9D8DCWgnkGUvqxUfaOwHSOO5yZ8G5f6tAFFYpuYg48ojdEjJRP --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_ads_map -- PostgreSQL database dump complete -- -\unrestrict 3QBjYfREXaXOYRqz41KmkfWaFhSOXYDKmlMLTJzIqqTJIfdbNMtWXwbNENxsgfQ +\unrestrict KduhMLA7K4LAm9D8DCWgnkGUvqxUfaOwHSOO5yZ8G5f6tAFFYpuYg48ojdEjJRP diff --git a/pg-ddl/schema/public/app_country_metrics_history.sql b/pg-ddl/schema/public/app_country_metrics_history.sql index fefa99df..72be7782 100644 --- a/pg-ddl/schema/public/app_country_metrics_history.sql +++ b/pg-ddl/schema/public/app_country_metrics_history.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict Ng39JABnXHnGh4V2yhcp5nhjMy0ZfPfG1ASatBDV68X3d5imhWxqbunq0g3GTtS +\restrict TK2ZKMnkVHPQXEYnEFHdYV8iq2kLcx3btBG7eeQBAo9X4JdYLTnZIaECixqB3wJ --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.app_country_metrics_history -- PostgreSQL database dump complete -- -\unrestrict Ng39JABnXHnGh4V2yhcp5nhjMy0ZfPfG1ASatBDV68X3d5imhWxqbunq0g3GTtS +\unrestrict TK2ZKMnkVHPQXEYnEFHdYV8iq2kLcx3btBG7eeQBAo9X4JdYLTnZIaECixqB3wJ diff --git a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql index daab5966..a4d83659 100644 --- a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict iCOmTMS1PjWC2BPNr3r3rXFQTtz2pmMPNVwISnlg79LiZdFxGPR5u8rjSbA5ZJx +\restrict 4GQa5m2XJcJIlHQwEp5aecP0Bg0hGUuf3NyKB4cJTnZz7ekcqAxz2rYN7wuDx45 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -57,5 +57,5 @@ CREATE UNIQUE INDEX app_country_metrics_latest_idx ON public.app_country_metrics -- PostgreSQL database dump complete -- -\unrestrict iCOmTMS1PjWC2BPNr3r3rXFQTtz2pmMPNVwISnlg79LiZdFxGPR5u8rjSbA5ZJx +\unrestrict 4GQa5m2XJcJIlHQwEp5aecP0Bg0hGUuf3NyKB4cJTnZz7ekcqAxz2rYN7wuDx45 diff --git a/pg-ddl/schema/public/app_global_metrics_history.sql b/pg-ddl/schema/public/app_global_metrics_history.sql index 4b0053d0..28869b73 100644 --- a/pg-ddl/schema/public/app_global_metrics_history.sql +++ b/pg-ddl/schema/public/app_global_metrics_history.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 8noSFWevHlUeRVJ2q99nHzaIp7fPGqweJNqWEScWCdejRhoeti7Z9crQzan8lou +\restrict Rzq4ZtwL00ii1V9MW6Sb5F3oyAOOmEP2IQmmOcg1s4Foa6hGlIIWG2QLI1UDpHW --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.app_global_metrics_history -- PostgreSQL database dump complete -- -\unrestrict 8noSFWevHlUeRVJ2q99nHzaIp7fPGqweJNqWEScWCdejRhoeti7Z9crQzan8lou +\unrestrict Rzq4ZtwL00ii1V9MW6Sb5F3oyAOOmEP2IQmmOcg1s4Foa6hGlIIWG2QLI1UDpHW diff --git a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql index 5f893bb7..96d429cb 100644 --- a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict QrCwP7KXwIbnyycGySH7cLcfH5KXWUZGAMof7KFURmgoQeFHBYKiCyNrBMzsuyi +\restrict USlPJJjK09iNAsZx9bCIM8mlkzvDRuRVbPYzekON845P053CzpgOdQtMrfRqk7d --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX app_global_metrics_latest_idx ON public.app_global_metrics_l -- PostgreSQL database dump complete -- -\unrestrict QrCwP7KXwIbnyycGySH7cLcfH5KXWUZGAMof7KFURmgoQeFHBYKiCyNrBMzsuyi +\unrestrict USlPJJjK09iNAsZx9bCIM8mlkzvDRuRVbPYzekON845P053CzpgOdQtMrfRqk7d diff --git a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql index 01b1e9ac..f20d12c8 100644 --- a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict gAoeI8ah12b0hALIZlsIhV0wW9bH2IN6hgAS4uRiHWfNuibjd5aDJjLyBW1HeJj +\restrict tOmuPkK0slOfMQDGJ5DlsqiQMyQvG3RuAOLWbX7p5UFcWrGSGB8hHYns3A4k2E5 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX app_global_metrics_weekly_diffs_week_start_store_app_idx ON -- PostgreSQL database dump complete -- -\unrestrict gAoeI8ah12b0hALIZlsIhV0wW9bH2IN6hgAS4uRiHWfNuibjd5aDJjLyBW1HeJj +\unrestrict tOmuPkK0slOfMQDGJ5DlsqiQMyQvG3RuAOLWbX7p5UFcWrGSGB8hHYns3A4k2E5 diff --git a/pg-ddl/schema/public/app_keywords_extracted.sql b/pg-ddl/schema/public/app_keywords_extracted.sql index d71f12b3..48411347 100644 --- a/pg-ddl/schema/public/app_keywords_extracted.sql +++ b/pg-ddl/schema/public/app_keywords_extracted.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict EzPplFECrQRWDZRaCCeLc1MgHwQdwRzQR2sILLJsQTseBs83AQnsTkKkUAeKAdO +\restrict SJS4RcJjnqRUvTtIYVkyuoz2MckHTRieXUtWYUfNOJVxUYPAjxSTtqdHfHAJIHN --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -45,6 +45,13 @@ ALTER TABLE ONLY public.app_keywords_extracted ADD CONSTRAINT description_keywords_app_id_keyword_id_key UNIQUE (store_app, keyword_id); +-- +-- Name: ake_latest_idx; Type: INDEX; Schema: public; Owner: postgres +-- + +CREATE INDEX ake_latest_idx ON public.app_keywords_extracted USING btree (store_app, extracted_at DESC); + + -- -- Name: app_keywords_app_index; Type: INDEX; Schema: public; Owner: postgres -- @@ -72,5 +79,5 @@ ALTER TABLE ONLY public.app_keywords_extracted -- PostgreSQL database dump complete -- -\unrestrict EzPplFECrQRWDZRaCCeLc1MgHwQdwRzQR2sILLJsQTseBs83AQnsTkKkUAeKAdO +\unrestrict SJS4RcJjnqRUvTtIYVkyuoz2MckHTRieXUtWYUfNOJVxUYPAjxSTtqdHfHAJIHN diff --git a/pg-ddl/schema/public/app_urls_map.sql b/pg-ddl/schema/public/app_urls_map.sql index e806522e..0bb624a2 100644 --- a/pg-ddl/schema/public/app_urls_map.sql +++ b/pg-ddl/schema/public/app_urls_map.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict Ke35ECtBJYsO6g8Q9c9ipz3NnRGCvYhkhtu2DWaa3K9UO7ALhPDwldTm7ppzyfJ +\restrict oAcp126FhdfVL4OSfon3nymK60pYxE3jrcR3sJkjUxY1XZSare0arOCO54uCdt0 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_urls_map -- PostgreSQL database dump complete -- -\unrestrict Ke35ECtBJYsO6g8Q9c9ipz3NnRGCvYhkhtu2DWaa3K9UO7ALhPDwldTm7ppzyfJ +\unrestrict oAcp126FhdfVL4OSfon3nymK60pYxE3jrcR3sJkjUxY1XZSare0arOCO54uCdt0 diff --git a/pg-ddl/schema/public/category_mapping__matview.sql b/pg-ddl/schema/public/category_mapping__matview.sql index 63d34428..94d0ae2b 100644 --- a/pg-ddl/schema/public/category_mapping__matview.sql +++ b/pg-ddl/schema/public/category_mapping__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict TmZkWhM8sEdHdKQIcsecH4hc9O5kzeqT45ctaVzxgwOmPfhKuBc36ngupCM2nNp +\restrict 1ohEnlzSFwEf08oe5pKdb4SrsI7dpkkAJvGgzWjUppyndaQTeTU8uUhpFd2ffn6 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -67,5 +67,5 @@ CREATE UNIQUE INDEX category_mapping_idx ON public.category_mapping USING btree -- PostgreSQL database dump complete -- -\unrestrict TmZkWhM8sEdHdKQIcsecH4hc9O5kzeqT45ctaVzxgwOmPfhKuBc36ngupCM2nNp +\unrestrict 1ohEnlzSFwEf08oe5pKdb4SrsI7dpkkAJvGgzWjUppyndaQTeTU8uUhpFd2ffn6 diff --git a/pg-ddl/schema/public/countries.sql b/pg-ddl/schema/public/countries.sql index cd42ddd5..78e753be 100644 --- a/pg-ddl/schema/public/countries.sql +++ b/pg-ddl/schema/public/countries.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict vnGEgsXfdKX3CkGJK2KahSJMjwqwlZIStGHKKZEiXy2Oq69lKbyT01N2jfEbfr7 +\restrict WLM5ZRYqVDeQvschrvU3WhbUuwUx2XIH0Qnom5fEzer2MBr6pShFULZe09VK8gW --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -71,5 +71,5 @@ ALTER TABLE ONLY public.countries -- PostgreSQL database dump complete -- -\unrestrict vnGEgsXfdKX3CkGJK2KahSJMjwqwlZIStGHKKZEiXy2Oq69lKbyT01N2jfEbfr7 +\unrestrict WLM5ZRYqVDeQvschrvU3WhbUuwUx2XIH0Qnom5fEzer2MBr6pShFULZe09VK8gW diff --git a/pg-ddl/schema/public/crawl_results.sql b/pg-ddl/schema/public/crawl_results.sql index ebb5e28b..4a42db5d 100644 --- a/pg-ddl/schema/public/crawl_results.sql +++ b/pg-ddl/schema/public/crawl_results.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict Q2e2T0bMtrqkXtR6YuQMUgPkJqYjHBZkYUdAngTjpNwv1AwZoFrW7HFC4PlHtTM +\restrict qFmTi8C6YXXhCUQA36bU64LodCrlU2op1bwkp1LGVJ9vhuLlLcnd3952RmCo1Fh --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -61,5 +61,5 @@ ALTER TABLE ONLY public.crawl_results -- PostgreSQL database dump complete -- -\unrestrict Q2e2T0bMtrqkXtR6YuQMUgPkJqYjHBZkYUdAngTjpNwv1AwZoFrW7HFC4PlHtTM +\unrestrict qFmTi8C6YXXhCUQA36bU64LodCrlU2op1bwkp1LGVJ9vhuLlLcnd3952RmCo1Fh diff --git a/pg-ddl/schema/public/crawl_scenario_country_config.sql b/pg-ddl/schema/public/crawl_scenario_country_config.sql index ed9212fe..76e52076 100644 --- a/pg-ddl/schema/public/crawl_scenario_country_config.sql +++ b/pg-ddl/schema/public/crawl_scenario_country_config.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict cFocEZebIAeGxmLqGLVfYTru98wzoBo1KZcaemvm83rv7fO1r45cny4c4hDiUK6 +\restrict XVTCbBAbdZDh1dUXPPk7YNpD8K6iAvm9XyHej4uUhYwUcX53NW6j7lI4IfThnKu --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.crawl_scenario_country_config -- PostgreSQL database dump complete -- -\unrestrict cFocEZebIAeGxmLqGLVfYTru98wzoBo1KZcaemvm83rv7fO1r45cny4c4hDiUK6 +\unrestrict XVTCbBAbdZDh1dUXPPk7YNpD8K6iAvm9XyHej4uUhYwUcX53NW6j7lI4IfThnKu diff --git a/pg-ddl/schema/public/crawl_scenarios.sql b/pg-ddl/schema/public/crawl_scenarios.sql index 436a5d0c..067a0ede 100644 --- a/pg-ddl/schema/public/crawl_scenarios.sql +++ b/pg-ddl/schema/public/crawl_scenarios.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict YCP5HHhLAmWK5xjjdYbOZVqncz5fqXRhpwepfpr01cIDNaQIBGiskd3eM2wYEA5 +\restrict yBdDC7Tw5l15ScKUENvbppYwNOghUAalM2sGjHkzU5vywpt1apwwnmfTwmZN2Qw --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.crawl_scenarios -- PostgreSQL database dump complete -- -\unrestrict YCP5HHhLAmWK5xjjdYbOZVqncz5fqXRhpwepfpr01cIDNaQIBGiskd3eM2wYEA5 +\unrestrict yBdDC7Tw5l15ScKUENvbppYwNOghUAalM2sGjHkzU5vywpt1apwwnmfTwmZN2Qw diff --git a/pg-ddl/schema/public/creative_assets.sql b/pg-ddl/schema/public/creative_assets.sql index 4f3e0118..8c8f1248 100644 --- a/pg-ddl/schema/public/creative_assets.sql +++ b/pg-ddl/schema/public/creative_assets.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict A4lp3V2Xg5WeKUui6SeromIwnneGFmWEHPJGo8qKtsgokOhcRvjN4dAgI3173ak +\restrict C42VDhWGG0WB25NfKGhLB8bAb4RyPaywTiaA8cDZDAham8PAw4fVjJilenH83n9 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -94,5 +94,5 @@ CREATE INDEX idx_creative_assets_phash ON public.creative_assets USING btree (ph -- PostgreSQL database dump complete -- -\unrestrict A4lp3V2Xg5WeKUui6SeromIwnneGFmWEHPJGo8qKtsgokOhcRvjN4dAgI3173ak +\unrestrict C42VDhWGG0WB25NfKGhLB8bAb4RyPaywTiaA8cDZDAham8PAw4fVjJilenH83n9 diff --git a/pg-ddl/schema/public/creative_records.sql b/pg-ddl/schema/public/creative_records.sql index 85a45f38..6bc7c8f2 100644 --- a/pg-ddl/schema/public/creative_records.sql +++ b/pg-ddl/schema/public/creative_records.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict BDQfOrghlOJk0z7aQqCwiU8gNQvlp7K49mUTwqtQTxZ30yNbFDx5M1l0iQHhPSz +\restrict yGaaFsWtp3Qr7VH3S3bezuAY65CKynBJM1yfMhgKODb31dFMxRaI00SQcbRxF6m --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -153,5 +153,5 @@ ALTER TABLE ONLY public.creative_records -- PostgreSQL database dump complete -- -\unrestrict BDQfOrghlOJk0z7aQqCwiU8gNQvlp7K49mUTwqtQTxZ30yNbFDx5M1l0iQHhPSz +\unrestrict yGaaFsWtp3Qr7VH3S3bezuAY65CKynBJM1yfMhgKODb31dFMxRaI00SQcbRxF6m diff --git a/pg-ddl/schema/public/developer_store_apps__matview.sql b/pg-ddl/schema/public/developer_store_apps__matview.sql index d3e28efb..906c6fff 100644 --- a/pg-ddl/schema/public/developer_store_apps__matview.sql +++ b/pg-ddl/schema/public/developer_store_apps__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict Zree0wwEHFNrFAHXlaelypXNaCcZ54hoUZzOfQo2FNcKdHKtQ9bdoD6loJdq18g +\restrict reLYbVuanYM9sycyvhjgcRDfxsnfZeeWbwfMhCGm7Vc3dse09caHjJm4iSRV5lF --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -83,5 +83,5 @@ CREATE UNIQUE INDEX idx_developer_store_apps_unique ON public.developer_store_ap -- PostgreSQL database dump complete -- -\unrestrict Zree0wwEHFNrFAHXlaelypXNaCcZ54hoUZzOfQo2FNcKdHKtQ9bdoD6loJdq18g +\unrestrict reLYbVuanYM9sycyvhjgcRDfxsnfZeeWbwfMhCGm7Vc3dse09caHjJm4iSRV5lF diff --git a/pg-ddl/schema/public/developers.sql b/pg-ddl/schema/public/developers.sql index d7b52901..deeb8b1c 100644 --- a/pg-ddl/schema/public/developers.sql +++ b/pg-ddl/schema/public/developers.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 7w66M1fg0ocLHrlmdvctOYVVTbCwRTCvD2VHvpN4gfJ29djxrg8uZ1I2iyBnAgg +\restrict qJEraKPFery5RfzQDJFoLAY2Avr2y9v13a6RQtVECYse9pRrfqHgCsiaqy1ChlR --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -110,5 +110,5 @@ ALTER TABLE ONLY public.developers -- PostgreSQL database dump complete -- -\unrestrict 7w66M1fg0ocLHrlmdvctOYVVTbCwRTCvD2VHvpN4gfJ29djxrg8uZ1I2iyBnAgg +\unrestrict qJEraKPFery5RfzQDJFoLAY2Avr2y9v13a6RQtVECYse9pRrfqHgCsiaqy1ChlR diff --git a/pg-ddl/schema/public/domains.sql b/pg-ddl/schema/public/domains.sql index 50a57a96..aae3a6be 100644 --- a/pg-ddl/schema/public/domains.sql +++ b/pg-ddl/schema/public/domains.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 1yagTQFeSCxS0MYSo6jYGiTu1sQQA053lzgCmOUAoZN2IJwF6qSPhTARf7cSJG5 +\restrict LgK5Q8L6LggoqDqKTeCGDbfgyiYNocdgNv00p8KCbOSgqebw8FXuoXIhbDYqUth --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.domains -- PostgreSQL database dump complete -- -\unrestrict 1yagTQFeSCxS0MYSo6jYGiTu1sQQA053lzgCmOUAoZN2IJwF6qSPhTARf7cSJG5 +\unrestrict LgK5Q8L6LggoqDqKTeCGDbfgyiYNocdgNv00p8KCbOSgqebw8FXuoXIhbDYqUth diff --git a/pg-ddl/schema/public/ip_geo_snapshots.sql b/pg-ddl/schema/public/ip_geo_snapshots.sql index 60743d82..c8ed8bb5 100644 --- a/pg-ddl/schema/public/ip_geo_snapshots.sql +++ b/pg-ddl/schema/public/ip_geo_snapshots.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict OMpGFmeF8vZk73oSnlvFggvKZFmbE3wfLW30rCQZ090BixYks5oT9EHEN8aHbf7 +\restrict pqJy12ycw29EI40cZ4fWUteeUCh01tbtcKc8qXfJ1hT3EjDxxvAImypJ8N2VliQ --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.ip_geo_snapshots -- PostgreSQL database dump complete -- -\unrestrict OMpGFmeF8vZk73oSnlvFggvKZFmbE3wfLW30rCQZ090BixYks5oT9EHEN8aHbf7 +\unrestrict pqJy12ycw29EI40cZ4fWUteeUCh01tbtcKc8qXfJ1hT3EjDxxvAImypJ8N2VliQ diff --git a/pg-ddl/schema/public/keywords.sql b/pg-ddl/schema/public/keywords.sql index 69fe5807..8c09d3de 100644 --- a/pg-ddl/schema/public/keywords.sql +++ b/pg-ddl/schema/public/keywords.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict FAJfLaVeR6ZQDhKUShHNBpa1ThKrXEhcQaTc8rc2XKUVyhGM9VmJlvGkk0wQMov +\restrict pFbhdnTGTxdDsTDqpM4HS9RdgpOK8FlWSxLr7UO27cyY4BAmNCuveLUrwc2vDeM --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.keywords -- PostgreSQL database dump complete -- -\unrestrict FAJfLaVeR6ZQDhKUShHNBpa1ThKrXEhcQaTc8rc2XKUVyhGM9VmJlvGkk0wQMov +\unrestrict pFbhdnTGTxdDsTDqpM4HS9RdgpOK8FlWSxLr7UO27cyY4BAmNCuveLUrwc2vDeM diff --git a/pg-ddl/schema/public/keywords_base.sql b/pg-ddl/schema/public/keywords_base.sql index ac19db8f..62d01df5 100644 --- a/pg-ddl/schema/public/keywords_base.sql +++ b/pg-ddl/schema/public/keywords_base.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict ZTBfmI0qdKKpAOtvqNTjTsoJBw1YkOh53LBZoCWef1S90o1uh9espYDkwrUR1rR +\restrict 7ybZLPw3BPNgnCbZgdhyYqsK8aivhvDH1oo3hG3Cj9bG8oL56ccy8nWI3qKlGtW --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -38,5 +38,5 @@ ALTER TABLE public.keywords_base OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict ZTBfmI0qdKKpAOtvqNTjTsoJBw1YkOh53LBZoCWef1S90o1uh9espYDkwrUR1rR +\unrestrict 7ybZLPw3BPNgnCbZgdhyYqsK8aivhvDH1oo3hG3Cj9bG8oL56ccy8nWI3qKlGtW diff --git a/pg-ddl/schema/public/languages.sql b/pg-ddl/schema/public/languages.sql index 9dac3d63..8273d79d 100644 --- a/pg-ddl/schema/public/languages.sql +++ b/pg-ddl/schema/public/languages.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 3AKfUWOvxi3xnshcHKl98SWJMru3L8Eql7948oQuAvaHgC38hNDULCuXgkVeEmD +\restrict nW5tGe7Whm9EgNqirvNbZQSp9O4QLSdnux1u315OxHyxtYabqAyDre1rsIagYGa --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.languages -- PostgreSQL database dump complete -- -\unrestrict 3AKfUWOvxi3xnshcHKl98SWJMru3L8Eql7948oQuAvaHgC38hNDULCuXgkVeEmD +\unrestrict nW5tGe7Whm9EgNqirvNbZQSp9O4QLSdnux1u315OxHyxtYabqAyDre1rsIagYGa diff --git a/pg-ddl/schema/public/mv_app_categories__matview.sql b/pg-ddl/schema/public/mv_app_categories__matview.sql index d8ebd168..447a10d4 100644 --- a/pg-ddl/schema/public/mv_app_categories__matview.sql +++ b/pg-ddl/schema/public/mv_app_categories__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict YEWKKsRp7GrZyGAud0GMSiXDpeA1BjBlr945ijhagjKzCicelm8KqFS9f7xCvkl +\restrict 2PsmsGxqdDrd4fCZcSjM594LGDFnJ8cDbdeQWfnHp6ejyD8iboc9s3jzaBhS0JQ --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -45,5 +45,5 @@ ALTER MATERIALIZED VIEW public.mv_app_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict YEWKKsRp7GrZyGAud0GMSiXDpeA1BjBlr945ijhagjKzCicelm8KqFS9f7xCvkl +\unrestrict 2PsmsGxqdDrd4fCZcSjM594LGDFnJ8cDbdeQWfnHp6ejyD8iboc9s3jzaBhS0JQ diff --git a/pg-ddl/schema/public/pg_stat_statements__view.sql b/pg-ddl/schema/public/pg_stat_statements__view.sql index 2217f8e6..a2ed1a52 100644 --- a/pg-ddl/schema/public/pg_stat_statements__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements__view.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 0ZoCtG213MOM6cqrWOg958zZTfJI7Pray82500CndgshHb3ucJzq2UKsjsdjuKs +\restrict VtRLrihqRGUCnthNiffvNX3QIqSP6itGylrWY8J9eSlBu4QhC5L76cdXxxKsLJn --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict 0ZoCtG213MOM6cqrWOg958zZTfJI7Pray82500CndgshHb3ucJzq2UKsjsdjuKs +\unrestrict VtRLrihqRGUCnthNiffvNX3QIqSP6itGylrWY8J9eSlBu4QhC5L76cdXxxKsLJn diff --git a/pg-ddl/schema/public/pg_stat_statements_info__view.sql b/pg-ddl/schema/public/pg_stat_statements_info__view.sql index af473965..f53f5684 100644 --- a/pg-ddl/schema/public/pg_stat_statements_info__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements_info__view.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict eP0zf117WWbhSrQYgtHJCBRQ2XROWi8464cSjxDj4kk3sOnqiBPuhw5nFV9QHz1 +\restrict OgkqxJNom1ArkFnPa8WLbZMLCdTiaXuPxHSD2rn9M0zgFH0sor9hR4XgFY5lfXH --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict eP0zf117WWbhSrQYgtHJCBRQ2XROWi8464cSjxDj4kk3sOnqiBPuhw5nFV9QHz1 +\unrestrict OgkqxJNom1ArkFnPa8WLbZMLCdTiaXuPxHSD2rn9M0zgFH0sor9hR4XgFY5lfXH diff --git a/pg-ddl/schema/public/platforms.sql b/pg-ddl/schema/public/platforms.sql index ea642700..9dbd8c5d 100644 --- a/pg-ddl/schema/public/platforms.sql +++ b/pg-ddl/schema/public/platforms.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 60Flx5LVy9uhf9bYtUcOqmdpOWbb4UMWpfSAMTprPJQbW3BBPi1eEnARJcADbcg +\restrict 0hPzcnCDsaZ2MzPP7dNkOSw6DDSosITFU01SXvwOmkEa2befH1GTjxmO4D2Y2RT --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.platforms -- PostgreSQL database dump complete -- -\unrestrict 60Flx5LVy9uhf9bYtUcOqmdpOWbb4UMWpfSAMTprPJQbW3BBPi1eEnARJcADbcg +\unrestrict 0hPzcnCDsaZ2MzPP7dNkOSw6DDSosITFU01SXvwOmkEa2befH1GTjxmO4D2Y2RT diff --git a/pg-ddl/schema/public/store_app_z_scores__matview.sql b/pg-ddl/schema/public/store_app_z_scores__matview.sql index 966fafd4..16e1433c 100644 --- a/pg-ddl/schema/public/store_app_z_scores__matview.sql +++ b/pg-ddl/schema/public/store_app_z_scores__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict LPBQhOxE1sVkjM0SWnwpvZViwmxNyXhPG0GveAWgLeAvofxHzT8aB8dhqAUcUIi +\restrict BdqdG6vIgHdxqfqSjtbaYhhWTAOdC8srX8xOhkqtk0if4sPVUnrjmmcrW2tf7An --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -155,5 +155,5 @@ ALTER MATERIALIZED VIEW public.store_app_z_scores OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict LPBQhOxE1sVkjM0SWnwpvZViwmxNyXhPG0GveAWgLeAvofxHzT8aB8dhqAUcUIi +\unrestrict BdqdG6vIgHdxqfqSjtbaYhhWTAOdC8srX8xOhkqtk0if4sPVUnrjmmcrW2tf7An diff --git a/pg-ddl/schema/public/store_app_z_scores_history.sql b/pg-ddl/schema/public/store_app_z_scores_history.sql index 5b1c2027..587ba8ad 100644 --- a/pg-ddl/schema/public/store_app_z_scores_history.sql +++ b/pg-ddl/schema/public/store_app_z_scores_history.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict OLjrwnWaO0RW9dkE20aT9nPdVij2fDma1fYkYKhWoCfy4R3rdwUPINaSQyfQfbp +\restrict kXECfafi0dhIR6lyPKgwfcnJp0bdcCAH3EyP97qaecmV0T7mHu3a8nVrDvttINE --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -64,5 +64,5 @@ ALTER TABLE ONLY public.store_app_z_scores_history -- PostgreSQL database dump complete -- -\unrestrict OLjrwnWaO0RW9dkE20aT9nPdVij2fDma1fYkYKhWoCfy4R3rdwUPINaSQyfQfbp +\unrestrict kXECfafi0dhIR6lyPKgwfcnJp0bdcCAH3EyP97qaecmV0T7mHu3a8nVrDvttINE diff --git a/pg-ddl/schema/public/store_apps.sql b/pg-ddl/schema/public/store_apps.sql index 3374464a..2f2ee54a 100644 --- a/pg-ddl/schema/public/store_apps.sql +++ b/pg-ddl/schema/public/store_apps.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 8CC1E7J4JcIpqjIw4xnIYdZqXICLJrcZx56cxNosBJxxeSjcLpXKqihazN2tfte +\restrict X7NPNBLWyWkTeBqJvDXKMq0Zaco0tR0kWnXQfGOGR6bAVsZYfUkB5c24bwgoAga --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -163,5 +163,5 @@ ALTER TABLE ONLY public.store_apps -- PostgreSQL database dump complete -- -\unrestrict 8CC1E7J4JcIpqjIw4xnIYdZqXICLJrcZx56cxNosBJxxeSjcLpXKqihazN2tfte +\unrestrict X7NPNBLWyWkTeBqJvDXKMq0Zaco0tR0kWnXQfGOGR6bAVsZYfUkB5c24bwgoAga diff --git a/pg-ddl/schema/public/store_apps_descriptions.sql b/pg-ddl/schema/public/store_apps_descriptions.sql index db346e40..adb7c668 100644 --- a/pg-ddl/schema/public/store_apps_descriptions.sql +++ b/pg-ddl/schema/public/store_apps_descriptions.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict Lm57xUWTc8oqSdTarM6svZJ9NAQQRnEtLnkvXwWI5d46zWNdEnpbD4QRzxJOUft +\restrict I6E82ApUxYM98PUzMrVvzRhxqtdDN755OBTGa1uOA3zEoajlv3oZLxpUocw3jMT --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.store_apps_descriptions -- PostgreSQL database dump complete -- -\unrestrict Lm57xUWTc8oqSdTarM6svZJ9NAQQRnEtLnkvXwWI5d46zWNdEnpbD4QRzxJOUft +\unrestrict I6E82ApUxYM98PUzMrVvzRhxqtdDN755OBTGa1uOA3zEoajlv3oZLxpUocw3jMT diff --git a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql index f261b16c..fbdeb9e3 100644 --- a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql +++ b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict 23fsMEvUkgB9iixqqnvvuJv7acng8IKSvGhOc6f5MuMzjWhsWUP5W8nuhRVxRqB +\restrict 501g9eDye39J9KLmbgEXlRR3eJSlGfwKzmChU1Mag0rJXtWlr1mO2vyfdukVI1L --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW public.store_apps_in_latest_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 23fsMEvUkgB9iixqqnvvuJv7acng8IKSvGhOc6f5MuMzjWhsWUP5W8nuhRVxRqB +\unrestrict 501g9eDye39J9KLmbgEXlRR3eJSlGfwKzmChU1Mag0rJXtWlr1mO2vyfdukVI1L diff --git a/pg-ddl/schema/public/store_categories.sql b/pg-ddl/schema/public/store_categories.sql index f73a7ac9..84c4aa6b 100644 --- a/pg-ddl/schema/public/store_categories.sql +++ b/pg-ddl/schema/public/store_categories.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict nPqMiNqFhaHlpPP3bohTVtuq5wDaA1lH7EJX5XeFZchBuidcaEZnpzYuV3gfumB +\restrict RyjLyawpNMxVwO4YW3Y22c0eNMiaTOxlB9tAnBPnoHHtDypPiDyYLdnJxhHXp5l --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_categories -- PostgreSQL database dump complete -- -\unrestrict nPqMiNqFhaHlpPP3bohTVtuq5wDaA1lH7EJX5XeFZchBuidcaEZnpzYuV3gfumB +\unrestrict RyjLyawpNMxVwO4YW3Y22c0eNMiaTOxlB9tAnBPnoHHtDypPiDyYLdnJxhHXp5l diff --git a/pg-ddl/schema/public/store_collections.sql b/pg-ddl/schema/public/store_collections.sql index 61ac3041..e1640131 100644 --- a/pg-ddl/schema/public/store_collections.sql +++ b/pg-ddl/schema/public/store_collections.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict mZOa08lEXerCh9QkJlPlGYBUVIJa82ZeTN93Mzk4axhb5fu8rsuk4GIYrhquPzP +\restrict kHpDC0NuxzF9G2t2ZF1PXmmpFQQZROGMdrIqN7J4S8NrFXObhfAL9Asf3megcsD --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_collections -- PostgreSQL database dump complete -- -\unrestrict mZOa08lEXerCh9QkJlPlGYBUVIJa82ZeTN93Mzk4axhb5fu8rsuk4GIYrhquPzP +\unrestrict kHpDC0NuxzF9G2t2ZF1PXmmpFQQZROGMdrIqN7J4S8NrFXObhfAL9Asf3megcsD diff --git a/pg-ddl/schema/public/stores.sql b/pg-ddl/schema/public/stores.sql index e0110940..7b874583 100644 --- a/pg-ddl/schema/public/stores.sql +++ b/pg-ddl/schema/public/stores.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict dcbdEafgWBr9WnfU1HVm9uNsvHLpjvREldY2tACRyPKDuqeXyxdKnWSHvEUzsvp +\restrict R6DhPIIWwWjgFs2HtAQjr49RIFT2vdeKPJ151jHctpCVCjhshiZ5waojA2yex3u --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -93,5 +93,5 @@ ALTER TABLE ONLY public.stores -- PostgreSQL database dump complete -- -\unrestrict dcbdEafgWBr9WnfU1HVm9uNsvHLpjvREldY2tACRyPKDuqeXyxdKnWSHvEUzsvp +\unrestrict R6DhPIIWwWjgFs2HtAQjr49RIFT2vdeKPJ151jHctpCVCjhshiZ5waojA2yex3u diff --git a/pg-ddl/schema/public/total_count_overview__matview.sql b/pg-ddl/schema/public/total_count_overview__matview.sql index 0adcfd11..5be473dc 100644 --- a/pg-ddl/schema/public/total_count_overview__matview.sql +++ b/pg-ddl/schema/public/total_count_overview__matview.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict ksWAJBYW5lP8C7jR30raE6tS4IztZH5pmaueXaM8XIxRDvHZlSHbzZLBSFXZVjg +\restrict MjnoHdSFsySIjvO06u1yVmiBHpymHJaFnTLWX2varguQjI87z8ABHw57DoBaaLK --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -166,5 +166,5 @@ ALTER MATERIALIZED VIEW public.total_count_overview OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict ksWAJBYW5lP8C7jR30raE6tS4IztZH5pmaueXaM8XIxRDvHZlSHbzZLBSFXZVjg +\unrestrict MjnoHdSFsySIjvO06u1yVmiBHpymHJaFnTLWX2varguQjI87z8ABHw57DoBaaLK diff --git a/pg-ddl/schema/public/version_code_api_scan_results.sql b/pg-ddl/schema/public/version_code_api_scan_results.sql index 556f5102..bf191ed8 100644 --- a/pg-ddl/schema/public/version_code_api_scan_results.sql +++ b/pg-ddl/schema/public/version_code_api_scan_results.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict Qy2bmOYavSzvvcmEYSkmPTGLZiG81unGFjIaTcKlmfoxvqeddjYCqWvTbrizh0B +\restrict 5h9W4AqveInY8PR8SM3RSrs68W85uNHZliIgbVmlZj3ilzvOL3v2dfyiumm7FXX --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -87,5 +87,5 @@ ALTER TABLE ONLY public.version_code_api_scan_results -- PostgreSQL database dump complete -- -\unrestrict Qy2bmOYavSzvvcmEYSkmPTGLZiG81unGFjIaTcKlmfoxvqeddjYCqWvTbrizh0B +\unrestrict 5h9W4AqveInY8PR8SM3RSrs68W85uNHZliIgbVmlZj3ilzvOL3v2dfyiumm7FXX diff --git a/pg-ddl/schema/public/version_code_sdk_scan_results.sql b/pg-ddl/schema/public/version_code_sdk_scan_results.sql index d5656136..c679501a 100644 --- a/pg-ddl/schema/public/version_code_sdk_scan_results.sql +++ b/pg-ddl/schema/public/version_code_sdk_scan_results.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict ObETIhZtJTYBcoDKerbQFC3lvo5pkYarHBCb8iB1x0NA7YhOCmN9xZU9NFf0riV +\restrict LVlcWaQdc9cjhJ59ZfAKwlABO4UtaDmriuDr1i7Yxf8poEse9WZu21aUj8Hg61s --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.version_code_sdk_scan_results -- PostgreSQL database dump complete -- -\unrestrict ObETIhZtJTYBcoDKerbQFC3lvo5pkYarHBCb8iB1x0NA7YhOCmN9xZU9NFf0riV +\unrestrict LVlcWaQdc9cjhJ59ZfAKwlABO4UtaDmriuDr1i7Yxf8poEse9WZu21aUj8Hg61s diff --git a/pg-ddl/schema/public/version_codes.sql b/pg-ddl/schema/public/version_codes.sql index 241762e5..bd8e46d5 100644 --- a/pg-ddl/schema/public/version_codes.sql +++ b/pg-ddl/schema/public/version_codes.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict bEYCt1JQpfdoK1xm3fRR1aEIqHNVIT4aceLTQMXggQGJ7ABdHTpUXJWwhoEo6nt +\restrict ifWShgBkC8W3SEynBgBbzY7OhBtdvlJg1Mkzbpd4dv93Dzvr36bIx5Lilh2Afl7 --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -89,5 +89,5 @@ ALTER TABLE ONLY public.version_codes -- PostgreSQL database dump complete -- -\unrestrict bEYCt1JQpfdoK1xm3fRR1aEIqHNVIT4aceLTQMXggQGJ7ABdHTpUXJWwhoEo6nt +\unrestrict ifWShgBkC8W3SEynBgBbzY7OhBtdvlJg1Mkzbpd4dv93Dzvr36bIx5Lilh2Afl7 diff --git a/pg-ddl/schema/public/version_details_map.sql b/pg-ddl/schema/public/version_details_map.sql index 698e05fc..4e825bcf 100644 --- a/pg-ddl/schema/public/version_details_map.sql +++ b/pg-ddl/schema/public/version_details_map.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict CWtY4UbOeCocxCeggFAjSyiQrTbFtA3CHKee44ZNeTUpaNq3EockaDYngvUFoy8 +\restrict gokOK1QZSJUWjGOdPbcUJqiXJ0azAr9MsVPB2REgTOXF6EXUY7CQJth3XMvjE7j --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_details_map -- PostgreSQL database dump complete -- -\unrestrict CWtY4UbOeCocxCeggFAjSyiQrTbFtA3CHKee44ZNeTUpaNq3EockaDYngvUFoy8 +\unrestrict gokOK1QZSJUWjGOdPbcUJqiXJ0azAr9MsVPB2REgTOXF6EXUY7CQJth3XMvjE7j diff --git a/pg-ddl/schema/public/version_manifests.sql b/pg-ddl/schema/public/version_manifests.sql index a0b7e78f..de987599 100644 --- a/pg-ddl/schema/public/version_manifests.sql +++ b/pg-ddl/schema/public/version_manifests.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict toDN9POusV89Df3dDY23E038V6gJTOUfqKOSfgYIb5bdYS5dqU9IfaNZMZv2mLW +\restrict UdmMbTp6RRerVxuKAuBkQ4Kv1v53swyOCY887lE6ioKBUyO7WrUoaVYL7yLfxGv --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_manifests -- PostgreSQL database dump complete -- -\unrestrict toDN9POusV89Df3dDY23E038V6gJTOUfqKOSfgYIb5bdYS5dqU9IfaNZMZv2mLW +\unrestrict UdmMbTp6RRerVxuKAuBkQ4Kv1v53swyOCY887lE6ioKBUyO7WrUoaVYL7yLfxGv diff --git a/pg-ddl/schema/public/version_strings.sql b/pg-ddl/schema/public/version_strings.sql index b3776953..e4a54742 100644 --- a/pg-ddl/schema/public/version_strings.sql +++ b/pg-ddl/schema/public/version_strings.sql @@ -2,10 +2,10 @@ -- PostgreSQL database dump -- -\restrict auvDJefqO2PyojPyqnQ0LI0J9BeBsLCfiifn2F9o2wDqDp8VX5ZyKeSYCHX9gcH +\restrict LFvcb5wYAValkDeU20BgqB02x3v8cUtUpLJUl864hCJu0qOKsb2O5CvQDJ3SLyy --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0; @@ -106,5 +106,5 @@ CREATE INDEX version_strings_xml_path_trgm_idx ON public.version_strings USING g -- PostgreSQL database dump complete -- -\unrestrict auvDJefqO2PyojPyqnQ0LI0J9BeBsLCfiifn2F9o2wDqDp8VX5ZyKeSYCHX9gcH +\unrestrict LFvcb5wYAValkDeU20BgqB02x3v8cUtUpLJUl864hCJu0qOKsb2O5CvQDJ3SLyy From 9f7be15ff8533546c5812b40e7b1dde94c06defb Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Wed, 4 Feb 2026 11:24:07 +0800 Subject: [PATCH 57/81] interim schema --- pg-ddl/schema/adtech/api_call_urls.sql | 4 +- pg-ddl/schema/adtech/categories.sql | 4 +- ..._store_apps_companies_2025_h1__matview.sql | 4 +- ..._store_apps_companies_2025_h2__matview.sql | 4 +- ...combined_store_apps_companies__matview.sql | 4 +- ...d_store_apps_parent_companies__matview.sql | 4 +- pg-ddl/schema/adtech/companies.sql | 4 +- .../adtech/company_categories__matview.sql | 4 +- pg-ddl/schema/adtech/company_developers.sql | 4 +- .../schema/adtech/company_domain_mapping.sql | 4 +- .../adtech/company_mediation_adapters.sql | 4 +- .../adtech/company_mediation_patterns.sql | 59 ---- .../adtech/company_sdk_strings__matview.sql | 33 ++- .../company_share_change_2025__matview.sql | 4 +- .../company_shares_2025_common__matview.sql | 12 +- pg-ddl/schema/adtech/sdk_categories.sql | 4 +- pg-ddl/schema/adtech/sdk_packages.sql | 4 +- pg-ddl/schema/adtech/sdk_paths.sql | 4 +- pg-ddl/schema/adtech/sdks.sql | 4 +- ...store_app_sdk_strings_2025_h1__matview.sql | 8 +- ...store_app_sdk_strings_2025_h2__matview.sql | 8 +- .../adtech/store_app_sdk_strings__matview.sql | 10 +- pg-ddl/schema/adtech/url_redirect_chains.sql | 4 +- pg-ddl/schema/adtech/urls.sql | 4 +- .../adstxt_ad_domain_overview__matview.sql | 4 +- .../adstxt_entries_store_apps__matview.sql | 4 +- .../adstxt_publishers_overview__matview.sql | 4 +- .../advertiser_creative_rankings__matview.sql | 4 +- ...reative_rankings_recent_month__matview.sql | 4 +- .../advertiser_creatives__matview.sql | 4 +- .../frontend/api_call_countries__matview.sql | 4 +- .../app_keyword_rank_stats__matview.sql | 4 +- .../frontend/app_keyword_ranks_daily.sql | 4 +- .../frontend/apps_new_monthly__matview.sql | 4 +- .../frontend/apps_new_weekly__matview.sql | 4 +- .../frontend/apps_new_yearly__matview.sql | 4 +- .../frontend/category_tag_stats__matview.sql | 4 +- .../companies_apps_overview__matview.sql | 8 +- .../companies_category_stats__matview.sql | 4 +- .../companies_category_tag_stats__matview.sql | 4 +- ...anies_category_tag_type_stats__matview.sql | 7 +- .../companies_creative_rankings__matview.sql | 4 +- ...companies_open_source_percent__matview.sql | 4 +- ...mpanies_parent_category_stats__matview.sql | 4 +- ...ies_parent_category_tag_stats__matview.sql | 4 +- .../companies_sdks_overview__matview.sql | 4 +- .../company_domain_country__matview.sql | 4 +- .../company_domains_top_apps__matview.sql | 4 +- .../company_parent_top_apps__matview.sql | 4 +- .../frontend/company_top_apps__matview.sql | 4 +- .../frontend/keyword_scores__matview.sql | 4 +- .../latest_sdk_scanned_apps__matview.sql | 4 +- .../mediation_adapter_app_counts__matview.sql | 4 +- .../store_app_api_companies__matview.sql | 4 +- .../store_app_ranks_best_monthly__matview.sql | 4 +- .../schema/frontend/store_app_ranks_daily.sql | 4 +- .../store_app_ranks_latest__matview.sql | 4 +- .../frontend/store_app_ranks_weekly.sql | 4 +- .../frontend/store_apps_overview__matview.sql | 4 +- .../frontend/store_apps_z_scores__matview.sql | 4 +- .../total_categories_app_counts__matview.sql | 4 +- pg-ddl/schema/full_db_dump.sql | 268 +++++++++++++----- pg-ddl/schema/logging/app_country_crawls.sql | 4 +- .../app_description_keywords_extracted.sql | 4 +- .../schema/logging/creative_scan_results.sql | 4 +- .../schema/logging/developers_crawled_at.sql | 4 +- pg-ddl/schema/logging/keywords_crawled_at.sql | 4 +- .../schema/logging/snapshot_pub_domains.sql | 4 +- pg-ddl/schema/logging/store_app_downloads.sql | 4 +- .../schema/logging/store_app_no_creatives.sql | 4 +- pg-ddl/schema/logging/store_app_sources.sql | 4 +- .../logging/store_app_waydroid_crawled_at.sql | 4 +- pg-ddl/schema/logging/store_apps_snapshot.sql | 4 +- .../logging/version_code_api_scan_results.sql | 4 +- .../public/ad_network_sdk_keys__matview.sql | 4 +- pg-ddl/schema/public/adstxt_crawl_results.sql | 4 +- pg-ddl/schema/public/api_calls.sql | 4 +- pg-ddl/schema/public/app_ads_entrys.sql | 4 +- pg-ddl/schema/public/app_ads_map.sql | 4 +- .../public/app_country_metrics_history.sql | 4 +- .../app_country_metrics_latest__matview.sql | 4 +- .../public/app_global_metrics_history.sql | 4 +- .../app_global_metrics_latest__matview.sql | 4 +- ...p_global_metrics_weekly_diffs__matview.sql | 4 +- .../schema/public/app_keywords_extracted.sql | 4 +- pg-ddl/schema/public/app_urls_map.sql | 4 +- .../public/category_mapping__matview.sql | 4 +- pg-ddl/schema/public/countries.sql | 4 +- pg-ddl/schema/public/crawl_results.sql | 4 +- .../public/crawl_scenario_country_config.sql | 4 +- pg-ddl/schema/public/crawl_scenarios.sql | 4 +- pg-ddl/schema/public/creative_assets.sql | 4 +- pg-ddl/schema/public/creative_records.sql | 4 +- .../public/developer_store_apps__matview.sql | 4 +- pg-ddl/schema/public/developers.sql | 4 +- pg-ddl/schema/public/domains.sql | 4 +- pg-ddl/schema/public/ip_geo_snapshots.sql | 4 +- pg-ddl/schema/public/keywords.sql | 4 +- pg-ddl/schema/public/keywords_base.sql | 4 +- pg-ddl/schema/public/languages.sql | 4 +- .../public/mv_app_categories__matview.sql | 4 +- .../public/pg_stat_statements__view.sql | 4 +- .../public/pg_stat_statements_info__view.sql | 4 +- pg-ddl/schema/public/platforms.sql | 4 +- .../public/store_app_z_scores__matview.sql | 4 +- .../public/store_app_z_scores_history.sql | 4 +- pg-ddl/schema/public/store_apps.sql | 4 +- .../schema/public/store_apps_descriptions.sql | 4 +- ...store_apps_in_latest_rankings__matview.sql | 4 +- pg-ddl/schema/public/store_categories.sql | 4 +- pg-ddl/schema/public/store_collections.sql | 4 +- pg-ddl/schema/public/stores.sql | 4 +- .../public/total_count_overview__matview.sql | 4 +- pg-ddl/schema/public/user_requested_scan.sql | 81 ------ .../public/version_code_api_scan_results.sql | 4 +- .../public/version_code_sdk_scan_results.sql | 4 +- pg-ddl/schema/public/version_codes.sql | 4 +- pg-ddl/schema/public/version_details_map.sql | 4 +- pg-ddl/schema/public/version_manifests.sql | 4 +- pg-ddl/schema/public/version_strings.sql | 4 +- 120 files changed, 462 insertions(+), 472 deletions(-) delete mode 100644 pg-ddl/schema/adtech/company_mediation_patterns.sql delete mode 100644 pg-ddl/schema/public/user_requested_scan.sql diff --git a/pg-ddl/schema/adtech/api_call_urls.sql b/pg-ddl/schema/adtech/api_call_urls.sql index f2a26d81..aab3c99f 100644 --- a/pg-ddl/schema/adtech/api_call_urls.sql +++ b/pg-ddl/schema/adtech/api_call_urls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ZvORijBFYR0LedFHWzgFb9bCrA5aTgXHKsccR4wkNqcfaaSyhZomsEggo5DQHqH +\restrict wyNUJb0Vwmb9ysTDYBGYiXZifu12TchyVWYCYnV5ho4GrYhLog7lcECkD0zgZ80 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -118,5 +118,5 @@ ALTER TABLE ONLY adtech.api_call_urls -- PostgreSQL database dump complete -- -\unrestrict ZvORijBFYR0LedFHWzgFb9bCrA5aTgXHKsccR4wkNqcfaaSyhZomsEggo5DQHqH +\unrestrict wyNUJb0Vwmb9ysTDYBGYiXZifu12TchyVWYCYnV5ho4GrYhLog7lcECkD0zgZ80 diff --git a/pg-ddl/schema/adtech/categories.sql b/pg-ddl/schema/adtech/categories.sql index 0e3d9f87..648acd11 100644 --- a/pg-ddl/schema/adtech/categories.sql +++ b/pg-ddl/schema/adtech/categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Q5V3eLFsM8RIMvXEObyOHxZKuchZFeQJKOOF4Cnb2HPOrQ9spjndBOlUNMHnMHJ +\restrict yYGKWg0Kub8a8BJeDa1mg4TuPe1gl9BDgc9IFuuPoDUoQZSxEeUpDe8b0yY2Wj3 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -62,5 +62,5 @@ ALTER TABLE ONLY adtech.categories -- PostgreSQL database dump complete -- -\unrestrict Q5V3eLFsM8RIMvXEObyOHxZKuchZFeQJKOOF4Cnb2HPOrQ9spjndBOlUNMHnMHJ +\unrestrict yYGKWg0Kub8a8BJeDa1mg4TuPe1gl9BDgc9IFuuPoDUoQZSxEeUpDe8b0yY2Wj3 diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql index 8f73918f..9893cdca 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict YXpHTcLEvtI7UlH7BDZMEoYMgeZUgZdZ7bdCW2NFwH3R5dq4Oz0UjiybvxXA3ya +\restrict FmYxPvSPmXatTcXyuFZyCJe2nYAbNwnLamFMhgKG9Y2KDSKibqIi5uIfkK3tQ23 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -124,5 +124,5 @@ ALTER MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h1 OWNER TO po -- PostgreSQL database dump complete -- -\unrestrict YXpHTcLEvtI7UlH7BDZMEoYMgeZUgZdZ7bdCW2NFwH3R5dq4Oz0UjiybvxXA3ya +\unrestrict FmYxPvSPmXatTcXyuFZyCJe2nYAbNwnLamFMhgKG9Y2KDSKibqIi5uIfkK3tQ23 diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql index cb4c6be6..a3379e5f 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 6hikIorENh7ySqTZa405betCcCp1WBUPdIBkokNYuinfV0Ys5N3bp2NzNqZVO2I +\restrict aqdCDhOUfwguc1CIPkT21MkIlxS4KFyhXyzdIaQ4MQNERMWqaKvWwZFTV8T98cz -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -124,5 +124,5 @@ ALTER MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h2 OWNER TO po -- PostgreSQL database dump complete -- -\unrestrict 6hikIorENh7ySqTZa405betCcCp1WBUPdIBkokNYuinfV0Ys5N3bp2NzNqZVO2I +\unrestrict aqdCDhOUfwguc1CIPkT21MkIlxS4KFyhXyzdIaQ4MQNERMWqaKvWwZFTV8T98cz diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql index 4f935ddb..b71e0b85 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict UZKhbF6VSbEOEcKlVfw36m5JAqKN7eEneUwgbF0sbIoI0edSVHl2ysxzvaOpdwr +\restrict keAixLIsxQrAYawn42nXcZNZRDRdv1hamn46Ng2cnJB7D4O6flsXT7gAFUVgD9h -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -165,5 +165,5 @@ CREATE UNIQUE INDEX combined_store_app_companies_idx ON adtech.combined_store_ap -- PostgreSQL database dump complete -- -\unrestrict UZKhbF6VSbEOEcKlVfw36m5JAqKN7eEneUwgbF0sbIoI0edSVHl2ysxzvaOpdwr +\unrestrict keAixLIsxQrAYawn42nXcZNZRDRdv1hamn46Ng2cnJB7D4O6flsXT7gAFUVgD9h diff --git a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql index 363753ea..6f97b710 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qh1qA0L8Cor3zFLZ7pXjo9F6hOsWeBdLoXWyyG8QnJ4l1PVilFanMuAQfaZXHQx +\restrict G8Yzi9eN08KqwDCxO0vQv3vQuU1zfpeIJeXOZCfYaSfLfl4hbItQZhJqb3b1PZR -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -59,5 +59,5 @@ CREATE UNIQUE INDEX idx_combined_store_apps_parent_companies_idx ON adtech.combi -- PostgreSQL database dump complete -- -\unrestrict qh1qA0L8Cor3zFLZ7pXjo9F6hOsWeBdLoXWyyG8QnJ4l1PVilFanMuAQfaZXHQx +\unrestrict G8Yzi9eN08KqwDCxO0vQv3vQuU1zfpeIJeXOZCfYaSfLfl4hbItQZhJqb3b1PZR diff --git a/pg-ddl/schema/adtech/companies.sql b/pg-ddl/schema/adtech/companies.sql index 7aa26d9c..0e7a96e4 100644 --- a/pg-ddl/schema/adtech/companies.sql +++ b/pg-ddl/schema/adtech/companies.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 9y1qad6mjfdvZyiAoYjewJU4oQiI5ZV19io3SBW1GrIjjV0O2LHAjQ8LePJA5Vy +\restrict zsi9joDvzaYITCatpgDBMkP3Z9880slGyqvfhHXL01LnmAbu955tkN0DPvc4ur2 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -98,5 +98,5 @@ ALTER TABLE ONLY adtech.companies -- PostgreSQL database dump complete -- -\unrestrict 9y1qad6mjfdvZyiAoYjewJU4oQiI5ZV19io3SBW1GrIjjV0O2LHAjQ8LePJA5Vy +\unrestrict zsi9joDvzaYITCatpgDBMkP3Z9880slGyqvfhHXL01LnmAbu955tkN0DPvc4ur2 diff --git a/pg-ddl/schema/adtech/company_categories__matview.sql b/pg-ddl/schema/adtech/company_categories__matview.sql index 81ba72a4..9c2292dc 100644 --- a/pg-ddl/schema/adtech/company_categories__matview.sql +++ b/pg-ddl/schema/adtech/company_categories__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Fu7uLenhH1FEN7u5YgIaNPbmMZCwm7GziCXkYN5LfXtccIgks0QwxXU85sUE0Oi +\restrict s559At02g9pCN6V0ReIxjlzOIbmnyMi6zFXTHz9KS1i47UN5sqkhokVz7eCL4KU -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -42,5 +42,5 @@ ALTER MATERIALIZED VIEW adtech.company_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict Fu7uLenhH1FEN7u5YgIaNPbmMZCwm7GziCXkYN5LfXtccIgks0QwxXU85sUE0Oi +\unrestrict s559At02g9pCN6V0ReIxjlzOIbmnyMi6zFXTHz9KS1i47UN5sqkhokVz7eCL4KU diff --git a/pg-ddl/schema/adtech/company_developers.sql b/pg-ddl/schema/adtech/company_developers.sql index f456cb39..a3727c43 100644 --- a/pg-ddl/schema/adtech/company_developers.sql +++ b/pg-ddl/schema/adtech/company_developers.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict TfEd2Zp5bqR8o5VuL2seE3ej7kI78QQOgYnkUBdbVvfKae0oUGVjG9AfL4KxeOf +\restrict djJCx5FYHbZobOuOC9uywpDhd4HdGCCk5kBIluVDO5QtXPFd5UccI6iYgdUpLCa -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.company_developers -- PostgreSQL database dump complete -- -\unrestrict TfEd2Zp5bqR8o5VuL2seE3ej7kI78QQOgYnkUBdbVvfKae0oUGVjG9AfL4KxeOf +\unrestrict djJCx5FYHbZobOuOC9uywpDhd4HdGCCk5kBIluVDO5QtXPFd5UccI6iYgdUpLCa diff --git a/pg-ddl/schema/adtech/company_domain_mapping.sql b/pg-ddl/schema/adtech/company_domain_mapping.sql index a401a3a1..4625a2ca 100644 --- a/pg-ddl/schema/adtech/company_domain_mapping.sql +++ b/pg-ddl/schema/adtech/company_domain_mapping.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ZpqMrHNXGu5WB17SmvfdjZiD1ZicEQToT0z7Lwl9LKPnW0RvAa9X0WahIb5WO4d +\restrict wpAZIbT8I422ZF7wtjckLJf1VLI5rVitr3cObaO0SU61FZtBoKkMM5lrVQicNB7 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.company_domain_mapping -- PostgreSQL database dump complete -- -\unrestrict ZpqMrHNXGu5WB17SmvfdjZiD1ZicEQToT0z7Lwl9LKPnW0RvAa9X0WahIb5WO4d +\unrestrict wpAZIbT8I422ZF7wtjckLJf1VLI5rVitr3cObaO0SU61FZtBoKkMM5lrVQicNB7 diff --git a/pg-ddl/schema/adtech/company_mediation_adapters.sql b/pg-ddl/schema/adtech/company_mediation_adapters.sql index fb57984b..da7b5422 100644 --- a/pg-ddl/schema/adtech/company_mediation_adapters.sql +++ b/pg-ddl/schema/adtech/company_mediation_adapters.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict EFzyAZrAxXrx2qfVY6pgCpMb74BXJPMbq32RRkKH0PsAXlrxabXDV3kO4DfUBiT +\restrict 71diOYphZm8gfMLp5RjHrU5SwsxEqz14O6Qh1KrNNaED901FVCpty2HG0fChDdJ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.company_mediation_adapters -- PostgreSQL database dump complete -- -\unrestrict EFzyAZrAxXrx2qfVY6pgCpMb74BXJPMbq32RRkKH0PsAXlrxabXDV3kO4DfUBiT +\unrestrict 71diOYphZm8gfMLp5RjHrU5SwsxEqz14O6Qh1KrNNaED901FVCpty2HG0fChDdJ diff --git a/pg-ddl/schema/adtech/company_mediation_patterns.sql b/pg-ddl/schema/adtech/company_mediation_patterns.sql deleted file mode 100644 index 9357e937..00000000 --- a/pg-ddl/schema/adtech/company_mediation_patterns.sql +++ /dev/null @@ -1,59 +0,0 @@ --- --- PostgreSQL database dump --- - -\restrict yNYymEQkbAYytxVBMRGjLXrYur2vSBveQudV7bxkKRldo5VkP0DsLbj9cxcWwgT - --- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) --- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) - -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET transaction_timeout = 0; -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); -SET check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - -SET default_tablespace = ''; - -SET default_table_access_method = heap; - --- --- Name: company_mediation_patterns; Type: TABLE; Schema: adtech; Owner: postgres --- - -CREATE TABLE adtech.company_mediation_patterns ( - company_id integer NOT NULL, - mediation_pattern character varying(255) NOT NULL -); - - -ALTER TABLE adtech.company_mediation_patterns OWNER TO postgres; - --- --- Name: company_mediation_patterns company_mediation_patterns_pkey; Type: CONSTRAINT; Schema: adtech; Owner: postgres --- - -ALTER TABLE ONLY adtech.company_mediation_patterns - ADD CONSTRAINT company_mediation_patterns_pkey PRIMARY KEY (company_id, mediation_pattern); - - --- --- Name: company_mediation_patterns company_mediation_patterns_company_id_fkey; Type: FK CONSTRAINT; Schema: adtech; Owner: postgres --- - -ALTER TABLE ONLY adtech.company_mediation_patterns - ADD CONSTRAINT company_mediation_patterns_company_id_fkey FOREIGN KEY (company_id) REFERENCES adtech.companies(id); - - --- --- PostgreSQL database dump complete --- - -\unrestrict yNYymEQkbAYytxVBMRGjLXrYur2vSBveQudV7bxkKRldo5VkP0DsLbj9cxcWwgT - diff --git a/pg-ddl/schema/adtech/company_sdk_strings__matview.sql b/pg-ddl/schema/adtech/company_sdk_strings__matview.sql index 82b6d65a..fea92f1a 100644 --- a/pg-ddl/schema/adtech/company_sdk_strings__matview.sql +++ b/pg-ddl/schema/adtech/company_sdk_strings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ZAYcX7GXKS7t4VCgnZIaXxKtYE7ka8WoF7wRWmKWAAmbOhIsEc1PHUBusxGXpI3 +\restrict pDMhu0PYSd3BNRcduMwxJOUizhfMgr0Sza4HhILUzUPbHOTQoBVx4Pfo3Pr1OeZ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -27,29 +27,38 @@ SET default_table_access_method = heap; -- Name: company_sdk_strings; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres -- -CREATE MATERIALIZED VIEW adtech.company_sdk_strings AS +CREATE MATERIALIZED VIEW adtech.sdk_strings AS WITH matched_value_patterns AS ( SELECT DISTINCT lower(vd.value_name) AS value_name_lower, - sd.company_id - FROM ((public.version_strings vd + sp.sdk_id + FROM (public.version_strings vd JOIN adtech.sdk_packages sp ON ((lower(vd.value_name) ~~ (lower((sp.package_pattern)::text) || '%'::text)))) - JOIN adtech.sdks sd ON ((sp.sdk_id = sd.id))) ), matched_path_patterns AS ( SELECT DISTINCT lower(vd.xml_path) AS xml_path_lower, - sd.company_id - FROM ((public.version_strings vd + ptm.sdk_id + FROM (public.version_strings vd JOIN adtech.sdk_paths ptm ON ((lower(vd.xml_path) = lower((ptm.path_pattern)::text)))) - JOIN adtech.sdks sd ON ((ptm.sdk_id = sd.id))) + ), mediation_strings AS ( + SELECT vs.id AS version_string_id, + cmp.sdk_id, + lower(vs.value_name) AS value_name_lower + FROM (public.version_strings vs + JOIN adtech.sdk_mediation_patterns cmp ON ((lower(vs.value_name) ~~ (lower(concat((cmp.mediation_pattern)::text, '.')) || '%'::text)))) ) SELECT vs.id AS version_string_id, - mp.company_id + mp.sdk_id FROM (matched_value_patterns mp JOIN public.version_strings vs ON ((lower(vs.value_name) = mp.value_name_lower))) UNION SELECT vs.id AS version_string_id, - mp.company_id + mp.sdk_id FROM (matched_path_patterns mp JOIN public.version_strings vs ON ((lower(vs.xml_path) = mp.xml_path_lower))) +UNION + SELECT vs.id AS version_string_id, + ms.sdk_id + FROM (mediation_strings ms + JOIN public.version_strings vs ON ((lower(vs.xml_path) = ms.value_name_lower))) WITH NO DATA; @@ -59,12 +68,12 @@ ALTER MATERIALIZED VIEW adtech.company_sdk_strings OWNER TO postgres; -- Name: company_sdk_strings_version_string_id_company_id_idx; Type: INDEX; Schema: adtech; Owner: postgres -- -CREATE UNIQUE INDEX company_sdk_strings_version_string_id_company_id_idx ON adtech.company_sdk_strings USING btree (version_string_id, company_id); +CREATE UNIQUE INDEX company_sdk_strings_version_string_id_company_id_idx ON adtech.company_sdk_strings USING btree (version_string_id, sdk_id); -- -- PostgreSQL database dump complete -- -\unrestrict ZAYcX7GXKS7t4VCgnZIaXxKtYE7ka8WoF7wRWmKWAAmbOhIsEc1PHUBusxGXpI3 +\unrestrict pDMhu0PYSd3BNRcduMwxJOUizhfMgr0Sza4HhILUzUPbHOTQoBVx4Pfo3Pr1OeZ diff --git a/pg-ddl/schema/adtech/company_share_change_2025__matview.sql b/pg-ddl/schema/adtech/company_share_change_2025__matview.sql index 6fa049f4..e6194b02 100644 --- a/pg-ddl/schema/adtech/company_share_change_2025__matview.sql +++ b/pg-ddl/schema/adtech/company_share_change_2025__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict BgXRyIjKPvCreuAubND2kXoCGnlOr1MDrT5IazYXU07U2qHj7CU38EGnX8Mpdob +\restrict ILaEL4h3OrEqLOyHG4OuFeRFXHkM1MK5Z0BJACT5puCb674vT8vWRh3dVebTNn1 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -110,5 +110,5 @@ ALTER MATERIALIZED VIEW adtech.company_share_change_2025 OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict BgXRyIjKPvCreuAubND2kXoCGnlOr1MDrT5IazYXU07U2qHj7CU38EGnX8Mpdob +\unrestrict ILaEL4h3OrEqLOyHG4OuFeRFXHkM1MK5Z0BJACT5puCb674vT8vWRh3dVebTNn1 diff --git a/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql b/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql index 11f36218..91452cb3 100644 --- a/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql +++ b/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 0frgW3Uq8HfX8IArBx9SsXMmxZeg7h52bURnIdYDnH6IgOemjK0UABgOmNlINl5 +\restrict TSqWY0D3l0agaK0o6xWLQNOpGZB10T56hUdgdJEWSx2g47saZ3BxLKa1rylm5T8 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -37,16 +37,16 @@ CREATE MATERIALIZED VIEW adtech.company_shares_2025_common AS ), h1_stats AS ( SELECT sd.company_id, count(DISTINCT store_app_sdk_strings_2025_h1.store_app) AS h1_app_count - FROM adtech.store_app_sdk_strings_2025_h1 - JOIN adtech.sdks sd ON ((store_app_sdk_strings_2025_h1.sdk_id = sd.id)) + FROM (adtech.store_app_sdk_strings_2025_h1 + JOIN adtech.sdks sd ON ((store_app_sdk_strings_2025_h1.sdk_id = sd.id))) WHERE (store_app_sdk_strings_2025_h1.store_app IN ( SELECT common_apps.store_app FROM common_apps)) GROUP BY sd.company_id ), h2_stats AS ( SELECT sd.company_id, count(DISTINCT store_app_sdk_strings_2025_h2.store_app) AS h2_app_count - FROM adtech.store_app_sdk_strings_2025_h2 - JOIN adtech.sdks sd ON ((store_app_sdk_strings_2025_h2.sdk_id = sd.id)) + FROM (adtech.store_app_sdk_strings_2025_h2 + JOIN adtech.sdks sd ON ((store_app_sdk_strings_2025_h2.sdk_id = sd.id))) WHERE (store_app_sdk_strings_2025_h2.store_app IN ( SELECT common_apps.store_app FROM common_apps)) GROUP BY sd.company_id @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW adtech.company_shares_2025_common OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 0frgW3Uq8HfX8IArBx9SsXMmxZeg7h52bURnIdYDnH6IgOemjK0UABgOmNlINl5 +\unrestrict TSqWY0D3l0agaK0o6xWLQNOpGZB10T56hUdgdJEWSx2g47saZ3BxLKa1rylm5T8 diff --git a/pg-ddl/schema/adtech/sdk_categories.sql b/pg-ddl/schema/adtech/sdk_categories.sql index 1cbb5b90..b9d378c4 100644 --- a/pg-ddl/schema/adtech/sdk_categories.sql +++ b/pg-ddl/schema/adtech/sdk_categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 28JjLexUzIHM7xfman14wISXibaYKcpU727hyzBXhLJOkJIYbncDg5AzZRSANc5 +\restrict xWXgYzFAmSqxwlEmFLvP7KnpbxRf4GnLkbvh0TqzdPvFWZg3zcJ22h2byq574Pl -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.sdk_categories -- PostgreSQL database dump complete -- -\unrestrict 28JjLexUzIHM7xfman14wISXibaYKcpU727hyzBXhLJOkJIYbncDg5AzZRSANc5 +\unrestrict xWXgYzFAmSqxwlEmFLvP7KnpbxRf4GnLkbvh0TqzdPvFWZg3zcJ22h2byq574Pl diff --git a/pg-ddl/schema/adtech/sdk_packages.sql b/pg-ddl/schema/adtech/sdk_packages.sql index a17acdfc..6008da29 100644 --- a/pg-ddl/schema/adtech/sdk_packages.sql +++ b/pg-ddl/schema/adtech/sdk_packages.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict aKgzD98NwYI62oNPwKDNR7auZtR2eGNYaDujsO6Gdybjxz6qIkriRe2zSSXT9xU +\restrict 6sy9XDJLTsJu0GpJzgijXuT4DYlwfvSu0dbbXccUOBLGnpT2qFgvfh7sRqPY3qZ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -99,5 +99,5 @@ ALTER TABLE ONLY adtech.sdk_packages -- PostgreSQL database dump complete -- -\unrestrict aKgzD98NwYI62oNPwKDNR7auZtR2eGNYaDujsO6Gdybjxz6qIkriRe2zSSXT9xU +\unrestrict 6sy9XDJLTsJu0GpJzgijXuT4DYlwfvSu0dbbXccUOBLGnpT2qFgvfh7sRqPY3qZ diff --git a/pg-ddl/schema/adtech/sdk_paths.sql b/pg-ddl/schema/adtech/sdk_paths.sql index e0aefe4d..4317a27c 100644 --- a/pg-ddl/schema/adtech/sdk_paths.sql +++ b/pg-ddl/schema/adtech/sdk_paths.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict EbER3S6ktdevHIlaVu1EY9O8kv1I9VWy3jbfiS8TpUao0742AZDYFRoSYCxLtg2 +\restrict 61mF4a6qaTXumXWkbc4gnjsdKv9QP68zw40MS60Pk5dc7RjReempJRLYZazkyaD -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdk_paths -- PostgreSQL database dump complete -- -\unrestrict EbER3S6ktdevHIlaVu1EY9O8kv1I9VWy3jbfiS8TpUao0742AZDYFRoSYCxLtg2 +\unrestrict 61mF4a6qaTXumXWkbc4gnjsdKv9QP68zw40MS60Pk5dc7RjReempJRLYZazkyaD diff --git a/pg-ddl/schema/adtech/sdks.sql b/pg-ddl/schema/adtech/sdks.sql index 693b518d..bb5b0844 100644 --- a/pg-ddl/schema/adtech/sdks.sql +++ b/pg-ddl/schema/adtech/sdks.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict wCtnADnh3Vr4sQt56isU4Ll52w2EVDXRBfHu3sILeQqkJm0ify33gSCShrzoyq5 +\restrict 56kmiLeUomreB5MWAOJigldP3etFLEk7lU594zmLQk7INvdxIVYgjDkubxqTd2Q -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdks -- PostgreSQL database dump complete -- -\unrestrict wCtnADnh3Vr4sQt56isU4Ll52w2EVDXRBfHu3sILeQqkJm0ify33gSCShrzoyq5 +\unrestrict 56kmiLeUomreB5MWAOJigldP3etFLEk7lU594zmLQk7INvdxIVYgjDkubxqTd2Q diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql index 294361a4..29ed9c85 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict dxTiIr3M2HnW3BHz7pcpm4ufaRpCiSIUL0PgJbPs41y6bBabTPPGheLIuzFMCz1 +\restrict s5xK5a4Lc5gdSkHhq70Kyy4zSK3DoH9wrf91Ne0ypZWr5k5rQkCMcPRRTnZAz1H -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -41,10 +41,10 @@ CREATE MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h1 AS ) SELECT vc.store_app, vdm.string_id AS version_string_id, - sd.id as sdk_id + sd.id AS sdk_id FROM (((latest_version_codes vc JOIN public.version_details_map vdm ON ((vc.id = vdm.version_code))) - JOIN adtech.company_sdk_strings css ON ((vdm.string_id = css.version_string_id))) + JOIN adtech.sdk_strings css ON ((vdm.string_id = css.version_string_id))) JOIN adtech.sdks sd ON ((css.sdk_id = sd.id))) WITH NO DATA; @@ -55,5 +55,5 @@ ALTER MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h1 OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict dxTiIr3M2HnW3BHz7pcpm4ufaRpCiSIUL0PgJbPs41y6bBabTPPGheLIuzFMCz1 +\unrestrict s5xK5a4Lc5gdSkHhq70Kyy4zSK3DoH9wrf91Ne0ypZWr5k5rQkCMcPRRTnZAz1H diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql index f5d7af94..9d34a9e5 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict HSIxrKhagiWFHeShe8uLqydqepmDFH9UigpGM0aFUh08MoXbFG0yz4pNbKHmZfq +\restrict 9Xk2JI1vouZGaME7R3OqUoCZoW5IdsDcnAAWd146h8VBCNz0xKX15YfQdeJEr3K -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -41,10 +41,10 @@ CREATE MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h2 AS ) SELECT vc.store_app, vdm.string_id AS version_string_id, - sd.id as sdk_id + sd.id AS sdk_id FROM (((latest_version_codes vc JOIN public.version_details_map vdm ON ((vc.id = vdm.version_code))) - JOIN adtech.company_sdk_strings css ON ((vdm.string_id = css.version_string_id))) + JOIN adtech.sdk_strings css ON ((vdm.string_id = css.version_string_id))) JOIN adtech.sdks sd ON ((css.sdk_id = sd.id))) WITH NO DATA; @@ -55,5 +55,5 @@ ALTER MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h2 OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict HSIxrKhagiWFHeShe8uLqydqepmDFH9UigpGM0aFUh08MoXbFG0yz4pNbKHmZfq +\unrestrict 9Xk2JI1vouZGaME7R3OqUoCZoW5IdsDcnAAWd146h8VBCNz0xKX15YfQdeJEr3K diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql index f45d2754..459f9dda 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict HpNr3HwgeRLkM41yPWEA4bLaUU0jDjSEsqoBIinlNsGMO3Ogy0esRYWAC0fbjzr +\restrict hV5I6p7EUTHF0FhIepg3Stye897eyW1KWAX79ZnWPgkz1NKHxV8UWxThpZUNb3w -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -41,10 +41,10 @@ CREATE MATERIALIZED VIEW adtech.store_app_sdk_strings AS ) SELECT vc.store_app, vdm.string_id AS version_string_id, - css.company_id + css.sdk_id FROM ((latest_version_codes vc JOIN public.version_details_map vdm ON ((vc.id = vdm.version_code))) - LEFT JOIN adtech.company_sdk_strings css ON ((vdm.string_id = css.version_string_id))) + LEFT JOIN adtech.sdk_strings css ON ((vdm.string_id = css.version_string_id))) WITH NO DATA; @@ -54,12 +54,12 @@ ALTER MATERIALIZED VIEW adtech.store_app_sdk_strings OWNER TO postgres; -- Name: store_app_sdk_strings_idx; Type: INDEX; Schema: adtech; Owner: postgres -- -CREATE UNIQUE INDEX store_app_sdk_strings_idx ON adtech.store_app_sdk_strings USING btree (store_app, version_string_id, company_id); +CREATE UNIQUE INDEX store_app_sdk_strings_idx ON adtech.store_app_sdk_strings USING btree (store_app, version_string_id, sdk_id); -- -- PostgreSQL database dump complete -- -\unrestrict HpNr3HwgeRLkM41yPWEA4bLaUU0jDjSEsqoBIinlNsGMO3Ogy0esRYWAC0fbjzr +\unrestrict hV5I6p7EUTHF0FhIepg3Stye897eyW1KWAX79ZnWPgkz1NKHxV8UWxThpZUNb3w diff --git a/pg-ddl/schema/adtech/url_redirect_chains.sql b/pg-ddl/schema/adtech/url_redirect_chains.sql index 86e903d4..2701880a 100644 --- a/pg-ddl/schema/adtech/url_redirect_chains.sql +++ b/pg-ddl/schema/adtech/url_redirect_chains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 0Kxy68upHe0v645wUxZKYOK5zpYGQPUxiHPZOyP5IcdEnF7sHeWMme1F6pZnoWZ +\restrict WJzASQQDZehDxuZly7kRV6CW81HhqkNP6bOZ5UoBhgBVHSt7ICrFmo7daaScIva -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -122,5 +122,5 @@ ALTER TABLE ONLY adtech.url_redirect_chains -- PostgreSQL database dump complete -- -\unrestrict 0Kxy68upHe0v645wUxZKYOK5zpYGQPUxiHPZOyP5IcdEnF7sHeWMme1F6pZnoWZ +\unrestrict WJzASQQDZehDxuZly7kRV6CW81HhqkNP6bOZ5UoBhgBVHSt7ICrFmo7daaScIva diff --git a/pg-ddl/schema/adtech/urls.sql b/pg-ddl/schema/adtech/urls.sql index f105833e..cc84b574 100644 --- a/pg-ddl/schema/adtech/urls.sql +++ b/pg-ddl/schema/adtech/urls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict m2zVNb0WiTQPUtjo9hGg8h6qaYlNad2x7ijwRstPPLAoiZ87SoJbp9PHPWy6qaQ +\restrict pIfgFaFfKQzctl6YWMJcZIfzS3MjzoUNqT3YvOn57t2tfw0BYxpZ5ng1mdJpq9N -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -111,5 +111,5 @@ ALTER TABLE ONLY adtech.urls -- PostgreSQL database dump complete -- -\unrestrict m2zVNb0WiTQPUtjo9hGg8h6qaYlNad2x7ijwRstPPLAoiZ87SoJbp9PHPWy6qaQ +\unrestrict pIfgFaFfKQzctl6YWMJcZIfzS3MjzoUNqT3YvOn57t2tfw0BYxpZ5ng1mdJpq9N diff --git a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql index f6b21ba6..675491e0 100644 --- a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict MvWY56iHZJKv4M24wPjIVdGgSWOZqmd9ODa3GKMBm8JvXfVZQqYBy22Zzr6Jtuj +\restrict GKo1pXX9e1eTRI1Yg2GnwVyJnr8YdcGWcQDeBPXwDHDSKr8uYcfUj4hMb9hDHSg -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX adstxt_ad_domain_overview_unique_idx ON frontend.adstxt_ad_d -- PostgreSQL database dump complete -- -\unrestrict MvWY56iHZJKv4M24wPjIVdGgSWOZqmd9ODa3GKMBm8JvXfVZQqYBy22Zzr6Jtuj +\unrestrict GKo1pXX9e1eTRI1Yg2GnwVyJnr8YdcGWcQDeBPXwDHDSKr8uYcfUj4hMb9hDHSg diff --git a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql index 729b116e..6922972c 100644 --- a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Cdho15KZoPjTIQiAU6HrCJ80KPifu4rhfnvweEMhUGWDCFcUxIT8X7LAInFqebP +\restrict YnIsyNh3ct3Y1Pr2tyJQfJydKzrftWP12qSQVRiT9oVVIShS6x24GXKyotWm0os -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -81,5 +81,5 @@ CREATE UNIQUE INDEX adstxt_entries_store_apps_unique_idx ON frontend.adstxt_entr -- PostgreSQL database dump complete -- -\unrestrict Cdho15KZoPjTIQiAU6HrCJ80KPifu4rhfnvweEMhUGWDCFcUxIT8X7LAInFqebP +\unrestrict YnIsyNh3ct3Y1Pr2tyJQfJydKzrftWP12qSQVRiT9oVVIShS6x24GXKyotWm0os diff --git a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql index ba2c6f07..493c0502 100644 --- a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 6BTFx15PFaiTpwPcCl8X7ypgacdMGFClVBVEKN3KpfzzMjPldRY8UYdcARjJxLA +\restrict 9h85QwJAXenPLosoQMkAWmnA8JN1zk7gvfziF1OD4fhTozjXSXwegCgj7Cj0iCl -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -74,5 +74,5 @@ CREATE UNIQUE INDEX adstxt_publishers_overview_ad_domain_unique_idx ON frontend. -- PostgreSQL database dump complete -- -\unrestrict 6BTFx15PFaiTpwPcCl8X7ypgacdMGFClVBVEKN3KpfzzMjPldRY8UYdcARjJxLA +\unrestrict 9h85QwJAXenPLosoQMkAWmnA8JN1zk7gvfziF1OD4fhTozjXSXwegCgj7Cj0iCl diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql index 04a5e28b..6c48f267 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict KHQoYLD4G5WI9wBoVeqRgtNiqIhZxCcpoYISmvRCbNL1clUkVaqE2SeYWQLjIeN +\restrict ae0ZKYCUFjKZcgQlm0VWakHCtuYVq70QBncOsC46adp5a19NYNDXX2nXSMOh7o9 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -107,5 +107,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict KHQoYLD4G5WI9wBoVeqRgtNiqIhZxCcpoYISmvRCbNL1clUkVaqE2SeYWQLjIeN +\unrestrict ae0ZKYCUFjKZcgQlm0VWakHCtuYVq70QBncOsC46adp5a19NYNDXX2nXSMOh7o9 diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql index 53587dec..c05df304 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict B1Q3g4Rt33FhEWtUMM9Xo0QAQNO77L253HVTiy8rwscD0bgInl9mOHJblRYsiWB +\restrict FSvdtzycEiV3XQYu8Kft84S1JmTsnCHr0NNsBO0nyblBxNfzJFN24W3Pc1rGfIz -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -114,5 +114,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings_recent_month OWNER -- PostgreSQL database dump complete -- -\unrestrict B1Q3g4Rt33FhEWtUMM9Xo0QAQNO77L253HVTiy8rwscD0bgInl9mOHJblRYsiWB +\unrestrict FSvdtzycEiV3XQYu8Kft84S1JmTsnCHr0NNsBO0nyblBxNfzJFN24W3Pc1rGfIz diff --git a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql index 2bec1448..43cb34dd 100644 --- a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Iz3NWT46dGT1a79cEdDoBOCUd9hJ8TlCqFAH6DItUH1ouHSzNSMN6ZPHDH6lIgt +\restrict x9WiE11LDSoNDBwML1dWArZsgqCw86dyYZpUSMyuPp6QlazMsWiYoBznOGbu9tz -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict Iz3NWT46dGT1a79cEdDoBOCUd9hJ8TlCqFAH6DItUH1ouHSzNSMN6ZPHDH6lIgt +\unrestrict x9WiE11LDSoNDBwML1dWArZsgqCw86dyYZpUSMyuPp6QlazMsWiYoBznOGbu9tz diff --git a/pg-ddl/schema/frontend/api_call_countries__matview.sql b/pg-ddl/schema/frontend/api_call_countries__matview.sql index 11d2361a..faa91280 100644 --- a/pg-ddl/schema/frontend/api_call_countries__matview.sql +++ b/pg-ddl/schema/frontend/api_call_countries__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict cfjWM3RRSrc4M3G5ffKgoybhWs63030pR3mmOaoW4pclVW6Dgsu60lancgagTdK +\restrict MywXmUXgIE8bpzBuldIJsCwfts36H0D1GMGS0v6jDqxDCayIudQ4MPWh1z8J4KS -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -87,5 +87,5 @@ CREATE UNIQUE INDEX api_call_countries_unique ON frontend.api_call_countries USI -- PostgreSQL database dump complete -- -\unrestrict cfjWM3RRSrc4M3G5ffKgoybhWs63030pR3mmOaoW4pclVW6Dgsu60lancgagTdK +\unrestrict MywXmUXgIE8bpzBuldIJsCwfts36H0D1GMGS0v6jDqxDCayIudQ4MPWh1z8J4KS diff --git a/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql index 490027ae..4cc39784 100644 --- a/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql +++ b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 6afgnTeT0OFmAtAMAmerckub4FkAp4c1m8I0I0oH7ej0YY1mYrGc71mNooIoYa6 +\restrict CnY9FBXV2HggwepvUhwiyB9e1c3W84M0Do7Wtic2RGk0rLOyzhaKiiTBHGmrLoJ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -72,5 +72,5 @@ ALTER MATERIALIZED VIEW frontend.app_keyword_rank_stats OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 6afgnTeT0OFmAtAMAmerckub4FkAp4c1m8I0I0oH7ej0YY1mYrGc71mNooIoYa6 +\unrestrict CnY9FBXV2HggwepvUhwiyB9e1c3W84M0Do7Wtic2RGk0rLOyzhaKiiTBHGmrLoJ diff --git a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql index 8894c482..cd4cf6da 100644 --- a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql +++ b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict EnInnhEfpUNXjmlaSqurcfLfLiU5aIR7ZvpqYaGxDtyKuDOQn1NIbpCnsD2tK6y +\restrict b3nGe2SngJlX8Uakfey8mY9mTFHFV9mQc45GYf22Zgal3n63LdNs6T2xsRgs9xZ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -104,5 +104,5 @@ ALTER TABLE ONLY frontend.app_keyword_ranks_daily -- PostgreSQL database dump complete -- -\unrestrict EnInnhEfpUNXjmlaSqurcfLfLiU5aIR7ZvpqYaGxDtyKuDOQn1NIbpCnsD2tK6y +\unrestrict b3nGe2SngJlX8Uakfey8mY9mTFHFV9mQc45GYf22Zgal3n63LdNs6T2xsRgs9xZ diff --git a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql index 13f0fa59..14a21d4e 100644 --- a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict y0a0t9gzNnTq5HfNaBvADul1gdqwW8me36g3TKLPEQwUe4RgzIyW4JWqMpTABLD +\restrict q4aSc1aVS1UwRb5xcrUnnKUAOKwES4rKZfGQ9OLyJV41oCn3v8awARv41z30Nva -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -116,5 +116,5 @@ CREATE UNIQUE INDEX idx_apps_new_monthly ON frontend.apps_new_monthly USING btre -- PostgreSQL database dump complete -- -\unrestrict y0a0t9gzNnTq5HfNaBvADul1gdqwW8me36g3TKLPEQwUe4RgzIyW4JWqMpTABLD +\unrestrict q4aSc1aVS1UwRb5xcrUnnKUAOKwES4rKZfGQ9OLyJV41oCn3v8awARv41z30Nva diff --git a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql index 9cbcb3d4..ee1f7afc 100644 --- a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict OaW58FXF9cJemkuHBEeUBpLwZsUnErgXONmyUYeo4OfuaMr52BLmDuVrgjiQ7WA +\restrict BRNeu3bLpNMhuiRh6S2kDlhMoj9hBain5k9v291CfoNILAt6z7NeSwgxGILlwHC -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -123,5 +123,5 @@ CREATE UNIQUE INDEX idx_apps_new_weekly_f ON frontend.apps_new_weekly USING btre -- PostgreSQL database dump complete -- -\unrestrict OaW58FXF9cJemkuHBEeUBpLwZsUnErgXONmyUYeo4OfuaMr52BLmDuVrgjiQ7WA +\unrestrict BRNeu3bLpNMhuiRh6S2kDlhMoj9hBain5k9v291CfoNILAt6z7NeSwgxGILlwHC diff --git a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql index 28afc122..aaca559d 100644 --- a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict J3sCavymN8nfZA1fwLRbX4IHsgU6cG1bzRq4CQgeCm0H5gUqDSJsnKfq4JPAFuQ +\restrict jR08hIDuqkXhv7rjxav95tkCAKYPUmCsjubJXPXn5hZKl4epk9HegkWItQETlIZ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -117,5 +117,5 @@ CREATE UNIQUE INDEX idx_apps_new_yearly ON frontend.apps_new_yearly USING btree -- PostgreSQL database dump complete -- -\unrestrict J3sCavymN8nfZA1fwLRbX4IHsgU6cG1bzRq4CQgeCm0H5gUqDSJsnKfq4JPAFuQ +\unrestrict jR08hIDuqkXhv7rjxav95tkCAKYPUmCsjubJXPXn5hZKl4epk9HegkWItQETlIZ diff --git a/pg-ddl/schema/frontend/category_tag_stats__matview.sql b/pg-ddl/schema/frontend/category_tag_stats__matview.sql index ade26ca6..200c60da 100644 --- a/pg-ddl/schema/frontend/category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict MEgSaT8uiGxwVxpJYv6qQYyeNSs9XOxG2TMblWe0nljzcYxBRekazJYl0A5T4xo +\restrict ld3nqyPOV1idFEGKYndTm2mBJfw674EgbRtgcfTJYK25evhsmJ9iDzrAoHyaAug -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -74,5 +74,5 @@ CREATE UNIQUE INDEX idx_category_tag_stats ON frontend.category_tag_stats USING -- PostgreSQL database dump complete -- -\unrestrict MEgSaT8uiGxwVxpJYv6qQYyeNSs9XOxG2TMblWe0nljzcYxBRekazJYl0A5T4xo +\unrestrict ld3nqyPOV1idFEGKYndTm2mBJfw674EgbRtgcfTJYK25evhsmJ9iDzrAoHyaAug diff --git a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql index 3e0bf705..a124b368 100644 --- a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 9vqUuxl09Jw8aa58lnNETGirgLknu7TZO9WphV5zCZrqu10rxKCHxcbcqCt144m +\restrict EZrKYdXYMFxS0qzIcLBCNT5M6gUEpNTfCFtBdjK4kuPNFz1jGSZVXwkn2EPyIWX -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -31,8 +31,8 @@ CREATE MATERIALIZED VIEW frontend.companies_apps_overview AS WITH store_app_sdk_companies AS ( SELECT DISTINCT savs.store_app, sd.company_id - FROM adtech.store_app_sdk_strings savs - LEFT JOIN adtech.sdks sd ON ((savs.sdk_id = sd.id)) + FROM (adtech.store_app_sdk_strings savs + LEFT JOIN adtech.sdks sd ON ((savs.sdk_id = sd.id))) ) SELECT sa.store_id, sacs.company_id, @@ -69,5 +69,5 @@ CREATE UNIQUE INDEX companies_apps_overview_unique_idx ON frontend.companies_app -- PostgreSQL database dump complete -- -\unrestrict 9vqUuxl09Jw8aa58lnNETGirgLknu7TZO9WphV5zCZrqu10rxKCHxcbcqCt144m +\unrestrict EZrKYdXYMFxS0qzIcLBCNT5M6gUEpNTfCFtBdjK4kuPNFz1jGSZVXwkn2EPyIWX diff --git a/pg-ddl/schema/frontend/companies_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_stats__matview.sql index a3d327b5..328f9d3d 100644 --- a/pg-ddl/schema/frontend/companies_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ElOfojYHnhHjw9jK9lzZUh5biTMZDx2oYeczSUQQTYYpq1hon3dgwdZ06OlY8mI +\restrict 8drEBFFW6OmrEES9ARv3epMSXaHRuQUaQ6Wq3n5ylC4cHcv5g24xhLYUJpvUPRP -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -82,5 +82,5 @@ CREATE INDEX companies_category_stats_query_idx ON frontend.companies_category_s -- PostgreSQL database dump complete -- -\unrestrict ElOfojYHnhHjw9jK9lzZUh5biTMZDx2oYeczSUQQTYYpq1hon3dgwdZ06OlY8mI +\unrestrict 8drEBFFW6OmrEES9ARv3epMSXaHRuQUaQ6Wq3n5ylC4cHcv5g24xhLYUJpvUPRP diff --git a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql index 83fb778d..e7e39729 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5DWajnyzsxHtYwUH6iebk0lnmYgy2AGUkoGF58jP4OflSF4rm80ZOFUI1u82SgB +\restrict qS6UPmsfqP3szMQ005iaMIcwoaK9bSxvs0tvw8PBCiZYZNGd4Ajf6PiTw0NI1ha -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -86,5 +86,5 @@ CREATE UNIQUE INDEX companies_category_tag_stats_idx ON frontend.companies_categ -- PostgreSQL database dump complete -- -\unrestrict 5DWajnyzsxHtYwUH6iebk0lnmYgy2AGUkoGF58jP4OflSF4rm80ZOFUI1u82SgB +\unrestrict qS6UPmsfqP3szMQ005iaMIcwoaK9bSxvs0tvw8PBCiZYZNGd4Ajf6PiTw0NI1ha diff --git a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql index 495638e6..0e74355f 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict PNo82BVN0eedB5rDOBv6Gu7eL0Ecnl4qn3b5pPDHddOgIfrbEhVzz5XvtQgRsaL +\restrict iohu4YfqBuWTcrzUs1aQHCKvFTmgfvg1aQ6tSeEbadQcMUg4B3AcTDgXf8HXXz2 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -28,6 +28,7 @@ SET default_table_access_method = heap; -- CREATE MATERIALIZED VIEW frontend.companies_category_tag_type_stats AS +xxx WITH d30_counts AS ( SELECT sahw.store_app, sum(sahw.installs_diff) AS d30_installs, @@ -63,7 +64,7 @@ CREATE MATERIALIZED VIEW frontend.companies_category_tag_type_stats AS WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying ELSE cats.url_slug END - WITH NO DATA; + WITH NO DATAx; ALTER MATERIALIZED VIEW frontend.companies_category_tag_type_stats OWNER TO postgres; @@ -86,5 +87,5 @@ CREATE INDEX companies_category_tag_type_stats_query_idx ON frontend.companies_c -- PostgreSQL database dump complete -- -\unrestrict PNo82BVN0eedB5rDOBv6Gu7eL0Ecnl4qn3b5pPDHddOgIfrbEhVzz5XvtQgRsaL +\unrestrict iohu4YfqBuWTcrzUs1aQHCKvFTmgfvg1aQ6tSeEbadQcMUg4B3AcTDgXf8HXXz2 diff --git a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql index 0d0522dc..75be90fa 100644 --- a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict kMZj0re3qbuI4ufbuLyYnfStAFzE8uqJkU9kQ4qksJiVKVXWKmIrPMS0ZrNnHFt +\restrict TQSvRpDYW9lMBQqgB7KdGYkiob8QLBdgq2Lnjv7PdpSV9CVlFagor1dNLlsOKUE -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -130,5 +130,5 @@ ALTER MATERIALIZED VIEW frontend.companies_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict kMZj0re3qbuI4ufbuLyYnfStAFzE8uqJkU9kQ4qksJiVKVXWKmIrPMS0ZrNnHFt +\unrestrict TQSvRpDYW9lMBQqgB7KdGYkiob8QLBdgq2Lnjv7PdpSV9CVlFagor1dNLlsOKUE diff --git a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql index ee1719f0..512d3db9 100644 --- a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql +++ b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Z4AJWwaP82NK0uhqukSFQUAaelFJRWDWRZ7Jvpzx8Cz5UNnyrhaJMtjyTalNjrN +\restrict 9kcDQ3cpcm10OOtfOsx74OJ4ajXL1ik8dK88J5RczhSFEHmtSn88biWH0BIKTBY -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -54,5 +54,5 @@ CREATE UNIQUE INDEX companies_open_source_percent_unique ON frontend.companies_o -- PostgreSQL database dump complete -- -\unrestrict Z4AJWwaP82NK0uhqukSFQUAaelFJRWDWRZ7Jvpzx8Cz5UNnyrhaJMtjyTalNjrN +\unrestrict 9kcDQ3cpcm10OOtfOsx74OJ4ajXL1ik8dK88J5RczhSFEHmtSn88biWH0BIKTBY diff --git a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql index de3ef2a5..d7678549 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Q5ghx5UNhlsVnqhqtKXrwIXZtLDaVXynUxGD7vjYYV0zrhRAeEZdSZKPYrdh5K9 +\restrict tcRcm8AW5rrf9yUmXEbVLElcP49WapetqwfSiTBGRvIDwii16R3Ihm3bdUWKk0Z -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -87,5 +87,5 @@ CREATE INDEX companies_parent_category_stats_query_idx ON frontend.companies_par -- PostgreSQL database dump complete -- -\unrestrict Q5ghx5UNhlsVnqhqtKXrwIXZtLDaVXynUxGD7vjYYV0zrhRAeEZdSZKPYrdh5K9 +\unrestrict tcRcm8AW5rrf9yUmXEbVLElcP49WapetqwfSiTBGRvIDwii16R3Ihm3bdUWKk0Z diff --git a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql index 18b7072f..fe0c9af4 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict gyfQHdGyJ3UBe80YFdf3AXzIhRbIak0EZv6V7GkhJHIokFYmmPtGcNE3fOXPWJB +\restrict ZxDIhRPVVswgzC4HZGTtpo3U0pEhoKdBEexquSPl1G6xulnkD7GC094JENk9q8Y -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -90,5 +90,5 @@ CREATE INDEX companies_parent_category_tag_stats_query_idx ON frontend.companies -- PostgreSQL database dump complete -- -\unrestrict gyfQHdGyJ3UBe80YFdf3AXzIhRbIak0EZv6V7GkhJHIokFYmmPtGcNE3fOXPWJB +\unrestrict ZxDIhRPVVswgzC4HZGTtpo3U0pEhoKdBEexquSPl1G6xulnkD7GC094JENk9q8Y diff --git a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql index a717850b..a762c97b 100644 --- a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Dpv0qfLHRN4sBWCxbPq3re6jHLOOoLErMbdPDUbhcgFu5m2Zw4cby8npQbycZ3q +\restrict omQ5z38gkn0YcOxElG1rSEzr6zha9oJSyeMXULeqW5C3Vh7rd2MtqlDeGy4Petb -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX companies_sdks_overview_unique_idx ON frontend.companies_sdk -- PostgreSQL database dump complete -- -\unrestrict Dpv0qfLHRN4sBWCxbPq3re6jHLOOoLErMbdPDUbhcgFu5m2Zw4cby8npQbycZ3q +\unrestrict omQ5z38gkn0YcOxElG1rSEzr6zha9oJSyeMXULeqW5C3Vh7rd2MtqlDeGy4Petb diff --git a/pg-ddl/schema/frontend/company_domain_country__matview.sql b/pg-ddl/schema/frontend/company_domain_country__matview.sql index a7f3055c..f3a52dc9 100644 --- a/pg-ddl/schema/frontend/company_domain_country__matview.sql +++ b/pg-ddl/schema/frontend/company_domain_country__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict lwdkjtrzGGWUkQRo11xGVj61f7iogCklKWYU62ey1KWW6TSQBa6wsnbachg9xlV +\restrict ZPJJjT6BNijRBdaEDZHqwJOVfwLAIA6B1OawY8HDvhkgJhTN9Q7DviShw63rdm6 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -74,5 +74,5 @@ ALTER MATERIALIZED VIEW frontend.company_domain_country OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict lwdkjtrzGGWUkQRo11xGVj61f7iogCklKWYU62ey1KWW6TSQBa6wsnbachg9xlV +\unrestrict ZPJJjT6BNijRBdaEDZHqwJOVfwLAIA6B1OawY8HDvhkgJhTN9Q7DviShw63rdm6 diff --git a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql index 16558ec6..f8f432ee 100644 --- a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict zjpSAD3Y7Li8JUpZ3vqd3gRPLIurIA0J8IzvaoUkAvvzfcRXeqca0NhCQzX8wO9 +\restrict acAbDGxleTYHDPLr1wf2JPR3WYko9s0rdfvCk0xP7hgvb3ZcY09toNfU3GU6kbm -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -115,5 +115,5 @@ CREATE UNIQUE INDEX idx_unique_company_domains_top_apps ON frontend.company_doma -- PostgreSQL database dump complete -- -\unrestrict zjpSAD3Y7Li8JUpZ3vqd3gRPLIurIA0J8IzvaoUkAvvzfcRXeqca0NhCQzX8wO9 +\unrestrict acAbDGxleTYHDPLr1wf2JPR3WYko9s0rdfvCk0xP7hgvb3ZcY09toNfU3GU6kbm diff --git a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql index 67337044..17348ffd 100644 --- a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 8F6r4iHjbIOSxiBbIqBCaiEKeyiZBTlsKwV3u8ByiSIdCSVk2AYPhbqZLhR4e32 +\restrict 0n5GHKrcBWydK5grzb4Nb7azMg6PgjYN3XlhY2vjau2kCKwhDgMgy3zFRbP6R7I -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -111,5 +111,5 @@ CREATE UNIQUE INDEX idx_company_parent_top_apps_unique ON frontend.company_paren -- PostgreSQL database dump complete -- -\unrestrict 8F6r4iHjbIOSxiBbIqBCaiEKeyiZBTlsKwV3u8ByiSIdCSVk2AYPhbqZLhR4e32 +\unrestrict 0n5GHKrcBWydK5grzb4Nb7azMg6PgjYN3XlhY2vjau2kCKwhDgMgy3zFRbP6R7I diff --git a/pg-ddl/schema/frontend/company_top_apps__matview.sql b/pg-ddl/schema/frontend/company_top_apps__matview.sql index 3ad6ac2d..4932038f 100644 --- a/pg-ddl/schema/frontend/company_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict sbubiDP11YvyGThUgg0GjQLYRb9XGLvEH7DYq4OpJwaSUpeBJG1MP2VfqIAizV7 +\restrict GUe6nFUnldlNRxUTzcDelVkPl07YoprS9qyfnJlhTkzFndUp2Srga2F1pu2h5u7 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -118,5 +118,5 @@ CREATE UNIQUE INDEX idx_unique_company_top_apps ON frontend.company_top_apps USI -- PostgreSQL database dump complete -- -\unrestrict sbubiDP11YvyGThUgg0GjQLYRb9XGLvEH7DYq4OpJwaSUpeBJG1MP2VfqIAizV7 +\unrestrict GUe6nFUnldlNRxUTzcDelVkPl07YoprS9qyfnJlhTkzFndUp2Srga2F1pu2h5u7 diff --git a/pg-ddl/schema/frontend/keyword_scores__matview.sql b/pg-ddl/schema/frontend/keyword_scores__matview.sql index 16e02eeb..5bc93bd0 100644 --- a/pg-ddl/schema/frontend/keyword_scores__matview.sql +++ b/pg-ddl/schema/frontend/keyword_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict mFZea2caNHqSEAEKE0MygioFaGUzzRzJdB2dgadmbDNWVdwG8oWA0a6TUDBwEKa +\restrict HqGMJW5HeogOcZ0sNGkeZS5phb37JzP51qCwln0EI87rqRSNe8ykHxGkMdeK2jg -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -144,5 +144,5 @@ CREATE UNIQUE INDEX keyword_scores_store_keyword_id_idx ON frontend.keyword_scor -- PostgreSQL database dump complete -- -\unrestrict mFZea2caNHqSEAEKE0MygioFaGUzzRzJdB2dgadmbDNWVdwG8oWA0a6TUDBwEKa +\unrestrict HqGMJW5HeogOcZ0sNGkeZS5phb37JzP51qCwln0EI87rqRSNe8ykHxGkMdeK2jg diff --git a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql index aecdbad7..b7e0911c 100644 --- a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql +++ b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict yxbuFX85tn01LhSvzTOZpz1mEGlGcgIMmZU5rGz2skzxnF8Y6UjJbYzx1zAlcFK +\restrict J4E5sy5iauRdQkVxEFb5dSKlKvFYzxNL6h6mIyEaV79Vmf3B2nlpwZyR4Dykvpq -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -77,5 +77,5 @@ CREATE UNIQUE INDEX latest_sdk_scanned_apps_unique_index ON frontend.latest_sdk_ -- PostgreSQL database dump complete -- -\unrestrict yxbuFX85tn01LhSvzTOZpz1mEGlGcgIMmZU5rGz2skzxnF8Y6UjJbYzx1zAlcFK +\unrestrict J4E5sy5iauRdQkVxEFb5dSKlKvFYzxNL6h6mIyEaV79Vmf3B2nlpwZyR4Dykvpq diff --git a/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql b/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql index 637ad647..95f2daf0 100644 --- a/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql +++ b/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 2PKmdIf0lsNMmdP2mQUtqaDbsDFaCl9fbZCOmxksMs35blu3n3TJe9lypsvHm8d +\restrict fBrsN1wUrLXUo4cOde5GamHt6RwZ6qMGd3ewbYsrsFJZtqCL3Vtc3hsC8NZnd6Q -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER MATERIALIZED VIEW frontend.mediation_adapter_app_counts OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 2PKmdIf0lsNMmdP2mQUtqaDbsDFaCl9fbZCOmxksMs35blu3n3TJe9lypsvHm8d +\unrestrict fBrsN1wUrLXUo4cOde5GamHt6RwZ6qMGd3ewbYsrsFJZtqCL3Vtc3hsC8NZnd6Q diff --git a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql index 33007d76..5d42c0c8 100644 --- a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql +++ b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Ulz1KD8Uz9vlOQQmrYeAI9jKQSpcszmqqdG4qb8xbm2hZj1CE56OZt2dLydoziN +\restrict ovKfUoyM6MQdhoIAk3U9jeIMNaDgGM4oVu7gIE6Aj9rnNFoPjcb3qluyLR7313Y -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -61,5 +61,5 @@ ALTER MATERIALIZED VIEW frontend.store_app_api_companies OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict Ulz1KD8Uz9vlOQQmrYeAI9jKQSpcszmqqdG4qb8xbm2hZj1CE56OZt2dLydoziN +\unrestrict ovKfUoyM6MQdhoIAk3U9jeIMNaDgGM4oVu7gIE6Aj9rnNFoPjcb3qluyLR7313Y diff --git a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql index b0a2594e..1c791f66 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict CjuKv1vsEkhtyLriMGCdCwO3dIXKkcTMZ1saadZsUuXk6X7Ri7lB9GgY4iz5Geb +\restrict qWVMRn9Yp5VnWWrDzT3wqixWetKkVmN8jFDhKDB6ee74rodJmM7v6Li2vpyV4VU -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -71,5 +71,5 @@ CREATE UNIQUE INDEX store_app_ranks_best_monthly_uidx ON frontend.store_app_rank -- PostgreSQL database dump complete -- -\unrestrict CjuKv1vsEkhtyLriMGCdCwO3dIXKkcTMZ1saadZsUuXk6X7Ri7lB9GgY4iz5Geb +\unrestrict qWVMRn9Yp5VnWWrDzT3wqixWetKkVmN8jFDhKDB6ee74rodJmM7v6Li2vpyV4VU diff --git a/pg-ddl/schema/frontend/store_app_ranks_daily.sql b/pg-ddl/schema/frontend/store_app_ranks_daily.sql index 00622401..683d9f88 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_daily.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_daily.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict aDcpIp9fJt46L3tD5FEVsdQM5tqfkb4DxcJfsDcSYHg7PJlEpzio5gAUM9NXbSP +\restrict TRPc0hvWJa3dQeEZIi8Bb8frnyKbNM4dBal0bks5QzkHrg4bsp1pIqynnt0F9PB -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -91,5 +91,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_daily -- PostgreSQL database dump complete -- -\unrestrict aDcpIp9fJt46L3tD5FEVsdQM5tqfkb4DxcJfsDcSYHg7PJlEpzio5gAUM9NXbSP +\unrestrict TRPc0hvWJa3dQeEZIi8Bb8frnyKbNM4dBal0bks5QzkHrg4bsp1pIqynnt0F9PB diff --git a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql index 86c3fc65..14aabfc2 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict VQsHRS7BDYoqsMdR8rArhA3jTCu2ONRW9wzYTlRcE1OUy9gwLzbjCR62dbx1te5 +\restrict 8EHhms7cfj1Ep3Fu8b8zu2hsLVu7fw2spuKzLc0bBRRE9PTIK7GPfzUuFIDmwpH -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -73,5 +73,5 @@ CREATE UNIQUE INDEX idx_store_app_ranks_latest_filter_sort ON frontend.store_app -- PostgreSQL database dump complete -- -\unrestrict VQsHRS7BDYoqsMdR8rArhA3jTCu2ONRW9wzYTlRcE1OUy9gwLzbjCR62dbx1te5 +\unrestrict 8EHhms7cfj1Ep3Fu8b8zu2hsLVu7fw2spuKzLc0bBRRE9PTIK7GPfzUuFIDmwpH diff --git a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql index 616adc7d..3dd6cd0e 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict BQdpPaLKt2CzaYNeNJ6TNox277eKQhq1uU00qmStxcGA0wojW5dzgTpytYHJO8N +\restrict p2HbOPyJbFI9ypY1QAyYxHv7OANw5SU4lGSiDVr2aUqpTu6oI8uVlgReKKfW0oF -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -98,5 +98,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_weekly -- PostgreSQL database dump complete -- -\unrestrict BQdpPaLKt2CzaYNeNJ6TNox277eKQhq1uU00qmStxcGA0wojW5dzgTpytYHJO8N +\unrestrict p2HbOPyJbFI9ypY1QAyYxHv7OANw5SU4lGSiDVr2aUqpTu6oI8uVlgReKKfW0oF diff --git a/pg-ddl/schema/frontend/store_apps_overview__matview.sql b/pg-ddl/schema/frontend/store_apps_overview__matview.sql index 41eaa0d3..e0589cf7 100644 --- a/pg-ddl/schema/frontend/store_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/store_apps_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict SHtZRLImzWYLvZX5T4sToumJ0HTFOF6bKbw9RVCk1wTuWex1ZigllSKcGoEbxBx +\restrict Y3tUV4IhSLrbMm27hpjpv4JIBfTn3RBURgsWQ3J2D9h2UJcsQViuaVbzeO22Chq -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -205,5 +205,5 @@ CREATE UNIQUE INDEX store_apps_overview_unique_store_id_idx ON frontend.store_ap -- PostgreSQL database dump complete -- -\unrestrict SHtZRLImzWYLvZX5T4sToumJ0HTFOF6bKbw9RVCk1wTuWex1ZigllSKcGoEbxBx +\unrestrict Y3tUV4IhSLrbMm27hpjpv4JIBfTn3RBURgsWQ3J2D9h2UJcsQViuaVbzeO22Chq diff --git a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql b/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql index 56b3ec33..3dd7855f 100644 --- a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql +++ b/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict bw5kuKLgFqali6aMN9kAman9YJdC3caat6gDTJBWhyEIjcDLsxlielFaxj6ZcbU +\restrict NC0nbROPcp3NW8J7xts3C6ZdRVdCsgxVGcrUBkxRns4PmPgbFbWHQg6ZF91zLfR -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -125,5 +125,5 @@ CREATE UNIQUE INDEX frontend_store_apps_z_scores_unique ON frontend.store_apps_z -- PostgreSQL database dump complete -- -\unrestrict bw5kuKLgFqali6aMN9kAman9YJdC3caat6gDTJBWhyEIjcDLsxlielFaxj6ZcbU +\unrestrict NC0nbROPcp3NW8J7xts3C6ZdRVdCsgxVGcrUBkxRns4PmPgbFbWHQg6ZF91zLfR diff --git a/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql b/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql index 359f243e..e6b166d9 100644 --- a/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql +++ b/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict OgKKtM1xxzoCf3uNxfs1IIsOHwu9KlPDvcunRiK765kkwKJROzQfLY3ChIZ4aY7 +\restrict xfgAZb4qIM1yKCmbX6b3bAfoCIFCKeg49zvYLBzv7Epz6tb5mAm3gydvcsiqb9w -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -53,5 +53,5 @@ CREATE UNIQUE INDEX idx_total_categories_app_counts ON frontend.total_categories -- PostgreSQL database dump complete -- -\unrestrict OgKKtM1xxzoCf3uNxfs1IIsOHwu9KlPDvcunRiK765kkwKJROzQfLY3ChIZ4aY7 +\unrestrict xfgAZb4qIM1yKCmbX6b3bAfoCIFCKeg49zvYLBzv7Epz6tb5mAm3gydvcsiqb9w diff --git a/pg-ddl/schema/full_db_dump.sql b/pg-ddl/schema/full_db_dump.sql index a0f45650..41254b70 100644 --- a/pg-ddl/schema/full_db_dump.sql +++ b/pg-ddl/schema/full_db_dump.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict mCACbDkQ8bhWlrsSS73ZknnV2d4oNqxJQEyLQURVYjwTAFZaXP0Tnb2tYIRlAWf +\restrict 90gNuLaY9dT9mh71t01WY30icyMDVzlHRIyJe2t9dFmhGV54ntIFPaNhPEENjAf -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -462,6 +462,18 @@ CREATE TABLE adtech.company_domain_mapping ( ALTER TABLE adtech.company_domain_mapping OWNER TO postgres; +-- +-- Name: sdk_mediation_patterns; Type: TABLE; Schema: adtech; Owner: postgres +-- + +CREATE TABLE adtech.sdk_mediation_patterns ( + sdk_id integer NOT NULL, + mediation_pattern character varying(255) NOT NULL +); + + +ALTER TABLE adtech.sdk_mediation_patterns OWNER TO postgres; + -- -- Name: sdk_packages; Type: TABLE; Schema: adtech; Owner: postgres -- @@ -488,25 +500,6 @@ CREATE TABLE adtech.sdk_paths ( ALTER TABLE adtech.sdk_paths OWNER TO postgres; --- --- Name: sdks; Type: TABLE; Schema: adtech; Owner: postgres --- - -CREATE TABLE adtech.sdks ( - id integer NOT NULL, - company_id integer NOT NULL, - sdk_name character varying(255) NOT NULL, - sdk_url character varying(255), - is_open_source boolean DEFAULT false, - has_third_party_tracking boolean DEFAULT true, - license_type character varying(50) DEFAULT 'Commercial'::character varying, - created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP, - sdk_slug text -); - - -ALTER TABLE adtech.sdks OWNER TO postgres; - -- -- Name: version_strings; Type: TABLE; Schema: public; Owner: postgres -- @@ -528,31 +521,59 @@ ALTER TABLE public.version_strings OWNER TO postgres; CREATE MATERIALIZED VIEW adtech.company_sdk_strings AS WITH matched_value_patterns AS ( SELECT DISTINCT lower(vd.value_name) AS value_name_lower, - sd.company_id - FROM ((public.version_strings vd + sp.sdk_id + FROM (public.version_strings vd JOIN adtech.sdk_packages sp ON ((lower(vd.value_name) ~~ (lower((sp.package_pattern)::text) || '%'::text)))) - JOIN adtech.sdks sd ON ((sp.sdk_id = sd.id))) ), matched_path_patterns AS ( SELECT DISTINCT lower(vd.xml_path) AS xml_path_lower, - sd.company_id - FROM ((public.version_strings vd + ptm.sdk_id + FROM (public.version_strings vd JOIN adtech.sdk_paths ptm ON ((lower(vd.xml_path) = lower((ptm.path_pattern)::text)))) - JOIN adtech.sdks sd ON ((ptm.sdk_id = sd.id))) + ), mediation_strings AS ( + SELECT vs.id AS version_string_id, + cmp.sdk_id, + lower(vs.value_name) AS value_name_lower + FROM (public.version_strings vs + JOIN adtech.sdk_mediation_patterns cmp ON ((lower(vs.value_name) ~~ (lower(concat((cmp.mediation_pattern)::text, '.')) || '%'::text)))) ) SELECT vs.id AS version_string_id, - mp.company_id + mp.sdk_id FROM (matched_value_patterns mp JOIN public.version_strings vs ON ((lower(vs.value_name) = mp.value_name_lower))) UNION SELECT vs.id AS version_string_id, - mp.company_id + mp.sdk_id FROM (matched_path_patterns mp JOIN public.version_strings vs ON ((lower(vs.xml_path) = mp.xml_path_lower))) +UNION + SELECT vs.id AS version_string_id, + ms.sdk_id + FROM (mediation_strings ms + JOIN public.version_strings vs ON ((lower(vs.xml_path) = ms.value_name_lower))) WITH NO DATA; ALTER MATERIALIZED VIEW adtech.company_sdk_strings OWNER TO postgres; +-- +-- Name: sdks; Type: TABLE; Schema: adtech; Owner: postgres +-- + +CREATE TABLE adtech.sdks ( + id integer NOT NULL, + company_id integer NOT NULL, + sdk_name character varying(255) NOT NULL, + sdk_url character varying(255), + is_open_source boolean DEFAULT false, + has_third_party_tracking boolean DEFAULT true, + license_type character varying(50) DEFAULT 'Commercial'::character varying, + created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP, + sdk_slug text +); + + +ALTER TABLE adtech.sdks OWNER TO postgres; + -- -- Name: version_code_sdk_scan_results; Type: TABLE; Schema: public; Owner: postgres -- @@ -615,7 +636,7 @@ CREATE MATERIALIZED VIEW adtech.store_app_sdk_strings AS ) SELECT vc.store_app, vdm.string_id AS version_string_id, - css.company_id + css.sdk_id FROM ((latest_version_codes vc JOIN public.version_details_map vdm ON ((vc.id = vdm.version_code))) LEFT JOIN adtech.company_sdk_strings css ON ((vdm.string_id = css.version_string_id))) @@ -1258,16 +1279,17 @@ CREATE MATERIALIZED VIEW adtech.combined_store_apps_companies AS LEFT JOIN public.domains d ON ((c_1.domain_id = d.id))) LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) ), sdk_based_companies AS ( - SELECT DISTINCT sac.store_app, + SELECT DISTINCT sasd.store_app, cm.mapped_category AS app_category, sac.company_id, ad_1.domain_name AS ad_domain, 'sdk'::text AS tag_source, COALESCE(c_1.parent_company_id, sac.company_id) AS parent_id - FROM ((((adtech.store_app_sdk_strings sac + FROM (((((adtech.store_app_sdk_strings sasd + LEFT JOIN adtech.sdks sac ON ((sac.id = sasd.sdk_id))) LEFT JOIN adtech.companies c_1 ON ((sac.company_id = c_1.id))) LEFT JOIN public.domains ad_1 ON ((c_1.domain_id = ad_1.id))) - LEFT JOIN public.store_apps sa_1 ON ((sac.store_app = sa_1.id))) + LEFT JOIN public.store_apps sa_1 ON ((sasd.store_app = sa_1.id))) LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) ), distinct_ad_and_pub_domains AS ( SELECT DISTINCT pd.domain_name AS publisher_domain_url, @@ -1374,10 +1396,11 @@ CREATE MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h1 AS ) SELECT vc.store_app, vdm.string_id AS version_string_id, - css.company_id - FROM ((latest_version_codes vc + sd.id AS sdk_id + FROM (((latest_version_codes vc JOIN public.version_details_map vdm ON ((vc.id = vdm.version_code))) JOIN adtech.company_sdk_strings css ON ((vdm.string_id = css.version_string_id))) + JOIN adtech.sdks sd ON ((css.sdk_id = sd.id))) WITH NO DATA; @@ -1416,16 +1439,17 @@ CREATE MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h1 AS LEFT JOIN public.domains d ON ((c_1.domain_id = d.id))) LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) ), sdk_based_companies AS ( - SELECT DISTINCT sac.store_app, + SELECT DISTINCT sasd.store_app, cm.mapped_category AS app_category, sac.company_id, ad_1.domain_name AS ad_domain, 'sdk'::text AS tag_source, COALESCE(c_1.parent_company_id, sac.company_id) AS parent_id - FROM ((((adtech.store_app_sdk_strings_2025_h1 sac + FROM (((((adtech.store_app_sdk_strings_2025_h1 sasd + LEFT JOIN adtech.sdks sac ON ((sac.id = sasd.sdk_id))) LEFT JOIN adtech.companies c_1 ON ((sac.company_id = c_1.id))) LEFT JOIN public.domains ad_1 ON ((c_1.domain_id = ad_1.id))) - LEFT JOIN public.store_apps sa_1 ON ((sac.store_app = sa_1.id))) + LEFT JOIN public.store_apps sa_1 ON ((sasd.store_app = sa_1.id))) LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) ), distinct_ad_and_pub_domains AS ( SELECT DISTINCT pd.domain_name AS publisher_domain_url, @@ -1497,10 +1521,11 @@ CREATE MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h2 AS ) SELECT vc.store_app, vdm.string_id AS version_string_id, - css.company_id - FROM ((latest_version_codes vc + sd.id AS sdk_id + FROM (((latest_version_codes vc JOIN public.version_details_map vdm ON ((vc.id = vdm.version_code))) JOIN adtech.company_sdk_strings css ON ((vdm.string_id = css.version_string_id))) + JOIN adtech.sdks sd ON ((css.sdk_id = sd.id))) WITH NO DATA; @@ -1539,16 +1564,17 @@ CREATE MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h2 AS LEFT JOIN public.domains d ON ((c_1.domain_id = d.id))) LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) ), sdk_based_companies AS ( - SELECT DISTINCT sac.store_app, + SELECT DISTINCT sasd.store_app, cm.mapped_category AS app_category, sac.company_id, ad_1.domain_name AS ad_domain, 'sdk'::text AS tag_source, COALESCE(c_1.parent_company_id, sac.company_id) AS parent_id - FROM ((((adtech.store_app_sdk_strings_2025_h2 sac + FROM (((((adtech.store_app_sdk_strings_2025_h2 sasd + LEFT JOIN adtech.sdks sac ON ((sac.id = sasd.sdk_id))) LEFT JOIN adtech.companies c_1 ON ((sac.company_id = c_1.id))) LEFT JOIN public.domains ad_1 ON ((c_1.domain_id = ad_1.id))) - LEFT JOIN public.store_apps sa_1 ON ((sac.store_app = sa_1.id))) + LEFT JOIN public.store_apps sa_1 ON ((sasd.store_app = sa_1.id))) LEFT JOIN public.category_mapping cm ON (((sa_1.category)::text = (cm.original_category)::text))) ), distinct_ad_and_pub_domains AS ( SELECT DISTINCT pd.domain_name AS publisher_domain_url, @@ -1680,18 +1706,6 @@ CREATE TABLE adtech.company_mediation_adapters ( ALTER TABLE adtech.company_mediation_adapters OWNER TO postgres; --- --- Name: company_mediation_patterns; Type: TABLE; Schema: adtech; Owner: postgres --- - -CREATE TABLE adtech.company_mediation_patterns ( - company_id integer NOT NULL, - mediation_pattern character varying(255) NOT NULL -); - - -ALTER TABLE adtech.company_mediation_patterns OWNER TO postgres; - -- -- Name: store_app_ranks_weekly; Type: TABLE; Schema: frontend; Owner: postgres -- @@ -1804,19 +1818,21 @@ CREATE MATERIALIZED VIEW adtech.company_shares_2025_common AS SELECT h2.store_app FROM adtech.store_app_sdk_strings_2025_h2 h2 ), h1_stats AS ( - SELECT store_app_sdk_strings_2025_h1.company_id, + SELECT sd.company_id, count(DISTINCT store_app_sdk_strings_2025_h1.store_app) AS h1_app_count - FROM adtech.store_app_sdk_strings_2025_h1 + FROM (adtech.store_app_sdk_strings_2025_h1 + JOIN adtech.sdks sd ON ((store_app_sdk_strings_2025_h1.sdk_id = sd.id))) WHERE (store_app_sdk_strings_2025_h1.store_app IN ( SELECT common_apps.store_app FROM common_apps)) - GROUP BY store_app_sdk_strings_2025_h1.company_id + GROUP BY sd.company_id ), h2_stats AS ( - SELECT store_app_sdk_strings_2025_h2.company_id, + SELECT sd.company_id, count(DISTINCT store_app_sdk_strings_2025_h2.store_app) AS h2_app_count - FROM adtech.store_app_sdk_strings_2025_h2 + FROM (adtech.store_app_sdk_strings_2025_h2 + JOIN adtech.sdks sd ON ((store_app_sdk_strings_2025_h2.sdk_id = sd.id))) WHERE (store_app_sdk_strings_2025_h2.store_app IN ( SELECT common_apps.store_app FROM common_apps)) - GROUP BY store_app_sdk_strings_2025_h2.company_id + GROUP BY sd.company_id ), comb AS ( SELECT COALESCE(h1.company_id, h2.company_id) AS sdk_company_id, ( SELECT count(*) AS count @@ -2713,8 +2729,9 @@ ALTER MATERIALIZED VIEW frontend.category_tag_stats OWNER TO postgres; CREATE MATERIALIZED VIEW frontend.companies_apps_overview AS WITH store_app_sdk_companies AS ( SELECT DISTINCT savs.store_app, - savs.company_id - FROM adtech.store_app_sdk_strings savs + sd.company_id + FROM (adtech.store_app_sdk_strings savs + LEFT JOIN adtech.sdks sd ON ((savs.sdk_id = sd.id))) ) SELECT sa.store_id, sacs.company_id, @@ -3525,11 +3542,12 @@ ALTER MATERIALIZED VIEW frontend.latest_sdk_scanned_apps OWNER TO postgres; CREATE MATERIALIZED VIEW frontend.mediation_adapter_app_counts AS WITH filter_mediation_strings AS ( SELECT vs.id AS string_id, - cmp.company_id AS mediation_company_id, + sd.company_id AS mediation_company_id, vs.value_name AS full_sdk, regexp_replace(regexp_replace(vs.value_name, concat(cmp.mediation_pattern, '.'), ''::text), '\..*$'::text, ''::text) AS adapter_string - FROM (public.version_strings vs - JOIN adtech.company_mediation_patterns cmp ON ((lower(vs.value_name) ~~ (lower(concat((cmp.mediation_pattern)::text, '.')) || '%'::text)))) + FROM ((public.version_strings vs + JOIN adtech.sdk_mediation_patterns cmp ON ((lower(vs.value_name) ~~ (lower(concat((cmp.mediation_pattern)::text, '.')) || '%'::text)))) + JOIN adtech.sdks sd ON ((cmp.sdk_id = sd.id))) ), mediation_strings AS ( SELECT fms.string_id, fms.mediation_company_id, @@ -4172,6 +4190,108 @@ ALTER TABLE public.app_urls_map ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDEN ); +-- +-- Name: companies_category_tag_type_stats; Type: MATERIALIZED VIEW; Schema: public; Owner: postgres +-- + +CREATE MATERIALIZED VIEW public.companies_category_tag_type_stats AS + WITH d30_counts AS ( + SELECT sahw.store_app, + sum(sahw.installs_diff) AS d30_installs, + sum(sahw.rating_count_diff) AS d30_rating_count + FROM public.app_global_metrics_weekly_diffs sahw + WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) + GROUP BY sahw.store_app + ), minimized_company_categories AS ( + SELECT company_categories.company_id, + min(company_categories.category_id) AS category_id + FROM adtech.company_categories + GROUP BY company_categories.company_id + ), api_and_app_ads AS ( + SELECT sa.store, + csac.app_category, + tag.tag_source, + csac.ad_domain AS company_domain, + c.name AS company_name, + CASE + WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying + ELSE cats.url_slug + END AS type_url_slug, + count(DISTINCT csac.store_app) AS app_count, + sum(dc.d30_installs) AS installs_d30, + sum(dc.d30_rating_count) AS rating_count_d30, + sum(sa.installs) AS installs_total, + sum(sa.rating_count) AS rating_count_total + FROM ((((((adtech.combined_store_apps_companies csac + LEFT JOIN adtech.companies c ON ((csac.company_id = c.id))) + LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) + LEFT JOIN d30_counts dc ON ((csac.store_app = dc.store_app))) + LEFT JOIN minimized_company_categories mcc ON ((csac.company_id = mcc.company_id))) + LEFT JOIN adtech.categories cats ON ((mcc.category_id = cats.id))) + CROSS JOIN LATERAL ( VALUES ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) + WHERE (tag.present IS TRUE) + GROUP BY sa.store, csac.app_category, tag.tag_source, csac.ad_domain, c.name, + CASE + WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying + ELSE cats.url_slug + END + ), store_app_sdks AS ( + SELECT DISTINCT sass.store_app, + sass.sdk_id + FROM adtech.store_app_sdk_strings sass + WHERE (sass.sdk_id IS NOT NULL) + ), sdk_and_mediation AS ( + SELECT sa.store, + sa.category AS app_category, + 'sdk'::text AS tag_source, + d.domain_name AS company_domain, + c.name AS company_name, + cats.url_slug AS type_url_slug, + count(DISTINCT sas.store_app) AS app_count, + sum(dc.d30_installs) AS installs_d30, + sum(dc.d30_rating_count) AS rating_count_d30, + sum(sa.installs) AS installs_total, + sum(sa.rating_count) AS rating_count_total + FROM (((((((store_app_sdks sas + LEFT JOIN adtech.sdks s ON ((sas.sdk_id = s.id))) + LEFT JOIN adtech.companies c ON ((s.company_id = c.id))) + LEFT JOIN public.domains d ON ((c.domain_id = d.id))) + LEFT JOIN frontend.store_apps_overview sa ON ((sas.store_app = sa.id))) + LEFT JOIN d30_counts dc ON ((sas.store_app = dc.store_app))) + LEFT JOIN adtech.sdk_categories sc ON ((s.id = sc.sdk_id))) + LEFT JOIN adtech.categories cats ON ((sc.category_id = cats.id))) + GROUP BY sa.store, sa.category, 'sdk'::text, d.domain_name, c.name, cats.url_slug + ) + SELECT api_and_app_ads.store, + api_and_app_ads.app_category, + api_and_app_ads.tag_source, + api_and_app_ads.company_domain, + api_and_app_ads.company_name, + api_and_app_ads.type_url_slug, + api_and_app_ads.app_count, + api_and_app_ads.installs_d30, + api_and_app_ads.rating_count_d30, + api_and_app_ads.installs_total, + api_and_app_ads.rating_count_total + FROM api_and_app_ads +UNION ALL + SELECT sdk_and_mediation.store, + sdk_and_mediation.app_category, + sdk_and_mediation.tag_source, + sdk_and_mediation.company_domain, + sdk_and_mediation.company_name, + sdk_and_mediation.type_url_slug, + sdk_and_mediation.app_count, + sdk_and_mediation.installs_d30, + sdk_and_mediation.rating_count_d30, + sdk_and_mediation.installs_total, + sdk_and_mediation.rating_count_total + FROM sdk_and_mediation + WITH NO DATA; + + +ALTER MATERIALIZED VIEW public.companies_category_tag_type_stats OWNER TO postgres; + -- -- Name: crawl_results; Type: TABLE; Schema: public; Owner: james -- @@ -5133,11 +5253,11 @@ ALTER TABLE ONLY adtech.company_mediation_adapters -- --- Name: company_mediation_patterns company_mediation_patterns_pkey; Type: CONSTRAINT; Schema: adtech; Owner: postgres +-- Name: sdk_mediation_patterns company_mediation_patterns_pkey; Type: CONSTRAINT; Schema: adtech; Owner: postgres -- -ALTER TABLE ONLY adtech.company_mediation_patterns - ADD CONSTRAINT company_mediation_patterns_pkey PRIMARY KEY (company_id, mediation_pattern); +ALTER TABLE ONLY adtech.sdk_mediation_patterns + ADD CONSTRAINT company_mediation_patterns_pkey PRIMARY KEY (sdk_id, mediation_pattern); -- @@ -5735,7 +5855,7 @@ CREATE UNIQUE INDEX combined_store_app_companies_idx ON adtech.combined_store_ap -- Name: company_sdk_strings_version_string_id_company_id_idx; Type: INDEX; Schema: adtech; Owner: postgres -- -CREATE UNIQUE INDEX company_sdk_strings_version_string_id_company_id_idx ON adtech.company_sdk_strings USING btree (version_string_id, company_id); +CREATE UNIQUE INDEX company_sdk_strings_version_string_id_company_id_idx ON adtech.company_sdk_strings USING btree (version_string_id, sdk_id); -- @@ -5805,7 +5925,7 @@ CREATE INDEX sdk_paths_path_pattern_trgm_idx ON adtech.sdk_paths USING gin (lowe -- Name: store_app_sdk_strings_idx; Type: INDEX; Schema: adtech; Owner: postgres -- -CREATE UNIQUE INDEX store_app_sdk_strings_idx ON adtech.store_app_sdk_strings USING btree (store_app, version_string_id, company_id); +CREATE UNIQUE INDEX store_app_sdk_strings_idx ON adtech.store_app_sdk_strings USING btree (store_app, version_string_id, sdk_id); -- @@ -6592,11 +6712,11 @@ ALTER TABLE ONLY adtech.company_mediation_adapters -- --- Name: company_mediation_patterns company_mediation_patterns_company_id_fkey; Type: FK CONSTRAINT; Schema: adtech; Owner: postgres +-- Name: sdk_mediation_patterns company_mediation_patterns_company_id_fkey; Type: FK CONSTRAINT; Schema: adtech; Owner: postgres -- -ALTER TABLE ONLY adtech.company_mediation_patterns - ADD CONSTRAINT company_mediation_patterns_company_id_fkey FOREIGN KEY (company_id) REFERENCES adtech.companies(id); +ALTER TABLE ONLY adtech.sdk_mediation_patterns + ADD CONSTRAINT company_mediation_patterns_company_id_fkey FOREIGN KEY (sdk_id) REFERENCES adtech.sdks(id); -- @@ -7187,5 +7307,5 @@ GRANT ALL ON SCHEMA public TO PUBLIC; -- PostgreSQL database dump complete -- -\unrestrict mCACbDkQ8bhWlrsSS73ZknnV2d4oNqxJQEyLQURVYjwTAFZaXP0Tnb2tYIRlAWf +\unrestrict 90gNuLaY9dT9mh71t01WY30icyMDVzlHRIyJe2t9dFmhGV54ntIFPaNhPEENjAf diff --git a/pg-ddl/schema/logging/app_country_crawls.sql b/pg-ddl/schema/logging/app_country_crawls.sql index 261fc013..b5879c8a 100644 --- a/pg-ddl/schema/logging/app_country_crawls.sql +++ b/pg-ddl/schema/logging/app_country_crawls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict V6SmVPd7uSAnAo8jQ56QbrW4zxQAW8A8wb66hclE8NO6Nmfmzr8jR9sfBUIuQol +\restrict 34HDCi0dcKp2sRCsju6UTqNlSHWemJRgpeDVhWfHXIues7MHnxTlIyxMm0pNc94 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -57,5 +57,5 @@ ALTER TABLE ONLY logging.app_country_crawls -- PostgreSQL database dump complete -- -\unrestrict V6SmVPd7uSAnAo8jQ56QbrW4zxQAW8A8wb66hclE8NO6Nmfmzr8jR9sfBUIuQol +\unrestrict 34HDCi0dcKp2sRCsju6UTqNlSHWemJRgpeDVhWfHXIues7MHnxTlIyxMm0pNc94 diff --git a/pg-ddl/schema/logging/app_description_keywords_extracted.sql b/pg-ddl/schema/logging/app_description_keywords_extracted.sql index d0dacce0..ac7f7a8e 100644 --- a/pg-ddl/schema/logging/app_description_keywords_extracted.sql +++ b/pg-ddl/schema/logging/app_description_keywords_extracted.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict jU0lk3xwFxt0fk8al9ECfhxv8rvVeQOftYRRJWwe5qxahI1bXWu5giMmcZfSrLG +\restrict Vb5kpPkhqBUh41q6StF4oqovbPhuSG3W0jKTsIfjDkcecG6kcaYF2EYu4D0zXN2 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ CREATE INDEX app_description_keywords_extrac_description_id_extracted_at_idx ON -- PostgreSQL database dump complete -- -\unrestrict jU0lk3xwFxt0fk8al9ECfhxv8rvVeQOftYRRJWwe5qxahI1bXWu5giMmcZfSrLG +\unrestrict Vb5kpPkhqBUh41q6StF4oqovbPhuSG3W0jKTsIfjDkcecG6kcaYF2EYu4D0zXN2 diff --git a/pg-ddl/schema/logging/creative_scan_results.sql b/pg-ddl/schema/logging/creative_scan_results.sql index 36b1aeff..b185e35d 100644 --- a/pg-ddl/schema/logging/creative_scan_results.sql +++ b/pg-ddl/schema/logging/creative_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict trKRxkyBOEIiE6Sr5wfFH9foU43oPQhqObKgCTmdKgMxO7IcjWpvPanfh9dM7cm +\restrict HWg0uFr4WEYJNr8VhoNefSkhbYuM1z95QfkJ5xbUKaYgcYLoxhvUl4STNjeGJ2h -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -47,5 +47,5 @@ ALTER TABLE logging.creative_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict trKRxkyBOEIiE6Sr5wfFH9foU43oPQhqObKgCTmdKgMxO7IcjWpvPanfh9dM7cm +\unrestrict HWg0uFr4WEYJNr8VhoNefSkhbYuM1z95QfkJ5xbUKaYgcYLoxhvUl4STNjeGJ2h diff --git a/pg-ddl/schema/logging/developers_crawled_at.sql b/pg-ddl/schema/logging/developers_crawled_at.sql index 6f60d4ef..ee107e51 100644 --- a/pg-ddl/schema/logging/developers_crawled_at.sql +++ b/pg-ddl/schema/logging/developers_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict HTWFSPQJW7ViGOgY6QcbQ2O697WZJx9fsmR5vFCHbzYe4BAcx9DvcEOg6aCccSL +\restrict 6tY7d3u2eHbuMbPezq6AxXzEctqUf9gI0u9bVrHaXIcDHVuDGgT4eB2rYUJcG34 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.developers_crawled_at -- PostgreSQL database dump complete -- -\unrestrict HTWFSPQJW7ViGOgY6QcbQ2O697WZJx9fsmR5vFCHbzYe4BAcx9DvcEOg6aCccSL +\unrestrict 6tY7d3u2eHbuMbPezq6AxXzEctqUf9gI0u9bVrHaXIcDHVuDGgT4eB2rYUJcG34 diff --git a/pg-ddl/schema/logging/keywords_crawled_at.sql b/pg-ddl/schema/logging/keywords_crawled_at.sql index 829dac5f..7f5f033b 100644 --- a/pg-ddl/schema/logging/keywords_crawled_at.sql +++ b/pg-ddl/schema/logging/keywords_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict YpFMnL8C051qffxvtcwm4pbk1bE8197pfbxaPAcdY1d8aGoQOewu0VwtTGA4mg0 +\restrict RGnoo42s8GJd2T5OZnbJDrMQyNOoX62xzB10KyStOpFcTyJTZZfue502fbsGp8y -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.keywords_crawled_at -- PostgreSQL database dump complete -- -\unrestrict YpFMnL8C051qffxvtcwm4pbk1bE8197pfbxaPAcdY1d8aGoQOewu0VwtTGA4mg0 +\unrestrict RGnoo42s8GJd2T5OZnbJDrMQyNOoX62xzB10KyStOpFcTyJTZZfue502fbsGp8y diff --git a/pg-ddl/schema/logging/snapshot_pub_domains.sql b/pg-ddl/schema/logging/snapshot_pub_domains.sql index 0f391bee..985e91fa 100644 --- a/pg-ddl/schema/logging/snapshot_pub_domains.sql +++ b/pg-ddl/schema/logging/snapshot_pub_domains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict KBIsdTvJbSWsz6pv6V0utk7grpUrmSwaq9jipcGsbozrjXl9o2lJYkIuzf6Ux3b +\restrict efTS4U2v9JcpQ0KduMVEgj7QXI0Ll1dL82aOq06Cem8VC95qG0um8oKf0MeDizx -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -43,5 +43,5 @@ ALTER TABLE logging.snapshot_pub_domains OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict KBIsdTvJbSWsz6pv6V0utk7grpUrmSwaq9jipcGsbozrjXl9o2lJYkIuzf6Ux3b +\unrestrict efTS4U2v9JcpQ0KduMVEgj7QXI0Ll1dL82aOq06Cem8VC95qG0um8oKf0MeDizx diff --git a/pg-ddl/schema/logging/store_app_downloads.sql b/pg-ddl/schema/logging/store_app_downloads.sql index daa53500..32ccb0e5 100644 --- a/pg-ddl/schema/logging/store_app_downloads.sql +++ b/pg-ddl/schema/logging/store_app_downloads.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 7hibQgfFn9O3znkhv848eBNa1S6HcTpo1QeGuCQdraIM7s3zcfRmmjCukdLT34x +\restrict h2FzyWxf3B1b864rpz8kR5gamJn85c84pgbCLHRDqxF2S7LCVM90hvAGLm0x4nA -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -49,5 +49,5 @@ ALTER TABLE ONLY logging.store_app_downloads -- PostgreSQL database dump complete -- -\unrestrict 7hibQgfFn9O3znkhv848eBNa1S6HcTpo1QeGuCQdraIM7s3zcfRmmjCukdLT34x +\unrestrict h2FzyWxf3B1b864rpz8kR5gamJn85c84pgbCLHRDqxF2S7LCVM90hvAGLm0x4nA diff --git a/pg-ddl/schema/logging/store_app_no_creatives.sql b/pg-ddl/schema/logging/store_app_no_creatives.sql index 7ab397c3..752cd230 100644 --- a/pg-ddl/schema/logging/store_app_no_creatives.sql +++ b/pg-ddl/schema/logging/store_app_no_creatives.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict a57Iozq6lDJnvq6uPM5T5RHJ1WQrcWiTfBMWiSGtfcV0nfawPlp9i2mj6Lu5ovI +\restrict tfq7NmWPbgwaQYxYY5tz7welFJGDDoxNP8MipCnDaJxTCFPbIskYveWjwTScRfH -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -40,5 +40,5 @@ ALTER TABLE logging.store_app_no_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict a57Iozq6lDJnvq6uPM5T5RHJ1WQrcWiTfBMWiSGtfcV0nfawPlp9i2mj6Lu5ovI +\unrestrict tfq7NmWPbgwaQYxYY5tz7welFJGDDoxNP8MipCnDaJxTCFPbIskYveWjwTScRfH diff --git a/pg-ddl/schema/logging/store_app_sources.sql b/pg-ddl/schema/logging/store_app_sources.sql index a7cb4ce9..0da53b8b 100644 --- a/pg-ddl/schema/logging/store_app_sources.sql +++ b/pg-ddl/schema/logging/store_app_sources.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict cthakPDPM8qbBcTSzyjh9a4mQxeciZADL3cwRA9MSbiShcyals4YXzJczkGQDIU +\restrict oHLfudgTr6fYpLl5ttIUoqT7RmWuL8uoin8u5REtvENb3DwDegiwa0zW831CVSe -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -64,5 +64,5 @@ ALTER TABLE ONLY logging.store_app_sources -- PostgreSQL database dump complete -- -\unrestrict cthakPDPM8qbBcTSzyjh9a4mQxeciZADL3cwRA9MSbiShcyals4YXzJczkGQDIU +\unrestrict oHLfudgTr6fYpLl5ttIUoqT7RmWuL8uoin8u5REtvENb3DwDegiwa0zW831CVSe diff --git a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql index f57b629a..38d58897 100644 --- a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql +++ b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict g2bD9lORJ7eqdrjUt6BpRkNGpAKtuVOSLh5CJghVRFg9GPKLtaOSDe866OXhgej +\restrict T6As4EjEFDa3VLsCbhaGBHVPbCiNa6kFKRSWxR7HfueW6UKbOPOXaYNWt6zOOkw -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -63,5 +63,5 @@ ALTER TABLE ONLY logging.store_app_waydroid_crawled_at -- PostgreSQL database dump complete -- -\unrestrict g2bD9lORJ7eqdrjUt6BpRkNGpAKtuVOSLh5CJghVRFg9GPKLtaOSDe866OXhgej +\unrestrict T6As4EjEFDa3VLsCbhaGBHVPbCiNa6kFKRSWxR7HfueW6UKbOPOXaYNWt6zOOkw diff --git a/pg-ddl/schema/logging/store_apps_snapshot.sql b/pg-ddl/schema/logging/store_apps_snapshot.sql index 5c2d2563..ad9c2893 100644 --- a/pg-ddl/schema/logging/store_apps_snapshot.sql +++ b/pg-ddl/schema/logging/store_apps_snapshot.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict oTXfypJ8Udz2qb9I9Ds41ELqxlCoj991KHS0bIEGkk75e32DomIM0X6c4PALx2j +\restrict JiLaaW36D42909JHYmyCsUIgsM2ylsFuJcaqCFPLOotPs2581uW0X2xLWGWL6Zk -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -44,5 +44,5 @@ ALTER TABLE logging.store_apps_snapshot OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict oTXfypJ8Udz2qb9I9Ds41ELqxlCoj991KHS0bIEGkk75e32DomIM0X6c4PALx2j +\unrestrict JiLaaW36D42909JHYmyCsUIgsM2ylsFuJcaqCFPLOotPs2581uW0X2xLWGWL6Zk diff --git a/pg-ddl/schema/logging/version_code_api_scan_results.sql b/pg-ddl/schema/logging/version_code_api_scan_results.sql index ce56a056..0a952aae 100644 --- a/pg-ddl/schema/logging/version_code_api_scan_results.sql +++ b/pg-ddl/schema/logging/version_code_api_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict jSjWGfxOR04z5SIhcuneoLrPKZT6LQGcQoVtkBdI0gNaAfiYiPuZx1txJkhqfkX +\restrict YXjlUQTpCKJERbnrsDpymoA2RRe10EMhWBHtdxj58saScxp75PLKczAaiQg35Xq -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -42,5 +42,5 @@ ALTER TABLE logging.version_code_api_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict jSjWGfxOR04z5SIhcuneoLrPKZT6LQGcQoVtkBdI0gNaAfiYiPuZx1txJkhqfkX +\unrestrict YXjlUQTpCKJERbnrsDpymoA2RRe10EMhWBHtdxj58saScxp75PLKczAaiQg35Xq diff --git a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql index f1ace652..af4d8685 100644 --- a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql +++ b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5TY1AG6CeRwaRBOi1i451jrbj1zp9kf0ptNGBkTw4vMT78KFLfYLGKVefH2npcj +\restrict ho03dPH67mYurOuKO3h7txQReQaI4g65T42A5eq5BP5Kd0JGZVWBuHBBt4qEggq -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -60,5 +60,5 @@ ALTER MATERIALIZED VIEW public.ad_network_sdk_keys OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 5TY1AG6CeRwaRBOi1i451jrbj1zp9kf0ptNGBkTw4vMT78KFLfYLGKVefH2npcj +\unrestrict ho03dPH67mYurOuKO3h7txQReQaI4g65T42A5eq5BP5Kd0JGZVWBuHBBt4qEggq diff --git a/pg-ddl/schema/public/adstxt_crawl_results.sql b/pg-ddl/schema/public/adstxt_crawl_results.sql index 6eb8d895..ddae6197 100644 --- a/pg-ddl/schema/public/adstxt_crawl_results.sql +++ b/pg-ddl/schema/public/adstxt_crawl_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict bfSixVR0hgS8oclcgGQN1dKd9vPiuc2uPdcyPVFOxy2F8JGi4Z6y50Qx39HdfZw +\restrict FP1pIdUbNiD1ScfgzCI6qK3OPD6GRh5f9VSILN6pQyKDPIvsLPBGiwxejhYNRi3 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -96,5 +96,5 @@ ALTER TABLE ONLY public.adstxt_crawl_results -- PostgreSQL database dump complete -- -\unrestrict bfSixVR0hgS8oclcgGQN1dKd9vPiuc2uPdcyPVFOxy2F8JGi4Z6y50Qx39HdfZw +\unrestrict FP1pIdUbNiD1ScfgzCI6qK3OPD6GRh5f9VSILN6pQyKDPIvsLPBGiwxejhYNRi3 diff --git a/pg-ddl/schema/public/api_calls.sql b/pg-ddl/schema/public/api_calls.sql index a1329533..19c1116b 100644 --- a/pg-ddl/schema/public/api_calls.sql +++ b/pg-ddl/schema/public/api_calls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict AdvbC9Myw1lX5poad37hHJPfZqf9Wm711UNfyet7Uq9dgGZsH8QEKWuzlXSsp5a +\restrict JBzmegJEKHXj5wzZFMhYngJSBgic81eiIfXoewpr6HfUoMP3PUrwtxi80aHj8di -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -135,5 +135,5 @@ ALTER TABLE ONLY public.api_calls -- PostgreSQL database dump complete -- -\unrestrict AdvbC9Myw1lX5poad37hHJPfZqf9Wm711UNfyet7Uq9dgGZsH8QEKWuzlXSsp5a +\unrestrict JBzmegJEKHXj5wzZFMhYngJSBgic81eiIfXoewpr6HfUoMP3PUrwtxi80aHj8di diff --git a/pg-ddl/schema/public/app_ads_entrys.sql b/pg-ddl/schema/public/app_ads_entrys.sql index 2286ab00..96683f07 100644 --- a/pg-ddl/schema/public/app_ads_entrys.sql +++ b/pg-ddl/schema/public/app_ads_entrys.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Y4P2qD17VXHQqOY4k63aC2T3486WywSpQyIDgfNGnfyaxwi9hEWgaB2AlW3d2o4 +\restrict DdjINtdUIvkI6MSUtZIw85jQyT9ta1VgLSKRNm5WGCnVSgH0f3cUg5AnHGcvtOO -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -90,5 +90,5 @@ ALTER TABLE ONLY public.app_ads_entrys -- PostgreSQL database dump complete -- -\unrestrict Y4P2qD17VXHQqOY4k63aC2T3486WywSpQyIDgfNGnfyaxwi9hEWgaB2AlW3d2o4 +\unrestrict DdjINtdUIvkI6MSUtZIw85jQyT9ta1VgLSKRNm5WGCnVSgH0f3cUg5AnHGcvtOO diff --git a/pg-ddl/schema/public/app_ads_map.sql b/pg-ddl/schema/public/app_ads_map.sql index 99bc4b74..c96ae02b 100644 --- a/pg-ddl/schema/public/app_ads_map.sql +++ b/pg-ddl/schema/public/app_ads_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict KduhMLA7K4LAm9D8DCWgnkGUvqxUfaOwHSOO5yZ8G5f6tAFFYpuYg48ojdEjJRP +\restrict snOArbP2Fpqv8TKbKfwI9DgRmqFgXYvMOeq5WF50AcdVdarc0PBtCa16Xre3n2d -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_ads_map -- PostgreSQL database dump complete -- -\unrestrict KduhMLA7K4LAm9D8DCWgnkGUvqxUfaOwHSOO5yZ8G5f6tAFFYpuYg48ojdEjJRP +\unrestrict snOArbP2Fpqv8TKbKfwI9DgRmqFgXYvMOeq5WF50AcdVdarc0PBtCa16Xre3n2d diff --git a/pg-ddl/schema/public/app_country_metrics_history.sql b/pg-ddl/schema/public/app_country_metrics_history.sql index 72be7782..f324b34f 100644 --- a/pg-ddl/schema/public/app_country_metrics_history.sql +++ b/pg-ddl/schema/public/app_country_metrics_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict TK2ZKMnkVHPQXEYnEFHdYV8iq2kLcx3btBG7eeQBAo9X4JdYLTnZIaECixqB3wJ +\restrict 0yGd4SFAvRXV4w8Nt2xYgEb9wyrs1DC17np0Pk5amruAeUv38nvQTVzr2fLyYQd -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.app_country_metrics_history -- PostgreSQL database dump complete -- -\unrestrict TK2ZKMnkVHPQXEYnEFHdYV8iq2kLcx3btBG7eeQBAo9X4JdYLTnZIaECixqB3wJ +\unrestrict 0yGd4SFAvRXV4w8Nt2xYgEb9wyrs1DC17np0Pk5amruAeUv38nvQTVzr2fLyYQd diff --git a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql index a4d83659..a80c9151 100644 --- a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 4GQa5m2XJcJIlHQwEp5aecP0Bg0hGUuf3NyKB4cJTnZz7ekcqAxz2rYN7wuDx45 +\restrict 7kUwHZNDhDsy4vjYEFHpfbcRK4p9wpZKr70MvWzpJpud9fcIFBlLpmitCeNP1Yc -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -57,5 +57,5 @@ CREATE UNIQUE INDEX app_country_metrics_latest_idx ON public.app_country_metrics -- PostgreSQL database dump complete -- -\unrestrict 4GQa5m2XJcJIlHQwEp5aecP0Bg0hGUuf3NyKB4cJTnZz7ekcqAxz2rYN7wuDx45 +\unrestrict 7kUwHZNDhDsy4vjYEFHpfbcRK4p9wpZKr70MvWzpJpud9fcIFBlLpmitCeNP1Yc diff --git a/pg-ddl/schema/public/app_global_metrics_history.sql b/pg-ddl/schema/public/app_global_metrics_history.sql index 28869b73..45ce79d3 100644 --- a/pg-ddl/schema/public/app_global_metrics_history.sql +++ b/pg-ddl/schema/public/app_global_metrics_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Rzq4ZtwL00ii1V9MW6Sb5F3oyAOOmEP2IQmmOcg1s4Foa6hGlIIWG2QLI1UDpHW +\restrict wyG8YOcDNdQa89mNxOfSHDuOgU7KI2lItnTkiXWv4oyY5JihC5SwMDq0YBcDxr4 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.app_global_metrics_history -- PostgreSQL database dump complete -- -\unrestrict Rzq4ZtwL00ii1V9MW6Sb5F3oyAOOmEP2IQmmOcg1s4Foa6hGlIIWG2QLI1UDpHW +\unrestrict wyG8YOcDNdQa89mNxOfSHDuOgU7KI2lItnTkiXWv4oyY5JihC5SwMDq0YBcDxr4 diff --git a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql index 96d429cb..fe8ac0b1 100644 --- a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict USlPJJjK09iNAsZx9bCIM8mlkzvDRuRVbPYzekON845P053CzpgOdQtMrfRqk7d +\restrict l21OU2dw4Vhg7sZlmXhQvP1c6jIxj0RqBzhWNN4wJYVzSXkFEyegDTrS1E75wJK -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX app_global_metrics_latest_idx ON public.app_global_metrics_l -- PostgreSQL database dump complete -- -\unrestrict USlPJJjK09iNAsZx9bCIM8mlkzvDRuRVbPYzekON845P053CzpgOdQtMrfRqk7d +\unrestrict l21OU2dw4Vhg7sZlmXhQvP1c6jIxj0RqBzhWNN4wJYVzSXkFEyegDTrS1E75wJK diff --git a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql index f20d12c8..3138dea7 100644 --- a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict tOmuPkK0slOfMQDGJ5DlsqiQMyQvG3RuAOLWbX7p5UFcWrGSGB8hHYns3A4k2E5 +\restrict wtUuAqBjP8rsgbtUKuPf19UPeXy1N6ipNV5I4WpbzQqxtxNuZNC6f7qLES1LDji -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX app_global_metrics_weekly_diffs_week_start_store_app_idx ON -- PostgreSQL database dump complete -- -\unrestrict tOmuPkK0slOfMQDGJ5DlsqiQMyQvG3RuAOLWbX7p5UFcWrGSGB8hHYns3A4k2E5 +\unrestrict wtUuAqBjP8rsgbtUKuPf19UPeXy1N6ipNV5I4WpbzQqxtxNuZNC6f7qLES1LDji diff --git a/pg-ddl/schema/public/app_keywords_extracted.sql b/pg-ddl/schema/public/app_keywords_extracted.sql index 48411347..58cae32e 100644 --- a/pg-ddl/schema/public/app_keywords_extracted.sql +++ b/pg-ddl/schema/public/app_keywords_extracted.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict SJS4RcJjnqRUvTtIYVkyuoz2MckHTRieXUtWYUfNOJVxUYPAjxSTtqdHfHAJIHN +\restrict TsO1A4FOfpwEzu1fVO4kUpbRQDRfIGHDBjPcgHjLqRmXYuAk1EUtq6uWo3TXJEN -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -79,5 +79,5 @@ ALTER TABLE ONLY public.app_keywords_extracted -- PostgreSQL database dump complete -- -\unrestrict SJS4RcJjnqRUvTtIYVkyuoz2MckHTRieXUtWYUfNOJVxUYPAjxSTtqdHfHAJIHN +\unrestrict TsO1A4FOfpwEzu1fVO4kUpbRQDRfIGHDBjPcgHjLqRmXYuAk1EUtq6uWo3TXJEN diff --git a/pg-ddl/schema/public/app_urls_map.sql b/pg-ddl/schema/public/app_urls_map.sql index 0bb624a2..980ab62e 100644 --- a/pg-ddl/schema/public/app_urls_map.sql +++ b/pg-ddl/schema/public/app_urls_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict oAcp126FhdfVL4OSfon3nymK60pYxE3jrcR3sJkjUxY1XZSare0arOCO54uCdt0 +\restrict b08ot6KVmQd8t737QTK1fmo6btHZmF4FbnCThnfdK0CRT1K0L9Mxk4aKWgoTEca -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_urls_map -- PostgreSQL database dump complete -- -\unrestrict oAcp126FhdfVL4OSfon3nymK60pYxE3jrcR3sJkjUxY1XZSare0arOCO54uCdt0 +\unrestrict b08ot6KVmQd8t737QTK1fmo6btHZmF4FbnCThnfdK0CRT1K0L9Mxk4aKWgoTEca diff --git a/pg-ddl/schema/public/category_mapping__matview.sql b/pg-ddl/schema/public/category_mapping__matview.sql index 94d0ae2b..13cdfca0 100644 --- a/pg-ddl/schema/public/category_mapping__matview.sql +++ b/pg-ddl/schema/public/category_mapping__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1ohEnlzSFwEf08oe5pKdb4SrsI7dpkkAJvGgzWjUppyndaQTeTU8uUhpFd2ffn6 +\restrict hhKrYyXGDXhaTpsvbkczvTSghe5xCC8sdFZ2h9hjfQQfUb6GCLq5gH4l0NoeneP -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -67,5 +67,5 @@ CREATE UNIQUE INDEX category_mapping_idx ON public.category_mapping USING btree -- PostgreSQL database dump complete -- -\unrestrict 1ohEnlzSFwEf08oe5pKdb4SrsI7dpkkAJvGgzWjUppyndaQTeTU8uUhpFd2ffn6 +\unrestrict hhKrYyXGDXhaTpsvbkczvTSghe5xCC8sdFZ2h9hjfQQfUb6GCLq5gH4l0NoeneP diff --git a/pg-ddl/schema/public/countries.sql b/pg-ddl/schema/public/countries.sql index 78e753be..f4f1d5c3 100644 --- a/pg-ddl/schema/public/countries.sql +++ b/pg-ddl/schema/public/countries.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict WLM5ZRYqVDeQvschrvU3WhbUuwUx2XIH0Qnom5fEzer2MBr6pShFULZe09VK8gW +\restrict D1ltQ8rq9UjdmeVUzfRpbsZPk22t2ImB2Dz9yg76a6iAC2Z7NkkC33nmsHDghTi -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -71,5 +71,5 @@ ALTER TABLE ONLY public.countries -- PostgreSQL database dump complete -- -\unrestrict WLM5ZRYqVDeQvschrvU3WhbUuwUx2XIH0Qnom5fEzer2MBr6pShFULZe09VK8gW +\unrestrict D1ltQ8rq9UjdmeVUzfRpbsZPk22t2ImB2Dz9yg76a6iAC2Z7NkkC33nmsHDghTi diff --git a/pg-ddl/schema/public/crawl_results.sql b/pg-ddl/schema/public/crawl_results.sql index 4a42db5d..4fbb5a8d 100644 --- a/pg-ddl/schema/public/crawl_results.sql +++ b/pg-ddl/schema/public/crawl_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qFmTi8C6YXXhCUQA36bU64LodCrlU2op1bwkp1LGVJ9vhuLlLcnd3952RmCo1Fh +\restrict HGt7uGVqA7yq6Q5nF9fSMJhmdOiGA5zcMPbn28tPmU6fqP1AkWaOAIdCMoxayMF -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -61,5 +61,5 @@ ALTER TABLE ONLY public.crawl_results -- PostgreSQL database dump complete -- -\unrestrict qFmTi8C6YXXhCUQA36bU64LodCrlU2op1bwkp1LGVJ9vhuLlLcnd3952RmCo1Fh +\unrestrict HGt7uGVqA7yq6Q5nF9fSMJhmdOiGA5zcMPbn28tPmU6fqP1AkWaOAIdCMoxayMF diff --git a/pg-ddl/schema/public/crawl_scenario_country_config.sql b/pg-ddl/schema/public/crawl_scenario_country_config.sql index 76e52076..381b7f1b 100644 --- a/pg-ddl/schema/public/crawl_scenario_country_config.sql +++ b/pg-ddl/schema/public/crawl_scenario_country_config.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict XVTCbBAbdZDh1dUXPPk7YNpD8K6iAvm9XyHej4uUhYwUcX53NW6j7lI4IfThnKu +\restrict gPBdDxyCVdFI0K222Fa65vjmBp6EicTYhvmmJU2gqZsAOlwz4NtzIBha9UjRnXw -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.crawl_scenario_country_config -- PostgreSQL database dump complete -- -\unrestrict XVTCbBAbdZDh1dUXPPk7YNpD8K6iAvm9XyHej4uUhYwUcX53NW6j7lI4IfThnKu +\unrestrict gPBdDxyCVdFI0K222Fa65vjmBp6EicTYhvmmJU2gqZsAOlwz4NtzIBha9UjRnXw diff --git a/pg-ddl/schema/public/crawl_scenarios.sql b/pg-ddl/schema/public/crawl_scenarios.sql index 067a0ede..01a38fdd 100644 --- a/pg-ddl/schema/public/crawl_scenarios.sql +++ b/pg-ddl/schema/public/crawl_scenarios.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict yBdDC7Tw5l15ScKUENvbppYwNOghUAalM2sGjHkzU5vywpt1apwwnmfTwmZN2Qw +\restrict 8cEG5EZbYJF9pm3d9te3i8ssuxqgZIDpQGTHuf7m3nfCn8oruLwVhrANLTn01Eu -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.crawl_scenarios -- PostgreSQL database dump complete -- -\unrestrict yBdDC7Tw5l15ScKUENvbppYwNOghUAalM2sGjHkzU5vywpt1apwwnmfTwmZN2Qw +\unrestrict 8cEG5EZbYJF9pm3d9te3i8ssuxqgZIDpQGTHuf7m3nfCn8oruLwVhrANLTn01Eu diff --git a/pg-ddl/schema/public/creative_assets.sql b/pg-ddl/schema/public/creative_assets.sql index 8c8f1248..d55bd3a4 100644 --- a/pg-ddl/schema/public/creative_assets.sql +++ b/pg-ddl/schema/public/creative_assets.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict C42VDhWGG0WB25NfKGhLB8bAb4RyPaywTiaA8cDZDAham8PAw4fVjJilenH83n9 +\restrict d6q35lACcb0ri8kDcEq2MPCjHow3muiaIZAesWkLNRMiGIycQX9bbVlMyajLM84 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -94,5 +94,5 @@ CREATE INDEX idx_creative_assets_phash ON public.creative_assets USING btree (ph -- PostgreSQL database dump complete -- -\unrestrict C42VDhWGG0WB25NfKGhLB8bAb4RyPaywTiaA8cDZDAham8PAw4fVjJilenH83n9 +\unrestrict d6q35lACcb0ri8kDcEq2MPCjHow3muiaIZAesWkLNRMiGIycQX9bbVlMyajLM84 diff --git a/pg-ddl/schema/public/creative_records.sql b/pg-ddl/schema/public/creative_records.sql index 6bc7c8f2..633a4cf0 100644 --- a/pg-ddl/schema/public/creative_records.sql +++ b/pg-ddl/schema/public/creative_records.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict yGaaFsWtp3Qr7VH3S3bezuAY65CKynBJM1yfMhgKODb31dFMxRaI00SQcbRxF6m +\restrict oKPWEUJtsRlWkyOK1ZD66fJ6BDGT2NWdpZ1UlmzL0EcvMpG41CvboYaLxQnlviK -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -153,5 +153,5 @@ ALTER TABLE ONLY public.creative_records -- PostgreSQL database dump complete -- -\unrestrict yGaaFsWtp3Qr7VH3S3bezuAY65CKynBJM1yfMhgKODb31dFMxRaI00SQcbRxF6m +\unrestrict oKPWEUJtsRlWkyOK1ZD66fJ6BDGT2NWdpZ1UlmzL0EcvMpG41CvboYaLxQnlviK diff --git a/pg-ddl/schema/public/developer_store_apps__matview.sql b/pg-ddl/schema/public/developer_store_apps__matview.sql index 906c6fff..1577f994 100644 --- a/pg-ddl/schema/public/developer_store_apps__matview.sql +++ b/pg-ddl/schema/public/developer_store_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict reLYbVuanYM9sycyvhjgcRDfxsnfZeeWbwfMhCGm7Vc3dse09caHjJm4iSRV5lF +\restrict 0ZW2Mo6YH8f1PL3MpYbJuk5EdJCUg3vEbxza3bFzMpdahuQXpu4ZhFoCeu8oROQ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -83,5 +83,5 @@ CREATE UNIQUE INDEX idx_developer_store_apps_unique ON public.developer_store_ap -- PostgreSQL database dump complete -- -\unrestrict reLYbVuanYM9sycyvhjgcRDfxsnfZeeWbwfMhCGm7Vc3dse09caHjJm4iSRV5lF +\unrestrict 0ZW2Mo6YH8f1PL3MpYbJuk5EdJCUg3vEbxza3bFzMpdahuQXpu4ZhFoCeu8oROQ diff --git a/pg-ddl/schema/public/developers.sql b/pg-ddl/schema/public/developers.sql index deeb8b1c..337367eb 100644 --- a/pg-ddl/schema/public/developers.sql +++ b/pg-ddl/schema/public/developers.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qJEraKPFery5RfzQDJFoLAY2Avr2y9v13a6RQtVECYse9pRrfqHgCsiaqy1ChlR +\restrict 61pXnV7s2TL49JXOXDc7aJG7XYhXMn1DLJXNtLeaL2pBKiplfKQskQauPZmj8NC -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -110,5 +110,5 @@ ALTER TABLE ONLY public.developers -- PostgreSQL database dump complete -- -\unrestrict qJEraKPFery5RfzQDJFoLAY2Avr2y9v13a6RQtVECYse9pRrfqHgCsiaqy1ChlR +\unrestrict 61pXnV7s2TL49JXOXDc7aJG7XYhXMn1DLJXNtLeaL2pBKiplfKQskQauPZmj8NC diff --git a/pg-ddl/schema/public/domains.sql b/pg-ddl/schema/public/domains.sql index aae3a6be..8df9032a 100644 --- a/pg-ddl/schema/public/domains.sql +++ b/pg-ddl/schema/public/domains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict LgK5Q8L6LggoqDqKTeCGDbfgyiYNocdgNv00p8KCbOSgqebw8FXuoXIhbDYqUth +\restrict iZyZKK5o7zYsIQz0paMPocEge1HgwEpjiZ3nKUqxebnp4ZCljoJK1drZRPWeRkS -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.domains -- PostgreSQL database dump complete -- -\unrestrict LgK5Q8L6LggoqDqKTeCGDbfgyiYNocdgNv00p8KCbOSgqebw8FXuoXIhbDYqUth +\unrestrict iZyZKK5o7zYsIQz0paMPocEge1HgwEpjiZ3nKUqxebnp4ZCljoJK1drZRPWeRkS diff --git a/pg-ddl/schema/public/ip_geo_snapshots.sql b/pg-ddl/schema/public/ip_geo_snapshots.sql index c8ed8bb5..07534355 100644 --- a/pg-ddl/schema/public/ip_geo_snapshots.sql +++ b/pg-ddl/schema/public/ip_geo_snapshots.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict pqJy12ycw29EI40cZ4fWUteeUCh01tbtcKc8qXfJ1hT3EjDxxvAImypJ8N2VliQ +\restrict 0hJJzRTZYOXRLULUpyE15spzursACYglfGwEiakcgINUmBpGSGMAU38MyATj3sH -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.ip_geo_snapshots -- PostgreSQL database dump complete -- -\unrestrict pqJy12ycw29EI40cZ4fWUteeUCh01tbtcKc8qXfJ1hT3EjDxxvAImypJ8N2VliQ +\unrestrict 0hJJzRTZYOXRLULUpyE15spzursACYglfGwEiakcgINUmBpGSGMAU38MyATj3sH diff --git a/pg-ddl/schema/public/keywords.sql b/pg-ddl/schema/public/keywords.sql index 8c09d3de..34747216 100644 --- a/pg-ddl/schema/public/keywords.sql +++ b/pg-ddl/schema/public/keywords.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict pFbhdnTGTxdDsTDqpM4HS9RdgpOK8FlWSxLr7UO27cyY4BAmNCuveLUrwc2vDeM +\restrict peAb9qi2vwn8fIUHCIU3qK8DH3VTVuY4CqscceFJSH2tvag5c61b1fYwX5Yt7U6 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.keywords -- PostgreSQL database dump complete -- -\unrestrict pFbhdnTGTxdDsTDqpM4HS9RdgpOK8FlWSxLr7UO27cyY4BAmNCuveLUrwc2vDeM +\unrestrict peAb9qi2vwn8fIUHCIU3qK8DH3VTVuY4CqscceFJSH2tvag5c61b1fYwX5Yt7U6 diff --git a/pg-ddl/schema/public/keywords_base.sql b/pg-ddl/schema/public/keywords_base.sql index 62d01df5..acdc351a 100644 --- a/pg-ddl/schema/public/keywords_base.sql +++ b/pg-ddl/schema/public/keywords_base.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 7ybZLPw3BPNgnCbZgdhyYqsK8aivhvDH1oo3hG3Cj9bG8oL56ccy8nWI3qKlGtW +\restrict 1OMGfJoHUIEOL1gPGek1nZOJSNqo1RTpQpUA34XrtuNmKZ3ktKdk5TGWNLQdXjA -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -38,5 +38,5 @@ ALTER TABLE public.keywords_base OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 7ybZLPw3BPNgnCbZgdhyYqsK8aivhvDH1oo3hG3Cj9bG8oL56ccy8nWI3qKlGtW +\unrestrict 1OMGfJoHUIEOL1gPGek1nZOJSNqo1RTpQpUA34XrtuNmKZ3ktKdk5TGWNLQdXjA diff --git a/pg-ddl/schema/public/languages.sql b/pg-ddl/schema/public/languages.sql index 8273d79d..dff71fb0 100644 --- a/pg-ddl/schema/public/languages.sql +++ b/pg-ddl/schema/public/languages.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict nW5tGe7Whm9EgNqirvNbZQSp9O4QLSdnux1u315OxHyxtYabqAyDre1rsIagYGa +\restrict rwGdFDYC29ogUoOutjI3dLsK3arHXhWZuc6lJZj3AUuiaT0IMk9NsYynT1wnM4G -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.languages -- PostgreSQL database dump complete -- -\unrestrict nW5tGe7Whm9EgNqirvNbZQSp9O4QLSdnux1u315OxHyxtYabqAyDre1rsIagYGa +\unrestrict rwGdFDYC29ogUoOutjI3dLsK3arHXhWZuc6lJZj3AUuiaT0IMk9NsYynT1wnM4G diff --git a/pg-ddl/schema/public/mv_app_categories__matview.sql b/pg-ddl/schema/public/mv_app_categories__matview.sql index 447a10d4..1b75919a 100644 --- a/pg-ddl/schema/public/mv_app_categories__matview.sql +++ b/pg-ddl/schema/public/mv_app_categories__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 2PsmsGxqdDrd4fCZcSjM594LGDFnJ8cDbdeQWfnHp6ejyD8iboc9s3jzaBhS0JQ +\restrict P9KwjCwbMiEsqzvlF3TYEZxfrQDBB1sAXRNVZpebvhgJqedQ38UQOaQMKXdTALx -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -45,5 +45,5 @@ ALTER MATERIALIZED VIEW public.mv_app_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 2PsmsGxqdDrd4fCZcSjM594LGDFnJ8cDbdeQWfnHp6ejyD8iboc9s3jzaBhS0JQ +\unrestrict P9KwjCwbMiEsqzvlF3TYEZxfrQDBB1sAXRNVZpebvhgJqedQ38UQOaQMKXdTALx diff --git a/pg-ddl/schema/public/pg_stat_statements__view.sql b/pg-ddl/schema/public/pg_stat_statements__view.sql index a2ed1a52..bcf8b5d8 100644 --- a/pg-ddl/schema/public/pg_stat_statements__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements__view.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict VtRLrihqRGUCnthNiffvNX3QIqSP6itGylrWY8J9eSlBu4QhC5L76cdXxxKsLJn +\restrict YlA0XErmK19jaqRDTBSf0cDTcxTL5jlZlTd14KFfjgqIRqoGUbmelxnwVKeNQEB -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict VtRLrihqRGUCnthNiffvNX3QIqSP6itGylrWY8J9eSlBu4QhC5L76cdXxxKsLJn +\unrestrict YlA0XErmK19jaqRDTBSf0cDTcxTL5jlZlTd14KFfjgqIRqoGUbmelxnwVKeNQEB diff --git a/pg-ddl/schema/public/pg_stat_statements_info__view.sql b/pg-ddl/schema/public/pg_stat_statements_info__view.sql index f53f5684..96af1df9 100644 --- a/pg-ddl/schema/public/pg_stat_statements_info__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements_info__view.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict OgkqxJNom1ArkFnPa8WLbZMLCdTiaXuPxHSD2rn9M0zgFH0sor9hR4XgFY5lfXH +\restrict KfEr68KdBBRvb1zkSqwcDhLkiIdm61AShtCn6PxAiXpIZkVaPdqDmadi2zHfoUg -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict OgkqxJNom1ArkFnPa8WLbZMLCdTiaXuPxHSD2rn9M0zgFH0sor9hR4XgFY5lfXH +\unrestrict KfEr68KdBBRvb1zkSqwcDhLkiIdm61AShtCn6PxAiXpIZkVaPdqDmadi2zHfoUg diff --git a/pg-ddl/schema/public/platforms.sql b/pg-ddl/schema/public/platforms.sql index 9dbd8c5d..71d3767b 100644 --- a/pg-ddl/schema/public/platforms.sql +++ b/pg-ddl/schema/public/platforms.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 0hPzcnCDsaZ2MzPP7dNkOSw6DDSosITFU01SXvwOmkEa2befH1GTjxmO4D2Y2RT +\restrict 4wNedFaUTceB8lFLbsnfCQQ8FbzzKG2IjVMMkltg0ArdDuAZsUB4VNHqNuVWghs -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.platforms -- PostgreSQL database dump complete -- -\unrestrict 0hPzcnCDsaZ2MzPP7dNkOSw6DDSosITFU01SXvwOmkEa2befH1GTjxmO4D2Y2RT +\unrestrict 4wNedFaUTceB8lFLbsnfCQQ8FbzzKG2IjVMMkltg0ArdDuAZsUB4VNHqNuVWghs diff --git a/pg-ddl/schema/public/store_app_z_scores__matview.sql b/pg-ddl/schema/public/store_app_z_scores__matview.sql index 16e1433c..abf5e545 100644 --- a/pg-ddl/schema/public/store_app_z_scores__matview.sql +++ b/pg-ddl/schema/public/store_app_z_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict BdqdG6vIgHdxqfqSjtbaYhhWTAOdC8srX8xOhkqtk0if4sPVUnrjmmcrW2tf7An +\restrict KlJgPDd38lzUU5AxhNPT6PURvkVdeVmWewXQLZqz1hJjcXpGLTXV0MbbgManOdP -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -155,5 +155,5 @@ ALTER MATERIALIZED VIEW public.store_app_z_scores OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict BdqdG6vIgHdxqfqSjtbaYhhWTAOdC8srX8xOhkqtk0if4sPVUnrjmmcrW2tf7An +\unrestrict KlJgPDd38lzUU5AxhNPT6PURvkVdeVmWewXQLZqz1hJjcXpGLTXV0MbbgManOdP diff --git a/pg-ddl/schema/public/store_app_z_scores_history.sql b/pg-ddl/schema/public/store_app_z_scores_history.sql index 587ba8ad..31f6dcfd 100644 --- a/pg-ddl/schema/public/store_app_z_scores_history.sql +++ b/pg-ddl/schema/public/store_app_z_scores_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict kXECfafi0dhIR6lyPKgwfcnJp0bdcCAH3EyP97qaecmV0T7mHu3a8nVrDvttINE +\restrict NkAYt5bAEwwhbb2kX3CGeCgj8Jl3L9Ti8bwQTw9blf2mdAoYBjkQYhiEgJ6wIDH -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -64,5 +64,5 @@ ALTER TABLE ONLY public.store_app_z_scores_history -- PostgreSQL database dump complete -- -\unrestrict kXECfafi0dhIR6lyPKgwfcnJp0bdcCAH3EyP97qaecmV0T7mHu3a8nVrDvttINE +\unrestrict NkAYt5bAEwwhbb2kX3CGeCgj8Jl3L9Ti8bwQTw9blf2mdAoYBjkQYhiEgJ6wIDH diff --git a/pg-ddl/schema/public/store_apps.sql b/pg-ddl/schema/public/store_apps.sql index 2f2ee54a..8c7513f1 100644 --- a/pg-ddl/schema/public/store_apps.sql +++ b/pg-ddl/schema/public/store_apps.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict X7NPNBLWyWkTeBqJvDXKMq0Zaco0tR0kWnXQfGOGR6bAVsZYfUkB5c24bwgoAga +\restrict oMAjdTlsae2q16O1p0DEyQohFI7W8rVMiwTxD9fkTpLUezetiChAozAUWnQjq8e -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -163,5 +163,5 @@ ALTER TABLE ONLY public.store_apps -- PostgreSQL database dump complete -- -\unrestrict X7NPNBLWyWkTeBqJvDXKMq0Zaco0tR0kWnXQfGOGR6bAVsZYfUkB5c24bwgoAga +\unrestrict oMAjdTlsae2q16O1p0DEyQohFI7W8rVMiwTxD9fkTpLUezetiChAozAUWnQjq8e diff --git a/pg-ddl/schema/public/store_apps_descriptions.sql b/pg-ddl/schema/public/store_apps_descriptions.sql index adb7c668..82102c6c 100644 --- a/pg-ddl/schema/public/store_apps_descriptions.sql +++ b/pg-ddl/schema/public/store_apps_descriptions.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict I6E82ApUxYM98PUzMrVvzRhxqtdDN755OBTGa1uOA3zEoajlv3oZLxpUocw3jMT +\restrict HCjCbbDkRgGOmhiaszboF1AH4HD68qgUhKSonVy7SJH4aWk9XGvfLYgycHwJ4va -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.store_apps_descriptions -- PostgreSQL database dump complete -- -\unrestrict I6E82ApUxYM98PUzMrVvzRhxqtdDN755OBTGa1uOA3zEoajlv3oZLxpUocw3jMT +\unrestrict HCjCbbDkRgGOmhiaszboF1AH4HD68qgUhKSonVy7SJH4aWk9XGvfLYgycHwJ4va diff --git a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql index fbdeb9e3..292e291e 100644 --- a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql +++ b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 501g9eDye39J9KLmbgEXlRR3eJSlGfwKzmChU1Mag0rJXtWlr1mO2vyfdukVI1L +\restrict 5LLEoliMf6Hw9AeLt1nOB7Zw7wcllzB1T0a49pv7INY2pqXCMf7HUcHSPjxh9ly -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW public.store_apps_in_latest_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 501g9eDye39J9KLmbgEXlRR3eJSlGfwKzmChU1Mag0rJXtWlr1mO2vyfdukVI1L +\unrestrict 5LLEoliMf6Hw9AeLt1nOB7Zw7wcllzB1T0a49pv7INY2pqXCMf7HUcHSPjxh9ly diff --git a/pg-ddl/schema/public/store_categories.sql b/pg-ddl/schema/public/store_categories.sql index 84c4aa6b..95e6729f 100644 --- a/pg-ddl/schema/public/store_categories.sql +++ b/pg-ddl/schema/public/store_categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict RyjLyawpNMxVwO4YW3Y22c0eNMiaTOxlB9tAnBPnoHHtDypPiDyYLdnJxhHXp5l +\restrict ApLR34CN0bhARMspNK9eKqz3wj05jvwje0OMgSOriAY5IHpTgqeIn3fevrYForg -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_categories -- PostgreSQL database dump complete -- -\unrestrict RyjLyawpNMxVwO4YW3Y22c0eNMiaTOxlB9tAnBPnoHHtDypPiDyYLdnJxhHXp5l +\unrestrict ApLR34CN0bhARMspNK9eKqz3wj05jvwje0OMgSOriAY5IHpTgqeIn3fevrYForg diff --git a/pg-ddl/schema/public/store_collections.sql b/pg-ddl/schema/public/store_collections.sql index e1640131..72ff98a6 100644 --- a/pg-ddl/schema/public/store_collections.sql +++ b/pg-ddl/schema/public/store_collections.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict kHpDC0NuxzF9G2t2ZF1PXmmpFQQZROGMdrIqN7J4S8NrFXObhfAL9Asf3megcsD +\restrict RNF3hUfrZpzIgnBGrA7KFAaWrcYj5I8yzCesUJLFSXanOD6gr4SoNQ8q9eEIUID -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_collections -- PostgreSQL database dump complete -- -\unrestrict kHpDC0NuxzF9G2t2ZF1PXmmpFQQZROGMdrIqN7J4S8NrFXObhfAL9Asf3megcsD +\unrestrict RNF3hUfrZpzIgnBGrA7KFAaWrcYj5I8yzCesUJLFSXanOD6gr4SoNQ8q9eEIUID diff --git a/pg-ddl/schema/public/stores.sql b/pg-ddl/schema/public/stores.sql index 7b874583..66e11a00 100644 --- a/pg-ddl/schema/public/stores.sql +++ b/pg-ddl/schema/public/stores.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict R6DhPIIWwWjgFs2HtAQjr49RIFT2vdeKPJ151jHctpCVCjhshiZ5waojA2yex3u +\restrict IH3rQS85vHK0N2UbXDK89CXhVQ6mzrSzCHFQeIZzn1DYOA5D7h7oDnfsTl0J8JC -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -93,5 +93,5 @@ ALTER TABLE ONLY public.stores -- PostgreSQL database dump complete -- -\unrestrict R6DhPIIWwWjgFs2HtAQjr49RIFT2vdeKPJ151jHctpCVCjhshiZ5waojA2yex3u +\unrestrict IH3rQS85vHK0N2UbXDK89CXhVQ6mzrSzCHFQeIZzn1DYOA5D7h7oDnfsTl0J8JC diff --git a/pg-ddl/schema/public/total_count_overview__matview.sql b/pg-ddl/schema/public/total_count_overview__matview.sql index 5be473dc..1a93dcaa 100644 --- a/pg-ddl/schema/public/total_count_overview__matview.sql +++ b/pg-ddl/schema/public/total_count_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict MjnoHdSFsySIjvO06u1yVmiBHpymHJaFnTLWX2varguQjI87z8ABHw57DoBaaLK +\restrict g8bp0ZVAo8VXOCLpgY12P0C9dYHLr9dZHZGlnRP69Bli4l9egI71hCznoy1aaZY -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -166,5 +166,5 @@ ALTER MATERIALIZED VIEW public.total_count_overview OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict MjnoHdSFsySIjvO06u1yVmiBHpymHJaFnTLWX2varguQjI87z8ABHw57DoBaaLK +\unrestrict g8bp0ZVAo8VXOCLpgY12P0C9dYHLr9dZHZGlnRP69Bli4l9egI71hCznoy1aaZY diff --git a/pg-ddl/schema/public/user_requested_scan.sql b/pg-ddl/schema/public/user_requested_scan.sql deleted file mode 100644 index afe392d5..00000000 --- a/pg-ddl/schema/public/user_requested_scan.sql +++ /dev/null @@ -1,81 +0,0 @@ --- --- PostgreSQL database dump --- - -\restrict qEoufOWPNchE8RW5MTZISbXNTKXdhI5r0A5KbvzbQn9yO4JfOvA9Y4NUkj0M9yL - --- Dumped from database version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) --- Dumped by pg_dump version 18.0 (Ubuntu 18.0-1.pgdg24.04+3) - -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET transaction_timeout = 0; -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); -SET check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - -SET default_tablespace = ''; - -SET default_table_access_method = heap; - --- --- Name: user_requested_scan; Type: TABLE; Schema: public; Owner: postgres --- - -CREATE TABLE public.user_requested_scan ( - id integer NOT NULL, - store_id character varying NOT NULL, - created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP -); - - -ALTER TABLE public.user_requested_scan OWNER TO postgres; - --- --- Name: user_requested_scan_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres --- - -CREATE SEQUENCE public.user_requested_scan_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER SEQUENCE public.user_requested_scan_id_seq OWNER TO postgres; - --- --- Name: user_requested_scan_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres --- - -ALTER SEQUENCE public.user_requested_scan_id_seq OWNED BY public.user_requested_scan.id; - - --- --- Name: user_requested_scan id; Type: DEFAULT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.user_requested_scan ALTER COLUMN id SET DEFAULT nextval('public.user_requested_scan_id_seq'::regclass); - - --- --- Name: user_requested_scan user_requested_scan_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres --- - -ALTER TABLE ONLY public.user_requested_scan - ADD CONSTRAINT user_requested_scan_pkey PRIMARY KEY (id); - - --- --- PostgreSQL database dump complete --- - -\unrestrict qEoufOWPNchE8RW5MTZISbXNTKXdhI5r0A5KbvzbQn9yO4JfOvA9Y4NUkj0M9yL - diff --git a/pg-ddl/schema/public/version_code_api_scan_results.sql b/pg-ddl/schema/public/version_code_api_scan_results.sql index bf191ed8..e0ad786d 100644 --- a/pg-ddl/schema/public/version_code_api_scan_results.sql +++ b/pg-ddl/schema/public/version_code_api_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5h9W4AqveInY8PR8SM3RSrs68W85uNHZliIgbVmlZj3ilzvOL3v2dfyiumm7FXX +\restrict MAMTumGjQXOFdyLXUQpGwaQegjCDsNoqhLDhueLTewXrqeSQDImXhAwIuQqjmxJ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -87,5 +87,5 @@ ALTER TABLE ONLY public.version_code_api_scan_results -- PostgreSQL database dump complete -- -\unrestrict 5h9W4AqveInY8PR8SM3RSrs68W85uNHZliIgbVmlZj3ilzvOL3v2dfyiumm7FXX +\unrestrict MAMTumGjQXOFdyLXUQpGwaQegjCDsNoqhLDhueLTewXrqeSQDImXhAwIuQqjmxJ diff --git a/pg-ddl/schema/public/version_code_sdk_scan_results.sql b/pg-ddl/schema/public/version_code_sdk_scan_results.sql index c679501a..8c0d52cd 100644 --- a/pg-ddl/schema/public/version_code_sdk_scan_results.sql +++ b/pg-ddl/schema/public/version_code_sdk_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict LVlcWaQdc9cjhJ59ZfAKwlABO4UtaDmriuDr1i7Yxf8poEse9WZu21aUj8Hg61s +\restrict 0iZg7Qjcduraw2PAlCNSNBrhZp90HnWhGFrOe499yyiMfz9QIaFihXav9cnZFC6 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.version_code_sdk_scan_results -- PostgreSQL database dump complete -- -\unrestrict LVlcWaQdc9cjhJ59ZfAKwlABO4UtaDmriuDr1i7Yxf8poEse9WZu21aUj8Hg61s +\unrestrict 0iZg7Qjcduraw2PAlCNSNBrhZp90HnWhGFrOe499yyiMfz9QIaFihXav9cnZFC6 diff --git a/pg-ddl/schema/public/version_codes.sql b/pg-ddl/schema/public/version_codes.sql index bd8e46d5..9727b2f0 100644 --- a/pg-ddl/schema/public/version_codes.sql +++ b/pg-ddl/schema/public/version_codes.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ifWShgBkC8W3SEynBgBbzY7OhBtdvlJg1Mkzbpd4dv93Dzvr36bIx5Lilh2Afl7 +\restrict qAL7BV2VGCLPejJUpLFy9N6IXedj65DtGhVWIwSlD5w8rsziEmsJZqCH9HTNDyf -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -89,5 +89,5 @@ ALTER TABLE ONLY public.version_codes -- PostgreSQL database dump complete -- -\unrestrict ifWShgBkC8W3SEynBgBbzY7OhBtdvlJg1Mkzbpd4dv93Dzvr36bIx5Lilh2Afl7 +\unrestrict qAL7BV2VGCLPejJUpLFy9N6IXedj65DtGhVWIwSlD5w8rsziEmsJZqCH9HTNDyf diff --git a/pg-ddl/schema/public/version_details_map.sql b/pg-ddl/schema/public/version_details_map.sql index 4e825bcf..ec62ff76 100644 --- a/pg-ddl/schema/public/version_details_map.sql +++ b/pg-ddl/schema/public/version_details_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict gokOK1QZSJUWjGOdPbcUJqiXJ0azAr9MsVPB2REgTOXF6EXUY7CQJth3XMvjE7j +\restrict HwRE43vxD27BOtWsh59yaMFQy2kWywbAOKIlpaB0SecojUyfEDO4kO2ZpvKvSdb -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_details_map -- PostgreSQL database dump complete -- -\unrestrict gokOK1QZSJUWjGOdPbcUJqiXJ0azAr9MsVPB2REgTOXF6EXUY7CQJth3XMvjE7j +\unrestrict HwRE43vxD27BOtWsh59yaMFQy2kWywbAOKIlpaB0SecojUyfEDO4kO2ZpvKvSdb diff --git a/pg-ddl/schema/public/version_manifests.sql b/pg-ddl/schema/public/version_manifests.sql index de987599..d8599914 100644 --- a/pg-ddl/schema/public/version_manifests.sql +++ b/pg-ddl/schema/public/version_manifests.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict UdmMbTp6RRerVxuKAuBkQ4Kv1v53swyOCY887lE6ioKBUyO7WrUoaVYL7yLfxGv +\restrict j8F8zTWutBvrNXdTDzZqf5b0Joul9RAo7CDZoCUVzwWuHxcNfIBd1oyzkmewrUc -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_manifests -- PostgreSQL database dump complete -- -\unrestrict UdmMbTp6RRerVxuKAuBkQ4Kv1v53swyOCY887lE6ioKBUyO7WrUoaVYL7yLfxGv +\unrestrict j8F8zTWutBvrNXdTDzZqf5b0Joul9RAo7CDZoCUVzwWuHxcNfIBd1oyzkmewrUc diff --git a/pg-ddl/schema/public/version_strings.sql b/pg-ddl/schema/public/version_strings.sql index e4a54742..02ccdf70 100644 --- a/pg-ddl/schema/public/version_strings.sql +++ b/pg-ddl/schema/public/version_strings.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict LFvcb5wYAValkDeU20BgqB02x3v8cUtUpLJUl864hCJu0qOKsb2O5CvQDJ3SLyy +\restrict cUhtzVRKXza2rjkaXsrWztiRLVgY38ESgDr4VShujdYnMj7VeQVNUrMnbDDd2A7 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -106,5 +106,5 @@ CREATE INDEX version_strings_xml_path_trgm_idx ON public.version_strings USING g -- PostgreSQL database dump complete -- -\unrestrict LFvcb5wYAValkDeU20BgqB02x3v8cUtUpLJUl864hCJu0qOKsb2O5CvQDJ3SLyy +\unrestrict cUhtzVRKXza2rjkaXsrWztiRLVgY38ESgDr4VShujdYnMj7VeQVNUrMnbDDd2A7 From 93bf71779b8045a4c689ab39ab68ed50f4200553 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Wed, 4 Feb 2026 11:27:14 +0800 Subject: [PATCH 58/81] interim schema --- .../adtech/company_sdk_strings__matview.sql | 79 ----------- ...anies_category_tag_type_stats__matview.sql | 133 ++++++++++++++++++ 2 files changed, 133 insertions(+), 79 deletions(-) delete mode 100644 pg-ddl/schema/adtech/company_sdk_strings__matview.sql create mode 100644 pg-ddl/schema/public/companies_category_tag_type_stats__matview.sql diff --git a/pg-ddl/schema/adtech/company_sdk_strings__matview.sql b/pg-ddl/schema/adtech/company_sdk_strings__matview.sql deleted file mode 100644 index fea92f1a..00000000 --- a/pg-ddl/schema/adtech/company_sdk_strings__matview.sql +++ /dev/null @@ -1,79 +0,0 @@ --- --- PostgreSQL database dump --- - -\restrict pDMhu0PYSd3BNRcduMwxJOUizhfMgr0Sza4HhILUzUPbHOTQoBVx4Pfo3Pr1OeZ - --- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) --- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) - -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET transaction_timeout = 0; -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); -SET check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - -SET default_tablespace = ''; - -SET default_table_access_method = heap; - --- --- Name: company_sdk_strings; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres --- - -CREATE MATERIALIZED VIEW adtech.sdk_strings AS - WITH matched_value_patterns AS ( - SELECT DISTINCT lower(vd.value_name) AS value_name_lower, - sp.sdk_id - FROM (public.version_strings vd - JOIN adtech.sdk_packages sp ON ((lower(vd.value_name) ~~ (lower((sp.package_pattern)::text) || '%'::text)))) - ), matched_path_patterns AS ( - SELECT DISTINCT lower(vd.xml_path) AS xml_path_lower, - ptm.sdk_id - FROM (public.version_strings vd - JOIN adtech.sdk_paths ptm ON ((lower(vd.xml_path) = lower((ptm.path_pattern)::text)))) - ), mediation_strings AS ( - SELECT vs.id AS version_string_id, - cmp.sdk_id, - lower(vs.value_name) AS value_name_lower - FROM (public.version_strings vs - JOIN adtech.sdk_mediation_patterns cmp ON ((lower(vs.value_name) ~~ (lower(concat((cmp.mediation_pattern)::text, '.')) || '%'::text)))) - ) - SELECT vs.id AS version_string_id, - mp.sdk_id - FROM (matched_value_patterns mp - JOIN public.version_strings vs ON ((lower(vs.value_name) = mp.value_name_lower))) -UNION - SELECT vs.id AS version_string_id, - mp.sdk_id - FROM (matched_path_patterns mp - JOIN public.version_strings vs ON ((lower(vs.xml_path) = mp.xml_path_lower))) -UNION - SELECT vs.id AS version_string_id, - ms.sdk_id - FROM (mediation_strings ms - JOIN public.version_strings vs ON ((lower(vs.xml_path) = ms.value_name_lower))) - WITH NO DATA; - - -ALTER MATERIALIZED VIEW adtech.company_sdk_strings OWNER TO postgres; - --- --- Name: company_sdk_strings_version_string_id_company_id_idx; Type: INDEX; Schema: adtech; Owner: postgres --- - -CREATE UNIQUE INDEX company_sdk_strings_version_string_id_company_id_idx ON adtech.company_sdk_strings USING btree (version_string_id, sdk_id); - - --- --- PostgreSQL database dump complete --- - -\unrestrict pDMhu0PYSd3BNRcduMwxJOUizhfMgr0Sza4HhILUzUPbHOTQoBVx4Pfo3Pr1OeZ - diff --git a/pg-ddl/schema/public/companies_category_tag_type_stats__matview.sql b/pg-ddl/schema/public/companies_category_tag_type_stats__matview.sql new file mode 100644 index 00000000..329d9b5d --- /dev/null +++ b/pg-ddl/schema/public/companies_category_tag_type_stats__matview.sql @@ -0,0 +1,133 @@ +-- +-- PostgreSQL database dump +-- + +\restrict QJm88NtOh4EoPRdrx46RKnILh7uRIW2gnBOKtUAqWG6G8AjHXFhCReJPW5U89bO + +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: companies_category_tag_type_stats; Type: MATERIALIZED VIEW; Schema: public; Owner: postgres +-- + +CREATE MATERIALIZED VIEW public.companies_category_tag_type_stats AS + WITH d30_counts AS ( + SELECT sahw.store_app, + sum(sahw.installs_diff) AS d30_installs, + sum(sahw.rating_count_diff) AS d30_rating_count + FROM public.app_global_metrics_weekly_diffs sahw + WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) + GROUP BY sahw.store_app + ), minimized_company_categories AS ( + SELECT company_categories.company_id, + min(company_categories.category_id) AS category_id + FROM adtech.company_categories + GROUP BY company_categories.company_id + ), api_and_app_ads AS ( + SELECT sa.store, + csac.app_category, + tag.tag_source, + csac.ad_domain AS company_domain, + c.name AS company_name, + CASE + WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying + ELSE cats.url_slug + END AS type_url_slug, + count(DISTINCT csac.store_app) AS app_count, + sum(dc.d30_installs) AS installs_d30, + sum(dc.d30_rating_count) AS rating_count_d30, + sum(sa.installs) AS installs_total, + sum(sa.rating_count) AS rating_count_total + FROM ((((((adtech.combined_store_apps_companies csac + LEFT JOIN adtech.companies c ON ((csac.company_id = c.id))) + LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) + LEFT JOIN d30_counts dc ON ((csac.store_app = dc.store_app))) + LEFT JOIN minimized_company_categories mcc ON ((csac.company_id = mcc.company_id))) + LEFT JOIN adtech.categories cats ON ((mcc.category_id = cats.id))) + CROSS JOIN LATERAL ( VALUES ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) + WHERE (tag.present IS TRUE) + GROUP BY sa.store, csac.app_category, tag.tag_source, csac.ad_domain, c.name, + CASE + WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying + ELSE cats.url_slug + END + ), store_app_sdks AS ( + SELECT DISTINCT sass.store_app, + sass.sdk_id + FROM adtech.store_app_sdk_strings sass + WHERE (sass.sdk_id IS NOT NULL) + ), sdk_and_mediation AS ( + SELECT sa.store, + sa.category AS app_category, + 'sdk'::text AS tag_source, + d.domain_name AS company_domain, + c.name AS company_name, + cats.url_slug AS type_url_slug, + count(DISTINCT sas.store_app) AS app_count, + sum(dc.d30_installs) AS installs_d30, + sum(dc.d30_rating_count) AS rating_count_d30, + sum(sa.installs) AS installs_total, + sum(sa.rating_count) AS rating_count_total + FROM (((((((store_app_sdks sas + LEFT JOIN adtech.sdks s ON ((sas.sdk_id = s.id))) + LEFT JOIN adtech.companies c ON ((s.company_id = c.id))) + LEFT JOIN public.domains d ON ((c.domain_id = d.id))) + LEFT JOIN frontend.store_apps_overview sa ON ((sas.store_app = sa.id))) + LEFT JOIN d30_counts dc ON ((sas.store_app = dc.store_app))) + LEFT JOIN adtech.sdk_categories sc ON ((s.id = sc.sdk_id))) + LEFT JOIN adtech.categories cats ON ((sc.category_id = cats.id))) + GROUP BY sa.store, sa.category, 'sdk'::text, d.domain_name, c.name, cats.url_slug + ) + SELECT api_and_app_ads.store, + api_and_app_ads.app_category, + api_and_app_ads.tag_source, + api_and_app_ads.company_domain, + api_and_app_ads.company_name, + api_and_app_ads.type_url_slug, + api_and_app_ads.app_count, + api_and_app_ads.installs_d30, + api_and_app_ads.rating_count_d30, + api_and_app_ads.installs_total, + api_and_app_ads.rating_count_total + FROM api_and_app_ads +UNION ALL + SELECT sdk_and_mediation.store, + sdk_and_mediation.app_category, + sdk_and_mediation.tag_source, + sdk_and_mediation.company_domain, + sdk_and_mediation.company_name, + sdk_and_mediation.type_url_slug, + sdk_and_mediation.app_count, + sdk_and_mediation.installs_d30, + sdk_and_mediation.rating_count_d30, + sdk_and_mediation.installs_total, + sdk_and_mediation.rating_count_total + FROM sdk_and_mediation + WITH NO DATA; + + +ALTER MATERIALIZED VIEW public.companies_category_tag_type_stats OWNER TO postgres; + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict QJm88NtOh4EoPRdrx46RKnILh7uRIW2gnBOKtUAqWG6G8AjHXFhCReJPW5U89bO + From 23f3cb7cba09de8601360574c08346fa1fbb5da1 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Wed, 4 Feb 2026 11:27:54 +0800 Subject: [PATCH 59/81] interim schema --- ...anies_category_tag_type_stats__matview.sql | 133 ------------------ 1 file changed, 133 deletions(-) delete mode 100644 pg-ddl/schema/public/companies_category_tag_type_stats__matview.sql diff --git a/pg-ddl/schema/public/companies_category_tag_type_stats__matview.sql b/pg-ddl/schema/public/companies_category_tag_type_stats__matview.sql deleted file mode 100644 index 329d9b5d..00000000 --- a/pg-ddl/schema/public/companies_category_tag_type_stats__matview.sql +++ /dev/null @@ -1,133 +0,0 @@ --- --- PostgreSQL database dump --- - -\restrict QJm88NtOh4EoPRdrx46RKnILh7uRIW2gnBOKtUAqWG6G8AjHXFhCReJPW5U89bO - --- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) --- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) - -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET transaction_timeout = 0; -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); -SET check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - -SET default_tablespace = ''; - -SET default_table_access_method = heap; - --- --- Name: companies_category_tag_type_stats; Type: MATERIALIZED VIEW; Schema: public; Owner: postgres --- - -CREATE MATERIALIZED VIEW public.companies_category_tag_type_stats AS - WITH d30_counts AS ( - SELECT sahw.store_app, - sum(sahw.installs_diff) AS d30_installs, - sum(sahw.rating_count_diff) AS d30_rating_count - FROM public.app_global_metrics_weekly_diffs sahw - WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) - GROUP BY sahw.store_app - ), minimized_company_categories AS ( - SELECT company_categories.company_id, - min(company_categories.category_id) AS category_id - FROM adtech.company_categories - GROUP BY company_categories.company_id - ), api_and_app_ads AS ( - SELECT sa.store, - csac.app_category, - tag.tag_source, - csac.ad_domain AS company_domain, - c.name AS company_name, - CASE - WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying - ELSE cats.url_slug - END AS type_url_slug, - count(DISTINCT csac.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(sa.installs) AS installs_total, - sum(sa.rating_count) AS rating_count_total - FROM ((((((adtech.combined_store_apps_companies csac - LEFT JOIN adtech.companies c ON ((csac.company_id = c.id))) - LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) - LEFT JOIN d30_counts dc ON ((csac.store_app = dc.store_app))) - LEFT JOIN minimized_company_categories mcc ON ((csac.company_id = mcc.company_id))) - LEFT JOIN adtech.categories cats ON ((mcc.category_id = cats.id))) - CROSS JOIN LATERAL ( VALUES ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) - WHERE (tag.present IS TRUE) - GROUP BY sa.store, csac.app_category, tag.tag_source, csac.ad_domain, c.name, - CASE - WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying - ELSE cats.url_slug - END - ), store_app_sdks AS ( - SELECT DISTINCT sass.store_app, - sass.sdk_id - FROM adtech.store_app_sdk_strings sass - WHERE (sass.sdk_id IS NOT NULL) - ), sdk_and_mediation AS ( - SELECT sa.store, - sa.category AS app_category, - 'sdk'::text AS tag_source, - d.domain_name AS company_domain, - c.name AS company_name, - cats.url_slug AS type_url_slug, - count(DISTINCT sas.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(sa.installs) AS installs_total, - sum(sa.rating_count) AS rating_count_total - FROM (((((((store_app_sdks sas - LEFT JOIN adtech.sdks s ON ((sas.sdk_id = s.id))) - LEFT JOIN adtech.companies c ON ((s.company_id = c.id))) - LEFT JOIN public.domains d ON ((c.domain_id = d.id))) - LEFT JOIN frontend.store_apps_overview sa ON ((sas.store_app = sa.id))) - LEFT JOIN d30_counts dc ON ((sas.store_app = dc.store_app))) - LEFT JOIN adtech.sdk_categories sc ON ((s.id = sc.sdk_id))) - LEFT JOIN adtech.categories cats ON ((sc.category_id = cats.id))) - GROUP BY sa.store, sa.category, 'sdk'::text, d.domain_name, c.name, cats.url_slug - ) - SELECT api_and_app_ads.store, - api_and_app_ads.app_category, - api_and_app_ads.tag_source, - api_and_app_ads.company_domain, - api_and_app_ads.company_name, - api_and_app_ads.type_url_slug, - api_and_app_ads.app_count, - api_and_app_ads.installs_d30, - api_and_app_ads.rating_count_d30, - api_and_app_ads.installs_total, - api_and_app_ads.rating_count_total - FROM api_and_app_ads -UNION ALL - SELECT sdk_and_mediation.store, - sdk_and_mediation.app_category, - sdk_and_mediation.tag_source, - sdk_and_mediation.company_domain, - sdk_and_mediation.company_name, - sdk_and_mediation.type_url_slug, - sdk_and_mediation.app_count, - sdk_and_mediation.installs_d30, - sdk_and_mediation.rating_count_d30, - sdk_and_mediation.installs_total, - sdk_and_mediation.rating_count_total - FROM sdk_and_mediation - WITH NO DATA; - - -ALTER MATERIALIZED VIEW public.companies_category_tag_type_stats OWNER TO postgres; - --- --- PostgreSQL database dump complete --- - -\unrestrict QJm88NtOh4EoPRdrx46RKnILh7uRIW2gnBOKtUAqWG6G8AjHXFhCReJPW5U89bO - From 6bfb9f7090e2b8674fb3fe209261b7f04060e65d Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Wed, 4 Feb 2026 11:28:20 +0800 Subject: [PATCH 60/81] interim schema --- .../schema/adtech/sdk_mediation_patterns.sql | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 pg-ddl/schema/adtech/sdk_mediation_patterns.sql diff --git a/pg-ddl/schema/adtech/sdk_mediation_patterns.sql b/pg-ddl/schema/adtech/sdk_mediation_patterns.sql new file mode 100644 index 00000000..29abb623 --- /dev/null +++ b/pg-ddl/schema/adtech/sdk_mediation_patterns.sql @@ -0,0 +1,59 @@ +-- +-- PostgreSQL database dump +-- + +\restrict d3Gd29W0iL67gr3fcWMSr2pN5ViTteyE4fuvTlOCy2vu7UzIcp7bJ5l616sPkn0 + +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: sdk_mediation_patterns; Type: TABLE; Schema: adtech; Owner: postgres +-- + +CREATE TABLE adtech.sdk_mediation_patterns ( + sdk_id integer NOT NULL, + mediation_pattern character varying(255) NOT NULL +); + + +ALTER TABLE adtech.sdk_mediation_patterns OWNER TO postgres; + +-- +-- Name: sdk_mediation_patterns company_mediation_patterns_pkey; Type: CONSTRAINT; Schema: adtech; Owner: postgres +-- + +ALTER TABLE ONLY adtech.sdk_mediation_patterns + ADD CONSTRAINT company_mediation_patterns_pkey PRIMARY KEY (sdk_id, mediation_pattern); + + +-- +-- Name: sdk_mediation_patterns company_mediation_patterns_company_id_fkey; Type: FK CONSTRAINT; Schema: adtech; Owner: postgres +-- + +ALTER TABLE ONLY adtech.sdk_mediation_patterns + ADD CONSTRAINT company_mediation_patterns_company_id_fkey FOREIGN KEY (sdk_id) REFERENCES adtech.sdks(id); + + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict d3Gd29W0iL67gr3fcWMSr2pN5ViTteyE4fuvTlOCy2vu7UzIcp7bJ5l616sPkn0 + From 6e162757654dc35f9012616547c609c69fc4155d Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Thu, 5 Feb 2026 23:05:56 +0800 Subject: [PATCH 61/81] New schema --- pg-ddl/schema/adtech/api_call_urls.sql | 4 +- pg-ddl/schema/adtech/categories.sql | 4 +- ..._store_apps_companies_2025_h1__matview.sql | 4 +- ..._store_apps_companies_2025_h2__matview.sql | 4 +- ...combined_store_apps_companies__matview.sql | 4 +- ...d_store_apps_parent_companies__matview.sql | 4 +- pg-ddl/schema/adtech/companies.sql | 4 +- .../adtech/company_categories__matview.sql | 4 +- pg-ddl/schema/adtech/company_developers.sql | 4 +- .../schema/adtech/company_domain_mapping.sql | 4 +- .../adtech/company_mediation_adapters.sql | 4 +- .../company_share_change_2025__matview.sql | 4 +- .../company_shares_2025_common__matview.sql | 4 +- pg-ddl/schema/adtech/sdk_categories.sql | 4 +- .../schema/adtech/sdk_mediation_patterns.sql | 4 +- pg-ddl/schema/adtech/sdk_packages.sql | 4 +- pg-ddl/schema/adtech/sdk_paths.sql | 4 +- pg-ddl/schema/adtech/sdks.sql | 4 +- ...store_app_sdk_strings_2025_h1__matview.sql | 4 +- ...store_app_sdk_strings_2025_h2__matview.sql | 4 +- .../adtech/store_app_sdk_strings__matview.sql | 4 +- pg-ddl/schema/adtech/url_redirect_chains.sql | 4 +- pg-ddl/schema/adtech/urls.sql | 4 +- .../adstxt_ad_domain_overview__matview.sql | 4 +- .../adstxt_entries_store_apps__matview.sql | 4 +- .../adstxt_publishers_overview__matview.sql | 4 +- .../advertiser_creative_rankings__matview.sql | 4 +- ...reative_rankings_recent_month__matview.sql | 4 +- .../advertiser_creatives__matview.sql | 4 +- .../frontend/api_call_countries__matview.sql | 4 +- .../app_keyword_rank_stats__matview.sql | 4 +- .../frontend/app_keyword_ranks_daily.sql | 4 +- .../frontend/apps_new_monthly__matview.sql | 4 +- .../frontend/apps_new_weekly__matview.sql | 4 +- .../frontend/apps_new_yearly__matview.sql | 4 +- .../frontend/category_tag_stats__matview.sql | 4 +- .../companies_apps_overview__matview.sql | 4 +- .../companies_category_stats__matview.sql | 4 +- .../companies_category_tag_stats__matview.sql | 4 +- ...anies_category_tag_type_stats__matview.sql | 132 ++++++--- .../companies_creative_rankings__matview.sql | 4 +- ...companies_open_source_percent__matview.sql | 4 +- ...mpanies_parent_category_stats__matview.sql | 4 +- ...ies_parent_category_tag_stats__matview.sql | 4 +- .../companies_sdks_overview__matview.sql | 4 +- .../company_domain_country__matview.sql | 4 +- .../company_domains_top_apps__matview.sql | 4 +- .../company_parent_top_apps__matview.sql | 4 +- .../frontend/company_top_apps__matview.sql | 4 +- .../frontend/keyword_scores__matview.sql | 4 +- .../latest_sdk_scanned_apps__matview.sql | 4 +- .../mediation_adapter_app_counts__matview.sql | 4 +- .../store_app_api_companies__matview.sql | 4 +- .../store_app_ranks_best_monthly__matview.sql | 4 +- .../schema/frontend/store_app_ranks_daily.sql | 4 +- .../store_app_ranks_latest__matview.sql | 4 +- .../frontend/store_app_ranks_weekly.sql | 4 +- .../frontend/store_apps_overview__matview.sql | 4 +- .../frontend/store_apps_z_scores__matview.sql | 4 +- .../total_categories_app_counts__matview.sql | 4 +- pg-ddl/schema/full_db_dump.sql | 259 +++++++----------- pg-ddl/schema/logging/app_country_crawls.sql | 4 +- .../app_description_keywords_extracted.sql | 4 +- .../schema/logging/creative_scan_results.sql | 4 +- .../schema/logging/developers_crawled_at.sql | 4 +- pg-ddl/schema/logging/keywords_crawled_at.sql | 4 +- .../schema/logging/snapshot_pub_domains.sql | 4 +- pg-ddl/schema/logging/store_app_downloads.sql | 4 +- .../schema/logging/store_app_no_creatives.sql | 4 +- pg-ddl/schema/logging/store_app_sources.sql | 4 +- .../logging/store_app_waydroid_crawled_at.sql | 4 +- pg-ddl/schema/logging/store_apps_snapshot.sql | 4 +- .../logging/version_code_api_scan_results.sql | 4 +- .../public/ad_network_sdk_keys__matview.sql | 4 +- pg-ddl/schema/public/adstxt_crawl_results.sql | 4 +- pg-ddl/schema/public/api_calls.sql | 4 +- pg-ddl/schema/public/app_ads_entrys.sql | 4 +- pg-ddl/schema/public/app_ads_map.sql | 4 +- .../public/app_country_metrics_history.sql | 4 +- .../app_country_metrics_latest__matview.sql | 4 +- .../public/app_global_metrics_history.sql | 4 +- .../app_global_metrics_latest__matview.sql | 4 +- ...p_global_metrics_weekly_diffs__matview.sql | 4 +- .../schema/public/app_keywords_extracted.sql | 4 +- pg-ddl/schema/public/app_urls_map.sql | 4 +- .../public/category_mapping__matview.sql | 4 +- pg-ddl/schema/public/countries.sql | 4 +- pg-ddl/schema/public/crawl_results.sql | 4 +- .../public/crawl_scenario_country_config.sql | 4 +- pg-ddl/schema/public/crawl_scenarios.sql | 4 +- pg-ddl/schema/public/creative_assets.sql | 4 +- pg-ddl/schema/public/creative_records.sql | 4 +- .../public/developer_store_apps__matview.sql | 4 +- pg-ddl/schema/public/developers.sql | 4 +- pg-ddl/schema/public/domains.sql | 4 +- pg-ddl/schema/public/ip_geo_snapshots.sql | 4 +- pg-ddl/schema/public/keywords.sql | 4 +- pg-ddl/schema/public/keywords_base.sql | 4 +- pg-ddl/schema/public/languages.sql | 4 +- .../public/mv_app_categories__matview.sql | 4 +- .../public/pg_stat_statements__view.sql | 4 +- .../public/pg_stat_statements_info__view.sql | 4 +- pg-ddl/schema/public/platforms.sql | 4 +- .../public/store_app_z_scores__matview.sql | 4 +- .../public/store_app_z_scores_history.sql | 4 +- pg-ddl/schema/public/store_apps.sql | 4 +- .../schema/public/store_apps_descriptions.sql | 4 +- ...store_apps_in_latest_rankings__matview.sql | 4 +- pg-ddl/schema/public/store_categories.sql | 4 +- pg-ddl/schema/public/store_collections.sql | 4 +- pg-ddl/schema/public/stores.sql | 4 +- .../public/total_count_overview__matview.sql | 4 +- .../public/version_code_api_scan_results.sql | 4 +- .../public/version_code_sdk_scan_results.sql | 4 +- pg-ddl/schema/public/version_codes.sql | 4 +- pg-ddl/schema/public/version_details_map.sql | 4 +- pg-ddl/schema/public/version_manifests.sql | 4 +- pg-ddl/schema/public/version_strings.sql | 4 +- 118 files changed, 419 insertions(+), 436 deletions(-) diff --git a/pg-ddl/schema/adtech/api_call_urls.sql b/pg-ddl/schema/adtech/api_call_urls.sql index aab3c99f..5ea32a49 100644 --- a/pg-ddl/schema/adtech/api_call_urls.sql +++ b/pg-ddl/schema/adtech/api_call_urls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict wyNUJb0Vwmb9ysTDYBGYiXZifu12TchyVWYCYnV5ho4GrYhLog7lcECkD0zgZ80 +\restrict 5ImgBjx4en8vRoKpT9RK9mpQfiRcnZm2pxuEf4I0ocPaqaYBLWrXljAQFIpaCAm -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -118,5 +118,5 @@ ALTER TABLE ONLY adtech.api_call_urls -- PostgreSQL database dump complete -- -\unrestrict wyNUJb0Vwmb9ysTDYBGYiXZifu12TchyVWYCYnV5ho4GrYhLog7lcECkD0zgZ80 +\unrestrict 5ImgBjx4en8vRoKpT9RK9mpQfiRcnZm2pxuEf4I0ocPaqaYBLWrXljAQFIpaCAm diff --git a/pg-ddl/schema/adtech/categories.sql b/pg-ddl/schema/adtech/categories.sql index 648acd11..246ebac6 100644 --- a/pg-ddl/schema/adtech/categories.sql +++ b/pg-ddl/schema/adtech/categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict yYGKWg0Kub8a8BJeDa1mg4TuPe1gl9BDgc9IFuuPoDUoQZSxEeUpDe8b0yY2Wj3 +\restrict N7WXIqqYWKIxRdD0oHNiCyblnwNTDIVgcW9ip2pPAE8nXm4yslxw72qPcy6RCEk -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -62,5 +62,5 @@ ALTER TABLE ONLY adtech.categories -- PostgreSQL database dump complete -- -\unrestrict yYGKWg0Kub8a8BJeDa1mg4TuPe1gl9BDgc9IFuuPoDUoQZSxEeUpDe8b0yY2Wj3 +\unrestrict N7WXIqqYWKIxRdD0oHNiCyblnwNTDIVgcW9ip2pPAE8nXm4yslxw72qPcy6RCEk diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql index 9893cdca..7f39a958 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict FmYxPvSPmXatTcXyuFZyCJe2nYAbNwnLamFMhgKG9Y2KDSKibqIi5uIfkK3tQ23 +\restrict v69KOemkzEUzZbWffXq3akvhiqxz8UxlLBYDRAt9yorGB7OasrSb84egvrCzquu -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -124,5 +124,5 @@ ALTER MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h1 OWNER TO po -- PostgreSQL database dump complete -- -\unrestrict FmYxPvSPmXatTcXyuFZyCJe2nYAbNwnLamFMhgKG9Y2KDSKibqIi5uIfkK3tQ23 +\unrestrict v69KOemkzEUzZbWffXq3akvhiqxz8UxlLBYDRAt9yorGB7OasrSb84egvrCzquu diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql index a3379e5f..65d1e444 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict aqdCDhOUfwguc1CIPkT21MkIlxS4KFyhXyzdIaQ4MQNERMWqaKvWwZFTV8T98cz +\restrict LV59R2oRaoJf7qF8m78xBWuGLhZG5tLkb73fRIR0GzWjpkHjPUUsrWaxhCCfC34 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -124,5 +124,5 @@ ALTER MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h2 OWNER TO po -- PostgreSQL database dump complete -- -\unrestrict aqdCDhOUfwguc1CIPkT21MkIlxS4KFyhXyzdIaQ4MQNERMWqaKvWwZFTV8T98cz +\unrestrict LV59R2oRaoJf7qF8m78xBWuGLhZG5tLkb73fRIR0GzWjpkHjPUUsrWaxhCCfC34 diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql index b71e0b85..34e1ebcb 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict keAixLIsxQrAYawn42nXcZNZRDRdv1hamn46Ng2cnJB7D4O6flsXT7gAFUVgD9h +\restrict hTxM14MAW2egNjdYa2N0nAbhCEfeTafZIe44eD4HgwTduhWPrsBHC1HmIaI1hZ0 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -165,5 +165,5 @@ CREATE UNIQUE INDEX combined_store_app_companies_idx ON adtech.combined_store_ap -- PostgreSQL database dump complete -- -\unrestrict keAixLIsxQrAYawn42nXcZNZRDRdv1hamn46Ng2cnJB7D4O6flsXT7gAFUVgD9h +\unrestrict hTxM14MAW2egNjdYa2N0nAbhCEfeTafZIe44eD4HgwTduhWPrsBHC1HmIaI1hZ0 diff --git a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql index 6f97b710..f7485ce3 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict G8Yzi9eN08KqwDCxO0vQv3vQuU1zfpeIJeXOZCfYaSfLfl4hbItQZhJqb3b1PZR +\restrict RpVw7FaGpYO3xxG2XXnDid70tSViT5gdWc2XQMmhca55N1hlPbGV7JcWsxn3q92 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -59,5 +59,5 @@ CREATE UNIQUE INDEX idx_combined_store_apps_parent_companies_idx ON adtech.combi -- PostgreSQL database dump complete -- -\unrestrict G8Yzi9eN08KqwDCxO0vQv3vQuU1zfpeIJeXOZCfYaSfLfl4hbItQZhJqb3b1PZR +\unrestrict RpVw7FaGpYO3xxG2XXnDid70tSViT5gdWc2XQMmhca55N1hlPbGV7JcWsxn3q92 diff --git a/pg-ddl/schema/adtech/companies.sql b/pg-ddl/schema/adtech/companies.sql index 0e7a96e4..6dbc5b14 100644 --- a/pg-ddl/schema/adtech/companies.sql +++ b/pg-ddl/schema/adtech/companies.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict zsi9joDvzaYITCatpgDBMkP3Z9880slGyqvfhHXL01LnmAbu955tkN0DPvc4ur2 +\restrict Lck6qZzm2IsVLYbqSfz1aknKy57AGvhd6yxJ2DUb70HNlhIlLDGkWP5soGHko15 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -98,5 +98,5 @@ ALTER TABLE ONLY adtech.companies -- PostgreSQL database dump complete -- -\unrestrict zsi9joDvzaYITCatpgDBMkP3Z9880slGyqvfhHXL01LnmAbu955tkN0DPvc4ur2 +\unrestrict Lck6qZzm2IsVLYbqSfz1aknKy57AGvhd6yxJ2DUb70HNlhIlLDGkWP5soGHko15 diff --git a/pg-ddl/schema/adtech/company_categories__matview.sql b/pg-ddl/schema/adtech/company_categories__matview.sql index 9c2292dc..3202c7be 100644 --- a/pg-ddl/schema/adtech/company_categories__matview.sql +++ b/pg-ddl/schema/adtech/company_categories__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict s559At02g9pCN6V0ReIxjlzOIbmnyMi6zFXTHz9KS1i47UN5sqkhokVz7eCL4KU +\restrict e5KX4OBBo7W8Mo7iEQBa9uif9peMWOVC5xcaV6Wqsd5aJW3ERPW2mzu8rYeirqt -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -42,5 +42,5 @@ ALTER MATERIALIZED VIEW adtech.company_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict s559At02g9pCN6V0ReIxjlzOIbmnyMi6zFXTHz9KS1i47UN5sqkhokVz7eCL4KU +\unrestrict e5KX4OBBo7W8Mo7iEQBa9uif9peMWOVC5xcaV6Wqsd5aJW3ERPW2mzu8rYeirqt diff --git a/pg-ddl/schema/adtech/company_developers.sql b/pg-ddl/schema/adtech/company_developers.sql index a3727c43..1ee9aec8 100644 --- a/pg-ddl/schema/adtech/company_developers.sql +++ b/pg-ddl/schema/adtech/company_developers.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict djJCx5FYHbZobOuOC9uywpDhd4HdGCCk5kBIluVDO5QtXPFd5UccI6iYgdUpLCa +\restrict fFhuSBZMQDFRQeDuj3KuPflaAQahs1BQljuA4VLbPufvJKmLMfEb06X8qIk4XXg -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.company_developers -- PostgreSQL database dump complete -- -\unrestrict djJCx5FYHbZobOuOC9uywpDhd4HdGCCk5kBIluVDO5QtXPFd5UccI6iYgdUpLCa +\unrestrict fFhuSBZMQDFRQeDuj3KuPflaAQahs1BQljuA4VLbPufvJKmLMfEb06X8qIk4XXg diff --git a/pg-ddl/schema/adtech/company_domain_mapping.sql b/pg-ddl/schema/adtech/company_domain_mapping.sql index 4625a2ca..0d77bded 100644 --- a/pg-ddl/schema/adtech/company_domain_mapping.sql +++ b/pg-ddl/schema/adtech/company_domain_mapping.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict wpAZIbT8I422ZF7wtjckLJf1VLI5rVitr3cObaO0SU61FZtBoKkMM5lrVQicNB7 +\restrict 4NKwY4bjB9IJ9dMyQeFED1O5Cbkypstr7L9zxFQgcweH0mbbg2qHYDHz1I9Hpwh -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.company_domain_mapping -- PostgreSQL database dump complete -- -\unrestrict wpAZIbT8I422ZF7wtjckLJf1VLI5rVitr3cObaO0SU61FZtBoKkMM5lrVQicNB7 +\unrestrict 4NKwY4bjB9IJ9dMyQeFED1O5Cbkypstr7L9zxFQgcweH0mbbg2qHYDHz1I9Hpwh diff --git a/pg-ddl/schema/adtech/company_mediation_adapters.sql b/pg-ddl/schema/adtech/company_mediation_adapters.sql index da7b5422..8b80f9fc 100644 --- a/pg-ddl/schema/adtech/company_mediation_adapters.sql +++ b/pg-ddl/schema/adtech/company_mediation_adapters.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 71diOYphZm8gfMLp5RjHrU5SwsxEqz14O6Qh1KrNNaED901FVCpty2HG0fChDdJ +\restrict DerHeTaS3lDKFWQVWLeYYxVaAUXOLEUdk09S4eaXqjTCDZz4hngWWIujvC7jvEG -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.company_mediation_adapters -- PostgreSQL database dump complete -- -\unrestrict 71diOYphZm8gfMLp5RjHrU5SwsxEqz14O6Qh1KrNNaED901FVCpty2HG0fChDdJ +\unrestrict DerHeTaS3lDKFWQVWLeYYxVaAUXOLEUdk09S4eaXqjTCDZz4hngWWIujvC7jvEG diff --git a/pg-ddl/schema/adtech/company_share_change_2025__matview.sql b/pg-ddl/schema/adtech/company_share_change_2025__matview.sql index e6194b02..81b67d45 100644 --- a/pg-ddl/schema/adtech/company_share_change_2025__matview.sql +++ b/pg-ddl/schema/adtech/company_share_change_2025__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ILaEL4h3OrEqLOyHG4OuFeRFXHkM1MK5Z0BJACT5puCb674vT8vWRh3dVebTNn1 +\restrict YcBxoIQLTFwdtbZjVHjIHmH73KfACsPw9sQP7iH4akrKSn0RGerWgoH4MFZ5dse -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -110,5 +110,5 @@ ALTER MATERIALIZED VIEW adtech.company_share_change_2025 OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict ILaEL4h3OrEqLOyHG4OuFeRFXHkM1MK5Z0BJACT5puCb674vT8vWRh3dVebTNn1 +\unrestrict YcBxoIQLTFwdtbZjVHjIHmH73KfACsPw9sQP7iH4akrKSn0RGerWgoH4MFZ5dse diff --git a/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql b/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql index 91452cb3..0485c914 100644 --- a/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql +++ b/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict TSqWY0D3l0agaK0o6xWLQNOpGZB10T56hUdgdJEWSx2g47saZ3BxLKa1rylm5T8 +\restrict hZDrXs87tVT1ay1Nf38XYfg9nqZMtC4brIadniQEfnsV4nhDWJlttEirfGnyEY7 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW adtech.company_shares_2025_common OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict TSqWY0D3l0agaK0o6xWLQNOpGZB10T56hUdgdJEWSx2g47saZ3BxLKa1rylm5T8 +\unrestrict hZDrXs87tVT1ay1Nf38XYfg9nqZMtC4brIadniQEfnsV4nhDWJlttEirfGnyEY7 diff --git a/pg-ddl/schema/adtech/sdk_categories.sql b/pg-ddl/schema/adtech/sdk_categories.sql index b9d378c4..1e35b893 100644 --- a/pg-ddl/schema/adtech/sdk_categories.sql +++ b/pg-ddl/schema/adtech/sdk_categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict xWXgYzFAmSqxwlEmFLvP7KnpbxRf4GnLkbvh0TqzdPvFWZg3zcJ22h2byq574Pl +\restrict CNtLUgajjf56d1Nr6sT8zQwOzxzRTBRdXuHc36mbrxekbjydI6O9i7MtuDG0S1I -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.sdk_categories -- PostgreSQL database dump complete -- -\unrestrict xWXgYzFAmSqxwlEmFLvP7KnpbxRf4GnLkbvh0TqzdPvFWZg3zcJ22h2byq574Pl +\unrestrict CNtLUgajjf56d1Nr6sT8zQwOzxzRTBRdXuHc36mbrxekbjydI6O9i7MtuDG0S1I diff --git a/pg-ddl/schema/adtech/sdk_mediation_patterns.sql b/pg-ddl/schema/adtech/sdk_mediation_patterns.sql index 29abb623..fa32ac1a 100644 --- a/pg-ddl/schema/adtech/sdk_mediation_patterns.sql +++ b/pg-ddl/schema/adtech/sdk_mediation_patterns.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict d3Gd29W0iL67gr3fcWMSr2pN5ViTteyE4fuvTlOCy2vu7UzIcp7bJ5l616sPkn0 +\restrict 4HSTmqeXaCLymBxUoiTqnMuyw6bWYqUE7v9fVNCOx8FHZI6W9dSTpwoqKxTLtPz -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.sdk_mediation_patterns -- PostgreSQL database dump complete -- -\unrestrict d3Gd29W0iL67gr3fcWMSr2pN5ViTteyE4fuvTlOCy2vu7UzIcp7bJ5l616sPkn0 +\unrestrict 4HSTmqeXaCLymBxUoiTqnMuyw6bWYqUE7v9fVNCOx8FHZI6W9dSTpwoqKxTLtPz diff --git a/pg-ddl/schema/adtech/sdk_packages.sql b/pg-ddl/schema/adtech/sdk_packages.sql index 6008da29..b8487847 100644 --- a/pg-ddl/schema/adtech/sdk_packages.sql +++ b/pg-ddl/schema/adtech/sdk_packages.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 6sy9XDJLTsJu0GpJzgijXuT4DYlwfvSu0dbbXccUOBLGnpT2qFgvfh7sRqPY3qZ +\restrict 2Uj2g8ODUVIMDSCNzUkeIJhCul5fJzhKhPQunSS3FftKxyecI46BHehFAsmxVlp -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -99,5 +99,5 @@ ALTER TABLE ONLY adtech.sdk_packages -- PostgreSQL database dump complete -- -\unrestrict 6sy9XDJLTsJu0GpJzgijXuT4DYlwfvSu0dbbXccUOBLGnpT2qFgvfh7sRqPY3qZ +\unrestrict 2Uj2g8ODUVIMDSCNzUkeIJhCul5fJzhKhPQunSS3FftKxyecI46BHehFAsmxVlp diff --git a/pg-ddl/schema/adtech/sdk_paths.sql b/pg-ddl/schema/adtech/sdk_paths.sql index 4317a27c..90b2d852 100644 --- a/pg-ddl/schema/adtech/sdk_paths.sql +++ b/pg-ddl/schema/adtech/sdk_paths.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 61mF4a6qaTXumXWkbc4gnjsdKv9QP68zw40MS60Pk5dc7RjReempJRLYZazkyaD +\restrict tx7h9iMH5KyfqgDZT6pqrNRb8Y5LxBCouBIW4tFg4hXpWP1tjftt2Gdgr8TW7Ui -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdk_paths -- PostgreSQL database dump complete -- -\unrestrict 61mF4a6qaTXumXWkbc4gnjsdKv9QP68zw40MS60Pk5dc7RjReempJRLYZazkyaD +\unrestrict tx7h9iMH5KyfqgDZT6pqrNRb8Y5LxBCouBIW4tFg4hXpWP1tjftt2Gdgr8TW7Ui diff --git a/pg-ddl/schema/adtech/sdks.sql b/pg-ddl/schema/adtech/sdks.sql index bb5b0844..993d127c 100644 --- a/pg-ddl/schema/adtech/sdks.sql +++ b/pg-ddl/schema/adtech/sdks.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 56kmiLeUomreB5MWAOJigldP3etFLEk7lU594zmLQk7INvdxIVYgjDkubxqTd2Q +\restrict 7TfKHAiwWvO6YerTCfuFnylxT4IL2OZ5j5lhu4AYVkDsL675NemwPEyTlHtQhGD -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdks -- PostgreSQL database dump complete -- -\unrestrict 56kmiLeUomreB5MWAOJigldP3etFLEk7lU594zmLQk7INvdxIVYgjDkubxqTd2Q +\unrestrict 7TfKHAiwWvO6YerTCfuFnylxT4IL2OZ5j5lhu4AYVkDsL675NemwPEyTlHtQhGD diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql index 29ed9c85..1942b212 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict s5xK5a4Lc5gdSkHhq70Kyy4zSK3DoH9wrf91Ne0ypZWr5k5rQkCMcPRRTnZAz1H +\restrict k4nKZJlVjGXA2rnP65dCvtmurrveub4dVdfT2UQEAa67o4l3GzBUINIaaifnC0K -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h1 OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict s5xK5a4Lc5gdSkHhq70Kyy4zSK3DoH9wrf91Ne0ypZWr5k5rQkCMcPRRTnZAz1H +\unrestrict k4nKZJlVjGXA2rnP65dCvtmurrveub4dVdfT2UQEAa67o4l3GzBUINIaaifnC0K diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql index 9d34a9e5..168411c3 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 9Xk2JI1vouZGaME7R3OqUoCZoW5IdsDcnAAWd146h8VBCNz0xKX15YfQdeJEr3K +\restrict tvZqZspLDaIJEMEPfwh9Raoe0LPfqwaQHVh4hmTsP21GCinrivEmItwG2Sinz8l -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h2 OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 9Xk2JI1vouZGaME7R3OqUoCZoW5IdsDcnAAWd146h8VBCNz0xKX15YfQdeJEr3K +\unrestrict tvZqZspLDaIJEMEPfwh9Raoe0LPfqwaQHVh4hmTsP21GCinrivEmItwG2Sinz8l diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql index 459f9dda..699697ce 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict hV5I6p7EUTHF0FhIepg3Stye897eyW1KWAX79ZnWPgkz1NKHxV8UWxThpZUNb3w +\restrict 05IYi0BrnaQc321Ei0JVAdJCmctk7LakiZMgIdvNZUhksyMSibA7CnLNm7ERNVC -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -61,5 +61,5 @@ CREATE UNIQUE INDEX store_app_sdk_strings_idx ON adtech.store_app_sdk_strings US -- PostgreSQL database dump complete -- -\unrestrict hV5I6p7EUTHF0FhIepg3Stye897eyW1KWAX79ZnWPgkz1NKHxV8UWxThpZUNb3w +\unrestrict 05IYi0BrnaQc321Ei0JVAdJCmctk7LakiZMgIdvNZUhksyMSibA7CnLNm7ERNVC diff --git a/pg-ddl/schema/adtech/url_redirect_chains.sql b/pg-ddl/schema/adtech/url_redirect_chains.sql index 2701880a..dee45414 100644 --- a/pg-ddl/schema/adtech/url_redirect_chains.sql +++ b/pg-ddl/schema/adtech/url_redirect_chains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict WJzASQQDZehDxuZly7kRV6CW81HhqkNP6bOZ5UoBhgBVHSt7ICrFmo7daaScIva +\restrict UiJnODEJYHgV0EMKtGRSkWgBjhwy70YNwJrGtFdnuB9KidP8h9iwmwhJUQz1EBd -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -122,5 +122,5 @@ ALTER TABLE ONLY adtech.url_redirect_chains -- PostgreSQL database dump complete -- -\unrestrict WJzASQQDZehDxuZly7kRV6CW81HhqkNP6bOZ5UoBhgBVHSt7ICrFmo7daaScIva +\unrestrict UiJnODEJYHgV0EMKtGRSkWgBjhwy70YNwJrGtFdnuB9KidP8h9iwmwhJUQz1EBd diff --git a/pg-ddl/schema/adtech/urls.sql b/pg-ddl/schema/adtech/urls.sql index cc84b574..5b7a3bbc 100644 --- a/pg-ddl/schema/adtech/urls.sql +++ b/pg-ddl/schema/adtech/urls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict pIfgFaFfKQzctl6YWMJcZIfzS3MjzoUNqT3YvOn57t2tfw0BYxpZ5ng1mdJpq9N +\restrict e7ayOpxtnkLdkfWYg9uHbSbM9sdLlqQq14B9xG6Mlrj6zpG67F8RkxN2l6A1q25 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -111,5 +111,5 @@ ALTER TABLE ONLY adtech.urls -- PostgreSQL database dump complete -- -\unrestrict pIfgFaFfKQzctl6YWMJcZIfzS3MjzoUNqT3YvOn57t2tfw0BYxpZ5ng1mdJpq9N +\unrestrict e7ayOpxtnkLdkfWYg9uHbSbM9sdLlqQq14B9xG6Mlrj6zpG67F8RkxN2l6A1q25 diff --git a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql index 675491e0..e6d8f735 100644 --- a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict GKo1pXX9e1eTRI1Yg2GnwVyJnr8YdcGWcQDeBPXwDHDSKr8uYcfUj4hMb9hDHSg +\restrict XWdZ3NwRyDe8dWqFkQ3urIY28Ff1KlllFbQZ96AcpjbBa25ppghnc8zkxChcjYF -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX adstxt_ad_domain_overview_unique_idx ON frontend.adstxt_ad_d -- PostgreSQL database dump complete -- -\unrestrict GKo1pXX9e1eTRI1Yg2GnwVyJnr8YdcGWcQDeBPXwDHDSKr8uYcfUj4hMb9hDHSg +\unrestrict XWdZ3NwRyDe8dWqFkQ3urIY28Ff1KlllFbQZ96AcpjbBa25ppghnc8zkxChcjYF diff --git a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql index 6922972c..1a9f0dfe 100644 --- a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict YnIsyNh3ct3Y1Pr2tyJQfJydKzrftWP12qSQVRiT9oVVIShS6x24GXKyotWm0os +\restrict yliGCpdPivcsrqmOEPrWV67L6nuhonMli2eKzkkP1W6xXj0Rfvdf0fO4DObSLNO -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -81,5 +81,5 @@ CREATE UNIQUE INDEX adstxt_entries_store_apps_unique_idx ON frontend.adstxt_entr -- PostgreSQL database dump complete -- -\unrestrict YnIsyNh3ct3Y1Pr2tyJQfJydKzrftWP12qSQVRiT9oVVIShS6x24GXKyotWm0os +\unrestrict yliGCpdPivcsrqmOEPrWV67L6nuhonMli2eKzkkP1W6xXj0Rfvdf0fO4DObSLNO diff --git a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql index 493c0502..4f84284e 100644 --- a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 9h85QwJAXenPLosoQMkAWmnA8JN1zk7gvfziF1OD4fhTozjXSXwegCgj7Cj0iCl +\restrict cDtG3U4dFEtpYQMSJb1yRjmEibhFP6avBH0HfDxS1qkigqs8x7ULHkG9kJKoWJT -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -74,5 +74,5 @@ CREATE UNIQUE INDEX adstxt_publishers_overview_ad_domain_unique_idx ON frontend. -- PostgreSQL database dump complete -- -\unrestrict 9h85QwJAXenPLosoQMkAWmnA8JN1zk7gvfziF1OD4fhTozjXSXwegCgj7Cj0iCl +\unrestrict cDtG3U4dFEtpYQMSJb1yRjmEibhFP6avBH0HfDxS1qkigqs8x7ULHkG9kJKoWJT diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql index 6c48f267..0ddbda57 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ae0ZKYCUFjKZcgQlm0VWakHCtuYVq70QBncOsC46adp5a19NYNDXX2nXSMOh7o9 +\restrict KLOO3vW2Qk9R0ky0fShzb7FGELp8LPFucsRvZlm2gI8wF7eox2K7vpdL308NCu1 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -107,5 +107,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict ae0ZKYCUFjKZcgQlm0VWakHCtuYVq70QBncOsC46adp5a19NYNDXX2nXSMOh7o9 +\unrestrict KLOO3vW2Qk9R0ky0fShzb7FGELp8LPFucsRvZlm2gI8wF7eox2K7vpdL308NCu1 diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql index c05df304..5e5efc62 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict FSvdtzycEiV3XQYu8Kft84S1JmTsnCHr0NNsBO0nyblBxNfzJFN24W3Pc1rGfIz +\restrict 8AG1Ppad8Eo1G7TvnBKgkC8HQaGbbQB2Xs5jHS5CN4FA5kjFevkupGSdWX74CwX -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -114,5 +114,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings_recent_month OWNER -- PostgreSQL database dump complete -- -\unrestrict FSvdtzycEiV3XQYu8Kft84S1JmTsnCHr0NNsBO0nyblBxNfzJFN24W3Pc1rGfIz +\unrestrict 8AG1Ppad8Eo1G7TvnBKgkC8HQaGbbQB2Xs5jHS5CN4FA5kjFevkupGSdWX74CwX diff --git a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql index 43cb34dd..c3285dbb 100644 --- a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict x9WiE11LDSoNDBwML1dWArZsgqCw86dyYZpUSMyuPp6QlazMsWiYoBznOGbu9tz +\restrict CiB6aJyc7ez3uqqaJfN8zVgdRKeXYe8GVHwr9iWwoWgkre2ZQwgY8vrf16HRmQk -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict x9WiE11LDSoNDBwML1dWArZsgqCw86dyYZpUSMyuPp6QlazMsWiYoBznOGbu9tz +\unrestrict CiB6aJyc7ez3uqqaJfN8zVgdRKeXYe8GVHwr9iWwoWgkre2ZQwgY8vrf16HRmQk diff --git a/pg-ddl/schema/frontend/api_call_countries__matview.sql b/pg-ddl/schema/frontend/api_call_countries__matview.sql index faa91280..d818c458 100644 --- a/pg-ddl/schema/frontend/api_call_countries__matview.sql +++ b/pg-ddl/schema/frontend/api_call_countries__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict MywXmUXgIE8bpzBuldIJsCwfts36H0D1GMGS0v6jDqxDCayIudQ4MPWh1z8J4KS +\restrict 34QsQyEisj7NwJtenYOqSTpRunzK5LwkYGucewDk3EddQBN8NVwYevVs6zkMVQN -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -87,5 +87,5 @@ CREATE UNIQUE INDEX api_call_countries_unique ON frontend.api_call_countries USI -- PostgreSQL database dump complete -- -\unrestrict MywXmUXgIE8bpzBuldIJsCwfts36H0D1GMGS0v6jDqxDCayIudQ4MPWh1z8J4KS +\unrestrict 34QsQyEisj7NwJtenYOqSTpRunzK5LwkYGucewDk3EddQBN8NVwYevVs6zkMVQN diff --git a/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql index 4cc39784..0b3647c7 100644 --- a/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql +++ b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict CnY9FBXV2HggwepvUhwiyB9e1c3W84M0Do7Wtic2RGk0rLOyzhaKiiTBHGmrLoJ +\restrict VMdkLGJs2W7Eesz0LvMTDKsSJm5ey96J60ygnc4c8VZsr8FAKYecuytHMAnbcai -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -72,5 +72,5 @@ ALTER MATERIALIZED VIEW frontend.app_keyword_rank_stats OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict CnY9FBXV2HggwepvUhwiyB9e1c3W84M0Do7Wtic2RGk0rLOyzhaKiiTBHGmrLoJ +\unrestrict VMdkLGJs2W7Eesz0LvMTDKsSJm5ey96J60ygnc4c8VZsr8FAKYecuytHMAnbcai diff --git a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql index cd4cf6da..a4c4de4f 100644 --- a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql +++ b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict b3nGe2SngJlX8Uakfey8mY9mTFHFV9mQc45GYf22Zgal3n63LdNs6T2xsRgs9xZ +\restrict lC5JOE5L7NRLBEbHrKAwAUOij74caotQjZIYiYh1BNLpigGOuHZdYKByzJhrUDt -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -104,5 +104,5 @@ ALTER TABLE ONLY frontend.app_keyword_ranks_daily -- PostgreSQL database dump complete -- -\unrestrict b3nGe2SngJlX8Uakfey8mY9mTFHFV9mQc45GYf22Zgal3n63LdNs6T2xsRgs9xZ +\unrestrict lC5JOE5L7NRLBEbHrKAwAUOij74caotQjZIYiYh1BNLpigGOuHZdYKByzJhrUDt diff --git a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql index 14a21d4e..f4e04947 100644 --- a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict q4aSc1aVS1UwRb5xcrUnnKUAOKwES4rKZfGQ9OLyJV41oCn3v8awARv41z30Nva +\restrict qnlCtPRxpTpROT3JYy18uLKUonh1cznPEbQehlkntD7xfddypgdhFdsqDKMXvPy -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -116,5 +116,5 @@ CREATE UNIQUE INDEX idx_apps_new_monthly ON frontend.apps_new_monthly USING btre -- PostgreSQL database dump complete -- -\unrestrict q4aSc1aVS1UwRb5xcrUnnKUAOKwES4rKZfGQ9OLyJV41oCn3v8awARv41z30Nva +\unrestrict qnlCtPRxpTpROT3JYy18uLKUonh1cznPEbQehlkntD7xfddypgdhFdsqDKMXvPy diff --git a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql index ee1f7afc..e6d8195b 100644 --- a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict BRNeu3bLpNMhuiRh6S2kDlhMoj9hBain5k9v291CfoNILAt6z7NeSwgxGILlwHC +\restrict 1Ichnu339lmboR2IUTNEA27XnIqwwL0LhypdddfZIfDKpnQTJXYaLKZ4S5IYhJb -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -123,5 +123,5 @@ CREATE UNIQUE INDEX idx_apps_new_weekly_f ON frontend.apps_new_weekly USING btre -- PostgreSQL database dump complete -- -\unrestrict BRNeu3bLpNMhuiRh6S2kDlhMoj9hBain5k9v291CfoNILAt6z7NeSwgxGILlwHC +\unrestrict 1Ichnu339lmboR2IUTNEA27XnIqwwL0LhypdddfZIfDKpnQTJXYaLKZ4S5IYhJb diff --git a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql index aaca559d..e3a802d7 100644 --- a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict jR08hIDuqkXhv7rjxav95tkCAKYPUmCsjubJXPXn5hZKl4epk9HegkWItQETlIZ +\restrict qJ9AfS9swUuYZnuvgbzYqCuVgSaf3xOjLBMvbWEA5m2GkRuy45FmyOqywr7nVip -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -117,5 +117,5 @@ CREATE UNIQUE INDEX idx_apps_new_yearly ON frontend.apps_new_yearly USING btree -- PostgreSQL database dump complete -- -\unrestrict jR08hIDuqkXhv7rjxav95tkCAKYPUmCsjubJXPXn5hZKl4epk9HegkWItQETlIZ +\unrestrict qJ9AfS9swUuYZnuvgbzYqCuVgSaf3xOjLBMvbWEA5m2GkRuy45FmyOqywr7nVip diff --git a/pg-ddl/schema/frontend/category_tag_stats__matview.sql b/pg-ddl/schema/frontend/category_tag_stats__matview.sql index 200c60da..9e030798 100644 --- a/pg-ddl/schema/frontend/category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ld3nqyPOV1idFEGKYndTm2mBJfw674EgbRtgcfTJYK25evhsmJ9iDzrAoHyaAug +\restrict fxq86e8Vi8B8WWwOrd1sjupIRGbRkPe8f7eG4RKOcKyCByecEbyRGuuYM5xMV0f -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -74,5 +74,5 @@ CREATE UNIQUE INDEX idx_category_tag_stats ON frontend.category_tag_stats USING -- PostgreSQL database dump complete -- -\unrestrict ld3nqyPOV1idFEGKYndTm2mBJfw674EgbRtgcfTJYK25evhsmJ9iDzrAoHyaAug +\unrestrict fxq86e8Vi8B8WWwOrd1sjupIRGbRkPe8f7eG4RKOcKyCByecEbyRGuuYM5xMV0f diff --git a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql index a124b368..a076df8c 100644 --- a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict EZrKYdXYMFxS0qzIcLBCNT5M6gUEpNTfCFtBdjK4kuPNFz1jGSZVXwkn2EPyIWX +\restrict fSMNTdTduoBQ5Qk71Wu5RZVUFrKxF1bSsN3z6JuJW6dmRbsLD4SCDhB7OPvzUZa -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -69,5 +69,5 @@ CREATE UNIQUE INDEX companies_apps_overview_unique_idx ON frontend.companies_app -- PostgreSQL database dump complete -- -\unrestrict EZrKYdXYMFxS0qzIcLBCNT5M6gUEpNTfCFtBdjK4kuPNFz1jGSZVXwkn2EPyIWX +\unrestrict fSMNTdTduoBQ5Qk71Wu5RZVUFrKxF1bSsN3z6JuJW6dmRbsLD4SCDhB7OPvzUZa diff --git a/pg-ddl/schema/frontend/companies_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_stats__matview.sql index 328f9d3d..b7d6e3ae 100644 --- a/pg-ddl/schema/frontend/companies_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 8drEBFFW6OmrEES9ARv3epMSXaHRuQUaQ6Wq3n5ylC4cHcv5g24xhLYUJpvUPRP +\restrict EviQZVghNbZo2OJtXDkXEVYWkMOGuZE2kbItDMmUkYfAK7dzcVpIu1ToNrqvVCt -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -82,5 +82,5 @@ CREATE INDEX companies_category_stats_query_idx ON frontend.companies_category_s -- PostgreSQL database dump complete -- -\unrestrict 8drEBFFW6OmrEES9ARv3epMSXaHRuQUaQ6Wq3n5ylC4cHcv5g24xhLYUJpvUPRP +\unrestrict EviQZVghNbZo2OJtXDkXEVYWkMOGuZE2kbItDMmUkYfAK7dzcVpIu1ToNrqvVCt diff --git a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql index e7e39729..07de1ea7 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qS6UPmsfqP3szMQ005iaMIcwoaK9bSxvs0tvw8PBCiZYZNGd4Ajf6PiTw0NI1ha +\restrict 1ukYlHSSZOUEP8FxQEE19VXtGfpBmXChJ1PzBnSETxW2ke0ab3PdUBgRaZfWFmc -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -86,5 +86,5 @@ CREATE UNIQUE INDEX companies_category_tag_stats_idx ON frontend.companies_categ -- PostgreSQL database dump complete -- -\unrestrict qS6UPmsfqP3szMQ005iaMIcwoaK9bSxvs0tvw8PBCiZYZNGd4Ajf6PiTw0NI1ha +\unrestrict 1ukYlHSSZOUEP8FxQEE19VXtGfpBmXChJ1PzBnSETxW2ke0ab3PdUBgRaZfWFmc diff --git a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql index 0e74355f..fe1f20f5 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict iohu4YfqBuWTcrzUs1aQHCKvFTmgfvg1aQ6tSeEbadQcMUg4B3AcTDgXf8HXXz2 +\restrict b1ttbPFZXMG8nIliCUxvtljeGDzTWGrRgKzOsVZ6VU5I4qxhrpbEMZ34CI4pBUz -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -28,7 +28,6 @@ SET default_table_access_method = heap; -- CREATE MATERIALIZED VIEW frontend.companies_category_tag_type_stats AS -xxx WITH d30_counts AS ( SELECT sahw.store_app, sum(sahw.installs_diff) AS d30_installs, @@ -36,56 +35,99 @@ xxx FROM public.app_global_metrics_weekly_diffs sahw WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) GROUP BY sahw.store_app + ), minimized_company_categories AS ( + SELECT company_categories.company_id, + min(company_categories.category_id) AS category_id + FROM adtech.company_categories + GROUP BY company_categories.company_id + ), api_and_app_ads AS ( + SELECT sa.store, + csac.app_category, + tag.tag_source, + csac.ad_domain AS company_domain, + c.name AS company_name, + CASE + WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying + ELSE cats.url_slug + END AS type_url_slug, + count(DISTINCT csac.store_app) AS app_count, + sum(dc.d30_installs) AS installs_d30, + sum(dc.d30_rating_count) AS rating_count_d30, + sum(sa.installs) AS installs_total, + sum(sa.rating_count) AS rating_count_total + FROM ((((((adtech.combined_store_apps_companies csac + LEFT JOIN adtech.companies c ON ((csac.company_id = c.id))) + LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) + LEFT JOIN d30_counts dc ON ((csac.store_app = dc.store_app))) + LEFT JOIN minimized_company_categories mcc ON ((csac.company_id = mcc.company_id))) + LEFT JOIN adtech.categories cats ON ((mcc.category_id = cats.id))) + CROSS JOIN LATERAL ( VALUES ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) + WHERE (tag.present IS TRUE) + GROUP BY sa.store, csac.app_category, tag.tag_source, csac.ad_domain, c.name, + CASE + WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying + ELSE cats.url_slug + END + ), store_app_sdks AS ( + SELECT DISTINCT sass.store_app, + sass.sdk_id + FROM adtech.store_app_sdk_strings sass + WHERE (sass.sdk_id IS NOT NULL) + ), sdk_and_mediation AS ( + SELECT sa.store, + sa.category AS app_category, + 'sdk'::text AS tag_source, + d.domain_name AS company_domain, + c.name AS company_name, + cats.url_slug AS type_url_slug, + count(DISTINCT sas.store_app) AS app_count, + sum(dc.d30_installs) AS installs_d30, + sum(dc.d30_rating_count) AS rating_count_d30, + sum(sa.installs) AS installs_total, + sum(sa.rating_count) AS rating_count_total + FROM (((((((store_app_sdks sas + LEFT JOIN adtech.sdks s ON ((sas.sdk_id = s.id))) + LEFT JOIN adtech.companies c ON ((s.company_id = c.id))) + LEFT JOIN public.domains d ON ((c.domain_id = d.id))) + LEFT JOIN frontend.store_apps_overview sa ON ((sas.store_app = sa.id))) + LEFT JOIN d30_counts dc ON ((sas.store_app = dc.store_app))) + LEFT JOIN adtech.sdk_categories sc ON ((sas.sdk_id = sc.sdk_id))) + LEFT JOIN adtech.categories cats ON ((sc.category_id = cats.id))) + GROUP BY sa.store, sa.category, 'sdk'::text, d.domain_name, c.name, cats.url_slug ) - SELECT sa.store, - csac.app_category, - tag.tag_source, - csac.ad_domain AS company_domain, - c.name AS company_name, - CASE - WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying - ELSE cats.url_slug - END AS type_url_slug, - count(DISTINCT csac.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(sa.installs) AS installs_total, - sum(sa.rating_count) AS rating_count_total - FROM ((((((adtech.combined_store_apps_companies csac - LEFT JOIN adtech.companies c ON ((csac.company_id = c.id))) - LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) - LEFT JOIN d30_counts dc ON ((csac.store_app = dc.store_app))) - LEFT JOIN adtech.company_categories ccats ON ((csac.company_id = ccats.company_id))) - LEFT JOIN adtech.categories cats ON ((ccats.category_id = cats.id))) - CROSS JOIN LATERAL ( VALUES ('sdk'::text,csac.sdk), ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) - WHERE (tag.present IS TRUE) - GROUP BY sa.store, csac.app_category, tag.tag_source, csac.ad_domain, c.name, - CASE - WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying - ELSE cats.url_slug - END - WITH NO DATAx; + SELECT api_and_app_ads.store, + api_and_app_ads.app_category, + api_and_app_ads.tag_source, + api_and_app_ads.company_domain, + api_and_app_ads.company_name, + api_and_app_ads.type_url_slug, + api_and_app_ads.app_count, + api_and_app_ads.installs_d30, + api_and_app_ads.rating_count_d30, + api_and_app_ads.installs_total, + api_and_app_ads.rating_count_total + FROM api_and_app_ads +UNION ALL + SELECT sdk_and_mediation.store, + sdk_and_mediation.app_category, + sdk_and_mediation.tag_source, + sdk_and_mediation.company_domain, + sdk_and_mediation.company_name, + sdk_and_mediation.type_url_slug, + sdk_and_mediation.app_count, + sdk_and_mediation.installs_d30, + sdk_and_mediation.rating_count_d30, + sdk_and_mediation.installs_total, + sdk_and_mediation.rating_count_total + FROM sdk_and_mediation + WITH NO DATA; ALTER MATERIALIZED VIEW frontend.companies_category_tag_type_stats OWNER TO postgres; --- --- Name: companies_category_tag_type_stats_idx; Type: INDEX; Schema: frontend; Owner: postgres --- - -CREATE UNIQUE INDEX companies_category_tag_type_stats_idx ON frontend.companies_category_tag_type_stats USING btree (store, tag_source, app_category, company_domain, type_url_slug); - - --- --- Name: companies_category_tag_type_stats_query_idx; Type: INDEX; Schema: frontend; Owner: postgres --- - -CREATE INDEX companies_category_tag_type_stats_query_idx ON frontend.companies_category_tag_type_stats USING btree (type_url_slug, app_category); - - -- -- PostgreSQL database dump complete -- -\unrestrict iohu4YfqBuWTcrzUs1aQHCKvFTmgfvg1aQ6tSeEbadQcMUg4B3AcTDgXf8HXXz2 +\unrestrict b1ttbPFZXMG8nIliCUxvtljeGDzTWGrRgKzOsVZ6VU5I4qxhrpbEMZ34CI4pBUz diff --git a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql index 75be90fa..5e562b6a 100644 --- a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict TQSvRpDYW9lMBQqgB7KdGYkiob8QLBdgq2Lnjv7PdpSV9CVlFagor1dNLlsOKUE +\restrict TrRSvNxcfLWcaIE5Obd8Zd7cFGubTe72Wn6OynfSQN9RjpEiWJuW1dHTLbJfsp1 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -130,5 +130,5 @@ ALTER MATERIALIZED VIEW frontend.companies_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict TQSvRpDYW9lMBQqgB7KdGYkiob8QLBdgq2Lnjv7PdpSV9CVlFagor1dNLlsOKUE +\unrestrict TrRSvNxcfLWcaIE5Obd8Zd7cFGubTe72Wn6OynfSQN9RjpEiWJuW1dHTLbJfsp1 diff --git a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql index 512d3db9..25e08cce 100644 --- a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql +++ b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 9kcDQ3cpcm10OOtfOsx74OJ4ajXL1ik8dK88J5RczhSFEHmtSn88biWH0BIKTBY +\restrict k0qeDdGjg3X2Pd9BdDox4lGr8ZB3J4A2lesw6jWvbFMe9WNRMxJ6pENtymt4OFt -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -54,5 +54,5 @@ CREATE UNIQUE INDEX companies_open_source_percent_unique ON frontend.companies_o -- PostgreSQL database dump complete -- -\unrestrict 9kcDQ3cpcm10OOtfOsx74OJ4ajXL1ik8dK88J5RczhSFEHmtSn88biWH0BIKTBY +\unrestrict k0qeDdGjg3X2Pd9BdDox4lGr8ZB3J4A2lesw6jWvbFMe9WNRMxJ6pENtymt4OFt diff --git a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql index d7678549..eef33730 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict tcRcm8AW5rrf9yUmXEbVLElcP49WapetqwfSiTBGRvIDwii16R3Ihm3bdUWKk0Z +\restrict OvAiSgjEW8YxWaXRlNaSasrMWqk7NCFtKhSR8Egt0T4E8xrruVKRrn3nt9Fu4pR -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -87,5 +87,5 @@ CREATE INDEX companies_parent_category_stats_query_idx ON frontend.companies_par -- PostgreSQL database dump complete -- -\unrestrict tcRcm8AW5rrf9yUmXEbVLElcP49WapetqwfSiTBGRvIDwii16R3Ihm3bdUWKk0Z +\unrestrict OvAiSgjEW8YxWaXRlNaSasrMWqk7NCFtKhSR8Egt0T4E8xrruVKRrn3nt9Fu4pR diff --git a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql index fe0c9af4..4f65bd0c 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ZxDIhRPVVswgzC4HZGTtpo3U0pEhoKdBEexquSPl1G6xulnkD7GC094JENk9q8Y +\restrict hLeWbWpZhgaUysOHQB7moGcaseYf1WWnOwmPHvuovuQHwrZgchCjKIHxFjiBzoq -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -90,5 +90,5 @@ CREATE INDEX companies_parent_category_tag_stats_query_idx ON frontend.companies -- PostgreSQL database dump complete -- -\unrestrict ZxDIhRPVVswgzC4HZGTtpo3U0pEhoKdBEexquSPl1G6xulnkD7GC094JENk9q8Y +\unrestrict hLeWbWpZhgaUysOHQB7moGcaseYf1WWnOwmPHvuovuQHwrZgchCjKIHxFjiBzoq diff --git a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql index a762c97b..46b3a3e6 100644 --- a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict omQ5z38gkn0YcOxElG1rSEzr6zha9oJSyeMXULeqW5C3Vh7rd2MtqlDeGy4Petb +\restrict aJ99jkvhvyCIHgaA8t96QGxCBKeCdevTTiocBe7CkE6AxNAhbJaKOHfpVMnoI4Y -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX companies_sdks_overview_unique_idx ON frontend.companies_sdk -- PostgreSQL database dump complete -- -\unrestrict omQ5z38gkn0YcOxElG1rSEzr6zha9oJSyeMXULeqW5C3Vh7rd2MtqlDeGy4Petb +\unrestrict aJ99jkvhvyCIHgaA8t96QGxCBKeCdevTTiocBe7CkE6AxNAhbJaKOHfpVMnoI4Y diff --git a/pg-ddl/schema/frontend/company_domain_country__matview.sql b/pg-ddl/schema/frontend/company_domain_country__matview.sql index f3a52dc9..e1b4409d 100644 --- a/pg-ddl/schema/frontend/company_domain_country__matview.sql +++ b/pg-ddl/schema/frontend/company_domain_country__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ZPJJjT6BNijRBdaEDZHqwJOVfwLAIA6B1OawY8HDvhkgJhTN9Q7DviShw63rdm6 +\restrict h5eHjHF08aY02yv1tLsowpcUpGNiFSAzPV6OxlZ4gfrwOG3kMgB5VYNufDJw6U9 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -74,5 +74,5 @@ ALTER MATERIALIZED VIEW frontend.company_domain_country OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict ZPJJjT6BNijRBdaEDZHqwJOVfwLAIA6B1OawY8HDvhkgJhTN9Q7DviShw63rdm6 +\unrestrict h5eHjHF08aY02yv1tLsowpcUpGNiFSAzPV6OxlZ4gfrwOG3kMgB5VYNufDJw6U9 diff --git a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql index f8f432ee..db3c748d 100644 --- a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict acAbDGxleTYHDPLr1wf2JPR3WYko9s0rdfvCk0xP7hgvb3ZcY09toNfU3GU6kbm +\restrict LMydoWiLbFjFsT9Y35Xg7NRDtKKbAmjtuc54AcAalbnERBbtbRtvX6VYOmjHMDX -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -115,5 +115,5 @@ CREATE UNIQUE INDEX idx_unique_company_domains_top_apps ON frontend.company_doma -- PostgreSQL database dump complete -- -\unrestrict acAbDGxleTYHDPLr1wf2JPR3WYko9s0rdfvCk0xP7hgvb3ZcY09toNfU3GU6kbm +\unrestrict LMydoWiLbFjFsT9Y35Xg7NRDtKKbAmjtuc54AcAalbnERBbtbRtvX6VYOmjHMDX diff --git a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql index 17348ffd..427aa58a 100644 --- a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 0n5GHKrcBWydK5grzb4Nb7azMg6PgjYN3XlhY2vjau2kCKwhDgMgy3zFRbP6R7I +\restrict 4RiQSL6NqwJzai7m4eVyEocDNAcfvFvgUcfPkc1RNH5jhlA90b80hKPcG1voXoP -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -111,5 +111,5 @@ CREATE UNIQUE INDEX idx_company_parent_top_apps_unique ON frontend.company_paren -- PostgreSQL database dump complete -- -\unrestrict 0n5GHKrcBWydK5grzb4Nb7azMg6PgjYN3XlhY2vjau2kCKwhDgMgy3zFRbP6R7I +\unrestrict 4RiQSL6NqwJzai7m4eVyEocDNAcfvFvgUcfPkc1RNH5jhlA90b80hKPcG1voXoP diff --git a/pg-ddl/schema/frontend/company_top_apps__matview.sql b/pg-ddl/schema/frontend/company_top_apps__matview.sql index 4932038f..740945d8 100644 --- a/pg-ddl/schema/frontend/company_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict GUe6nFUnldlNRxUTzcDelVkPl07YoprS9qyfnJlhTkzFndUp2Srga2F1pu2h5u7 +\restrict z9Adqsf2ABBOa8cqg0ZptuWgY2rnVpZftZpOuganvB4eUeTv6wauqA340oYUF59 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -118,5 +118,5 @@ CREATE UNIQUE INDEX idx_unique_company_top_apps ON frontend.company_top_apps USI -- PostgreSQL database dump complete -- -\unrestrict GUe6nFUnldlNRxUTzcDelVkPl07YoprS9qyfnJlhTkzFndUp2Srga2F1pu2h5u7 +\unrestrict z9Adqsf2ABBOa8cqg0ZptuWgY2rnVpZftZpOuganvB4eUeTv6wauqA340oYUF59 diff --git a/pg-ddl/schema/frontend/keyword_scores__matview.sql b/pg-ddl/schema/frontend/keyword_scores__matview.sql index 5bc93bd0..95dc9741 100644 --- a/pg-ddl/schema/frontend/keyword_scores__matview.sql +++ b/pg-ddl/schema/frontend/keyword_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict HqGMJW5HeogOcZ0sNGkeZS5phb37JzP51qCwln0EI87rqRSNe8ykHxGkMdeK2jg +\restrict gWs0laJ1TunqqiUF2cFw0TP2TldAHozbi4mfL8mu6GyHNUYkYacBtZOd6BtafL8 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -144,5 +144,5 @@ CREATE UNIQUE INDEX keyword_scores_store_keyword_id_idx ON frontend.keyword_scor -- PostgreSQL database dump complete -- -\unrestrict HqGMJW5HeogOcZ0sNGkeZS5phb37JzP51qCwln0EI87rqRSNe8ykHxGkMdeK2jg +\unrestrict gWs0laJ1TunqqiUF2cFw0TP2TldAHozbi4mfL8mu6GyHNUYkYacBtZOd6BtafL8 diff --git a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql index b7e0911c..0504b880 100644 --- a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql +++ b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict J4E5sy5iauRdQkVxEFb5dSKlKvFYzxNL6h6mIyEaV79Vmf3B2nlpwZyR4Dykvpq +\restrict bFbB1Wp1MfqEJrbHc0DNKFJzEHNWEvYwJpnYmuPMdqQsPrfGEOk6n6PeDjU40xz -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -77,5 +77,5 @@ CREATE UNIQUE INDEX latest_sdk_scanned_apps_unique_index ON frontend.latest_sdk_ -- PostgreSQL database dump complete -- -\unrestrict J4E5sy5iauRdQkVxEFb5dSKlKvFYzxNL6h6mIyEaV79Vmf3B2nlpwZyR4Dykvpq +\unrestrict bFbB1Wp1MfqEJrbHc0DNKFJzEHNWEvYwJpnYmuPMdqQsPrfGEOk6n6PeDjU40xz diff --git a/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql b/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql index 95f2daf0..37bc69d5 100644 --- a/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql +++ b/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fBrsN1wUrLXUo4cOde5GamHt6RwZ6qMGd3ewbYsrsFJZtqCL3Vtc3hsC8NZnd6Q +\restrict LXCucCEnvvLUESRjwOziTBoDfKmD0kJ1tlzzhPkMx1hbJBql81OA8YGpB8qJci4 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER MATERIALIZED VIEW frontend.mediation_adapter_app_counts OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict fBrsN1wUrLXUo4cOde5GamHt6RwZ6qMGd3ewbYsrsFJZtqCL3Vtc3hsC8NZnd6Q +\unrestrict LXCucCEnvvLUESRjwOziTBoDfKmD0kJ1tlzzhPkMx1hbJBql81OA8YGpB8qJci4 diff --git a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql index 5d42c0c8..c32f7d59 100644 --- a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql +++ b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ovKfUoyM6MQdhoIAk3U9jeIMNaDgGM4oVu7gIE6Aj9rnNFoPjcb3qluyLR7313Y +\restrict v3eAz46bRqhgOwqhf3Hy9Gd02YShIMx49KpcYX7a6jeA416cTUwlOpSjMT3H5wO -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -61,5 +61,5 @@ ALTER MATERIALIZED VIEW frontend.store_app_api_companies OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict ovKfUoyM6MQdhoIAk3U9jeIMNaDgGM4oVu7gIE6Aj9rnNFoPjcb3qluyLR7313Y +\unrestrict v3eAz46bRqhgOwqhf3Hy9Gd02YShIMx49KpcYX7a6jeA416cTUwlOpSjMT3H5wO diff --git a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql index 1c791f66..435b081e 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qWVMRn9Yp5VnWWrDzT3wqixWetKkVmN8jFDhKDB6ee74rodJmM7v6Li2vpyV4VU +\restrict huKgYTTlZKfQSLvbts2SbEVvBFGjXcX4LOLCNgoHrzYnNpYUMfWV2Ph6AGQXubz -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -71,5 +71,5 @@ CREATE UNIQUE INDEX store_app_ranks_best_monthly_uidx ON frontend.store_app_rank -- PostgreSQL database dump complete -- -\unrestrict qWVMRn9Yp5VnWWrDzT3wqixWetKkVmN8jFDhKDB6ee74rodJmM7v6Li2vpyV4VU +\unrestrict huKgYTTlZKfQSLvbts2SbEVvBFGjXcX4LOLCNgoHrzYnNpYUMfWV2Ph6AGQXubz diff --git a/pg-ddl/schema/frontend/store_app_ranks_daily.sql b/pg-ddl/schema/frontend/store_app_ranks_daily.sql index 683d9f88..77106b2e 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_daily.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_daily.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict TRPc0hvWJa3dQeEZIi8Bb8frnyKbNM4dBal0bks5QzkHrg4bsp1pIqynnt0F9PB +\restrict sQctJ5fYoHRdXUnS19FlW6fXutugqMc5PFqLFuM5fzwnGnEeiOIeReUWSBhLNBf -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -91,5 +91,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_daily -- PostgreSQL database dump complete -- -\unrestrict TRPc0hvWJa3dQeEZIi8Bb8frnyKbNM4dBal0bks5QzkHrg4bsp1pIqynnt0F9PB +\unrestrict sQctJ5fYoHRdXUnS19FlW6fXutugqMc5PFqLFuM5fzwnGnEeiOIeReUWSBhLNBf diff --git a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql index 14aabfc2..0e69b4ed 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 8EHhms7cfj1Ep3Fu8b8zu2hsLVu7fw2spuKzLc0bBRRE9PTIK7GPfzUuFIDmwpH +\restrict F0qbnmYyZWUnEEIuXwOzc3bTrtXrhYA6Qoakb1qWgLf5U9QqyyEAlw0F8lPukWU -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -73,5 +73,5 @@ CREATE UNIQUE INDEX idx_store_app_ranks_latest_filter_sort ON frontend.store_app -- PostgreSQL database dump complete -- -\unrestrict 8EHhms7cfj1Ep3Fu8b8zu2hsLVu7fw2spuKzLc0bBRRE9PTIK7GPfzUuFIDmwpH +\unrestrict F0qbnmYyZWUnEEIuXwOzc3bTrtXrhYA6Qoakb1qWgLf5U9QqyyEAlw0F8lPukWU diff --git a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql index 3dd6cd0e..c2c1fe8f 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict p2HbOPyJbFI9ypY1QAyYxHv7OANw5SU4lGSiDVr2aUqpTu6oI8uVlgReKKfW0oF +\restrict hcoYdH3x3WmWNCODRr8BLmH96CDqquEC7nYUo6wEJaYPxWTQCgsbAzuaNGymwTI -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -98,5 +98,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_weekly -- PostgreSQL database dump complete -- -\unrestrict p2HbOPyJbFI9ypY1QAyYxHv7OANw5SU4lGSiDVr2aUqpTu6oI8uVlgReKKfW0oF +\unrestrict hcoYdH3x3WmWNCODRr8BLmH96CDqquEC7nYUo6wEJaYPxWTQCgsbAzuaNGymwTI diff --git a/pg-ddl/schema/frontend/store_apps_overview__matview.sql b/pg-ddl/schema/frontend/store_apps_overview__matview.sql index e0589cf7..0bbe5220 100644 --- a/pg-ddl/schema/frontend/store_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/store_apps_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Y3tUV4IhSLrbMm27hpjpv4JIBfTn3RBURgsWQ3J2D9h2UJcsQViuaVbzeO22Chq +\restrict LhLwXrW5RV8Wv39RjW8oXfCiEI51Xue1LmRUZmbEO5l1nyz66vvLbKfiEllzZi3 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -205,5 +205,5 @@ CREATE UNIQUE INDEX store_apps_overview_unique_store_id_idx ON frontend.store_ap -- PostgreSQL database dump complete -- -\unrestrict Y3tUV4IhSLrbMm27hpjpv4JIBfTn3RBURgsWQ3J2D9h2UJcsQViuaVbzeO22Chq +\unrestrict LhLwXrW5RV8Wv39RjW8oXfCiEI51Xue1LmRUZmbEO5l1nyz66vvLbKfiEllzZi3 diff --git a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql b/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql index 3dd7855f..33eaf1db 100644 --- a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql +++ b/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict NC0nbROPcp3NW8J7xts3C6ZdRVdCsgxVGcrUBkxRns4PmPgbFbWHQg6ZF91zLfR +\restrict 5ysCA0vkRYrmAeDwZ06qGbvosRJ3W0Q3eR1EfiH8cNjaHyR6ZvvIdejY93bg58g -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -125,5 +125,5 @@ CREATE UNIQUE INDEX frontend_store_apps_z_scores_unique ON frontend.store_apps_z -- PostgreSQL database dump complete -- -\unrestrict NC0nbROPcp3NW8J7xts3C6ZdRVdCsgxVGcrUBkxRns4PmPgbFbWHQg6ZF91zLfR +\unrestrict 5ysCA0vkRYrmAeDwZ06qGbvosRJ3W0Q3eR1EfiH8cNjaHyR6ZvvIdejY93bg58g diff --git a/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql b/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql index e6b166d9..143535a6 100644 --- a/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql +++ b/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict xfgAZb4qIM1yKCmbX6b3bAfoCIFCKeg49zvYLBzv7Epz6tb5mAm3gydvcsiqb9w +\restrict cQfrSrUGdIzroXwaMz1NJtCI3k6EiHzk4iVjEZMshbBFpLlRcmaSBzr18IJXKt2 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -53,5 +53,5 @@ CREATE UNIQUE INDEX idx_total_categories_app_counts ON frontend.total_categories -- PostgreSQL database dump complete -- -\unrestrict xfgAZb4qIM1yKCmbX6b3bAfoCIFCKeg49zvYLBzv7Epz6tb5mAm3gydvcsiqb9w +\unrestrict cQfrSrUGdIzroXwaMz1NJtCI3k6EiHzk4iVjEZMshbBFpLlRcmaSBzr18IJXKt2 diff --git a/pg-ddl/schema/full_db_dump.sql b/pg-ddl/schema/full_db_dump.sql index 41254b70..ef8f7138 100644 --- a/pg-ddl/schema/full_db_dump.sql +++ b/pg-ddl/schema/full_db_dump.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 90gNuLaY9dT9mh71t01WY30icyMDVzlHRIyJe2t9dFmhGV54ntIFPaNhPEENjAf +\restrict vbMufsMBmidBHnrRqLgiR744vSWD0SQyL3BkPwKVo7ZTeasVdJ4D7DHCYzMEbho -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -515,10 +515,10 @@ CREATE TABLE public.version_strings ( ALTER TABLE public.version_strings OWNER TO postgres; -- --- Name: company_sdk_strings; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres +-- Name: sdk_strings; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres -- -CREATE MATERIALIZED VIEW adtech.company_sdk_strings AS +CREATE MATERIALIZED VIEW adtech.sdk_strings AS WITH matched_value_patterns AS ( SELECT DISTINCT lower(vd.value_name) AS value_name_lower, sp.sdk_id @@ -549,11 +549,11 @@ UNION SELECT vs.id AS version_string_id, ms.sdk_id FROM (mediation_strings ms - JOIN public.version_strings vs ON ((lower(vs.xml_path) = ms.value_name_lower))) + JOIN public.version_strings vs ON ((lower(vs.value_name) = ms.value_name_lower))) WITH NO DATA; -ALTER MATERIALIZED VIEW adtech.company_sdk_strings OWNER TO postgres; +ALTER MATERIALIZED VIEW adtech.sdk_strings OWNER TO postgres; -- -- Name: sdks; Type: TABLE; Schema: adtech; Owner: postgres @@ -639,7 +639,7 @@ CREATE MATERIALIZED VIEW adtech.store_app_sdk_strings AS css.sdk_id FROM ((latest_version_codes vc JOIN public.version_details_map vdm ON ((vc.id = vdm.version_code))) - LEFT JOIN adtech.company_sdk_strings css ON ((vdm.string_id = css.version_string_id))) + LEFT JOIN adtech.sdk_strings css ON ((vdm.string_id = css.version_string_id))) WITH NO DATA; @@ -1399,7 +1399,7 @@ CREATE MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h1 AS sd.id AS sdk_id FROM (((latest_version_codes vc JOIN public.version_details_map vdm ON ((vc.id = vdm.version_code))) - JOIN adtech.company_sdk_strings css ON ((vdm.string_id = css.version_string_id))) + JOIN adtech.sdk_strings css ON ((vdm.string_id = css.version_string_id))) JOIN adtech.sdks sd ON ((css.sdk_id = sd.id))) WITH NO DATA; @@ -1524,7 +1524,7 @@ CREATE MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h2 AS sd.id AS sdk_id FROM (((latest_version_codes vc JOIN public.version_details_map vdm ON ((vc.id = vdm.version_code))) - JOIN adtech.company_sdk_strings css ON ((vdm.string_id = css.version_string_id))) + JOIN adtech.sdk_strings css ON ((vdm.string_id = css.version_string_id))) JOIN adtech.sdks sd ON ((css.sdk_id = sd.id))) WITH NO DATA; @@ -2848,34 +2848,91 @@ CREATE MATERIALIZED VIEW frontend.companies_category_tag_type_stats AS FROM public.app_global_metrics_weekly_diffs sahw WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) GROUP BY sahw.store_app + ), minimized_company_categories AS ( + SELECT company_categories.company_id, + min(company_categories.category_id) AS category_id + FROM adtech.company_categories + GROUP BY company_categories.company_id + ), api_and_app_ads AS ( + SELECT sa.store, + csac.app_category, + tag.tag_source, + csac.ad_domain AS company_domain, + c.name AS company_name, + CASE + WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying + ELSE cats.url_slug + END AS type_url_slug, + count(DISTINCT csac.store_app) AS app_count, + sum(dc.d30_installs) AS installs_d30, + sum(dc.d30_rating_count) AS rating_count_d30, + sum(sa.installs) AS installs_total, + sum(sa.rating_count) AS rating_count_total + FROM ((((((adtech.combined_store_apps_companies csac + LEFT JOIN adtech.companies c ON ((csac.company_id = c.id))) + LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) + LEFT JOIN d30_counts dc ON ((csac.store_app = dc.store_app))) + LEFT JOIN minimized_company_categories mcc ON ((csac.company_id = mcc.company_id))) + LEFT JOIN adtech.categories cats ON ((mcc.category_id = cats.id))) + CROSS JOIN LATERAL ( VALUES ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) + WHERE (tag.present IS TRUE) + GROUP BY sa.store, csac.app_category, tag.tag_source, csac.ad_domain, c.name, + CASE + WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying + ELSE cats.url_slug + END + ), store_app_sdks AS ( + SELECT DISTINCT sass.store_app, + sass.sdk_id + FROM adtech.store_app_sdk_strings sass + WHERE (sass.sdk_id IS NOT NULL) + ), sdk_and_mediation AS ( + SELECT sa.store, + sa.category AS app_category, + 'sdk'::text AS tag_source, + d.domain_name AS company_domain, + c.name AS company_name, + cats.url_slug AS type_url_slug, + count(DISTINCT sas.store_app) AS app_count, + sum(dc.d30_installs) AS installs_d30, + sum(dc.d30_rating_count) AS rating_count_d30, + sum(sa.installs) AS installs_total, + sum(sa.rating_count) AS rating_count_total + FROM (((((((store_app_sdks sas + LEFT JOIN adtech.sdks s ON ((sas.sdk_id = s.id))) + LEFT JOIN adtech.companies c ON ((s.company_id = c.id))) + LEFT JOIN public.domains d ON ((c.domain_id = d.id))) + LEFT JOIN frontend.store_apps_overview sa ON ((sas.store_app = sa.id))) + LEFT JOIN d30_counts dc ON ((sas.store_app = dc.store_app))) + LEFT JOIN adtech.sdk_categories sc ON ((sas.sdk_id = sc.sdk_id))) + LEFT JOIN adtech.categories cats ON ((sc.category_id = cats.id))) + GROUP BY sa.store, sa.category, 'sdk'::text, d.domain_name, c.name, cats.url_slug ) - SELECT sa.store, - csac.app_category, - tag.tag_source, - csac.ad_domain AS company_domain, - c.name AS company_name, - CASE - WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying - ELSE cats.url_slug - END AS type_url_slug, - count(DISTINCT csac.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(sa.installs) AS installs_total, - sum(sa.rating_count) AS rating_count_total - FROM ((((((adtech.combined_store_apps_companies csac - LEFT JOIN adtech.companies c ON ((csac.company_id = c.id))) - LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) - LEFT JOIN d30_counts dc ON ((csac.store_app = dc.store_app))) - LEFT JOIN adtech.company_categories ccats ON ((csac.company_id = ccats.company_id))) - LEFT JOIN adtech.categories cats ON ((ccats.category_id = cats.id))) - CROSS JOIN LATERAL ( VALUES ('sdk'::text,csac.sdk), ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) - WHERE (tag.present IS TRUE) - GROUP BY sa.store, csac.app_category, tag.tag_source, csac.ad_domain, c.name, - CASE - WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying - ELSE cats.url_slug - END + SELECT api_and_app_ads.store, + api_and_app_ads.app_category, + api_and_app_ads.tag_source, + api_and_app_ads.company_domain, + api_and_app_ads.company_name, + api_and_app_ads.type_url_slug, + api_and_app_ads.app_count, + api_and_app_ads.installs_d30, + api_and_app_ads.rating_count_d30, + api_and_app_ads.installs_total, + api_and_app_ads.rating_count_total + FROM api_and_app_ads +UNION ALL + SELECT sdk_and_mediation.store, + sdk_and_mediation.app_category, + sdk_and_mediation.tag_source, + sdk_and_mediation.company_domain, + sdk_and_mediation.company_name, + sdk_and_mediation.type_url_slug, + sdk_and_mediation.app_count, + sdk_and_mediation.installs_d30, + sdk_and_mediation.rating_count_d30, + sdk_and_mediation.installs_total, + sdk_and_mediation.rating_count_total + FROM sdk_and_mediation WITH NO DATA; @@ -4190,108 +4247,6 @@ ALTER TABLE public.app_urls_map ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDEN ); --- --- Name: companies_category_tag_type_stats; Type: MATERIALIZED VIEW; Schema: public; Owner: postgres --- - -CREATE MATERIALIZED VIEW public.companies_category_tag_type_stats AS - WITH d30_counts AS ( - SELECT sahw.store_app, - sum(sahw.installs_diff) AS d30_installs, - sum(sahw.rating_count_diff) AS d30_rating_count - FROM public.app_global_metrics_weekly_diffs sahw - WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) - GROUP BY sahw.store_app - ), minimized_company_categories AS ( - SELECT company_categories.company_id, - min(company_categories.category_id) AS category_id - FROM adtech.company_categories - GROUP BY company_categories.company_id - ), api_and_app_ads AS ( - SELECT sa.store, - csac.app_category, - tag.tag_source, - csac.ad_domain AS company_domain, - c.name AS company_name, - CASE - WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying - ELSE cats.url_slug - END AS type_url_slug, - count(DISTINCT csac.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(sa.installs) AS installs_total, - sum(sa.rating_count) AS rating_count_total - FROM ((((((adtech.combined_store_apps_companies csac - LEFT JOIN adtech.companies c ON ((csac.company_id = c.id))) - LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) - LEFT JOIN d30_counts dc ON ((csac.store_app = dc.store_app))) - LEFT JOIN minimized_company_categories mcc ON ((csac.company_id = mcc.company_id))) - LEFT JOIN adtech.categories cats ON ((mcc.category_id = cats.id))) - CROSS JOIN LATERAL ( VALUES ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) - WHERE (tag.present IS TRUE) - GROUP BY sa.store, csac.app_category, tag.tag_source, csac.ad_domain, c.name, - CASE - WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying - ELSE cats.url_slug - END - ), store_app_sdks AS ( - SELECT DISTINCT sass.store_app, - sass.sdk_id - FROM adtech.store_app_sdk_strings sass - WHERE (sass.sdk_id IS NOT NULL) - ), sdk_and_mediation AS ( - SELECT sa.store, - sa.category AS app_category, - 'sdk'::text AS tag_source, - d.domain_name AS company_domain, - c.name AS company_name, - cats.url_slug AS type_url_slug, - count(DISTINCT sas.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(sa.installs) AS installs_total, - sum(sa.rating_count) AS rating_count_total - FROM (((((((store_app_sdks sas - LEFT JOIN adtech.sdks s ON ((sas.sdk_id = s.id))) - LEFT JOIN adtech.companies c ON ((s.company_id = c.id))) - LEFT JOIN public.domains d ON ((c.domain_id = d.id))) - LEFT JOIN frontend.store_apps_overview sa ON ((sas.store_app = sa.id))) - LEFT JOIN d30_counts dc ON ((sas.store_app = dc.store_app))) - LEFT JOIN adtech.sdk_categories sc ON ((s.id = sc.sdk_id))) - LEFT JOIN adtech.categories cats ON ((sc.category_id = cats.id))) - GROUP BY sa.store, sa.category, 'sdk'::text, d.domain_name, c.name, cats.url_slug - ) - SELECT api_and_app_ads.store, - api_and_app_ads.app_category, - api_and_app_ads.tag_source, - api_and_app_ads.company_domain, - api_and_app_ads.company_name, - api_and_app_ads.type_url_slug, - api_and_app_ads.app_count, - api_and_app_ads.installs_d30, - api_and_app_ads.rating_count_d30, - api_and_app_ads.installs_total, - api_and_app_ads.rating_count_total - FROM api_and_app_ads -UNION ALL - SELECT sdk_and_mediation.store, - sdk_and_mediation.app_category, - sdk_and_mediation.tag_source, - sdk_and_mediation.company_domain, - sdk_and_mediation.company_name, - sdk_and_mediation.type_url_slug, - sdk_and_mediation.app_count, - sdk_and_mediation.installs_d30, - sdk_and_mediation.rating_count_d30, - sdk_and_mediation.installs_total, - sdk_and_mediation.rating_count_total - FROM sdk_and_mediation - WITH NO DATA; - - -ALTER MATERIALIZED VIEW public.companies_category_tag_type_stats OWNER TO postgres; - -- -- Name: crawl_results; Type: TABLE; Schema: public; Owner: james -- @@ -5851,13 +5806,6 @@ ALTER TABLE ONLY public.version_strings CREATE UNIQUE INDEX combined_store_app_companies_idx ON adtech.combined_store_apps_companies USING btree (ad_domain, store_app, app_category, company_id); --- --- Name: company_sdk_strings_version_string_id_company_id_idx; Type: INDEX; Schema: adtech; Owner: postgres --- - -CREATE UNIQUE INDEX company_sdk_strings_version_string_id_company_id_idx ON adtech.company_sdk_strings USING btree (version_string_id, sdk_id); - - -- -- Name: idx_combined_store_apps_parent_companies_idx; Type: INDEX; Schema: adtech; Owner: postgres -- @@ -5921,6 +5869,13 @@ CREATE INDEX sdk_path_pattern_idx ON adtech.sdk_paths USING btree (path_pattern) CREATE INDEX sdk_paths_path_pattern_trgm_idx ON adtech.sdk_paths USING gin (lower((path_pattern)::text) public.gin_trgm_ops); +-- +-- Name: sdk_strings_version_string_id_sdk_id_idx; Type: INDEX; Schema: adtech; Owner: postgres +-- + +CREATE UNIQUE INDEX sdk_strings_version_string_id_sdk_id_idx ON adtech.sdk_strings USING btree (version_string_id, sdk_id); + + -- -- Name: store_app_sdk_strings_idx; Type: INDEX; Schema: adtech; Owner: postgres -- @@ -6061,20 +6016,6 @@ CREATE INDEX companies_category_tag_stats__query_idx ON frontend.companies_categ CREATE UNIQUE INDEX companies_category_tag_stats_idx ON frontend.companies_category_tag_stats USING btree (store, tag_source, app_category, company_domain); --- --- Name: companies_category_tag_type_stats_idx; Type: INDEX; Schema: frontend; Owner: postgres --- - -CREATE UNIQUE INDEX companies_category_tag_type_stats_idx ON frontend.companies_category_tag_type_stats USING btree (store, tag_source, app_category, company_domain, type_url_slug); - - --- --- Name: companies_category_tag_type_stats_query_idx; Type: INDEX; Schema: frontend; Owner: postgres --- - -CREATE INDEX companies_category_tag_type_stats_query_idx ON frontend.companies_category_tag_type_stats USING btree (type_url_slug, app_category); - - -- -- Name: companies_open_source_percent_unique; Type: INDEX; Schema: frontend; Owner: postgres -- @@ -7307,5 +7248,5 @@ GRANT ALL ON SCHEMA public TO PUBLIC; -- PostgreSQL database dump complete -- -\unrestrict 90gNuLaY9dT9mh71t01WY30icyMDVzlHRIyJe2t9dFmhGV54ntIFPaNhPEENjAf +\unrestrict vbMufsMBmidBHnrRqLgiR744vSWD0SQyL3BkPwKVo7ZTeasVdJ4D7DHCYzMEbho diff --git a/pg-ddl/schema/logging/app_country_crawls.sql b/pg-ddl/schema/logging/app_country_crawls.sql index b5879c8a..56eec635 100644 --- a/pg-ddl/schema/logging/app_country_crawls.sql +++ b/pg-ddl/schema/logging/app_country_crawls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 34HDCi0dcKp2sRCsju6UTqNlSHWemJRgpeDVhWfHXIues7MHnxTlIyxMm0pNc94 +\restrict tEtPHcpvq6w7NXTP0qSFMbMiH0XT42c7ou4Mn55BJVJbqmHapmQ2GBMaCrCfypN -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -57,5 +57,5 @@ ALTER TABLE ONLY logging.app_country_crawls -- PostgreSQL database dump complete -- -\unrestrict 34HDCi0dcKp2sRCsju6UTqNlSHWemJRgpeDVhWfHXIues7MHnxTlIyxMm0pNc94 +\unrestrict tEtPHcpvq6w7NXTP0qSFMbMiH0XT42c7ou4Mn55BJVJbqmHapmQ2GBMaCrCfypN diff --git a/pg-ddl/schema/logging/app_description_keywords_extracted.sql b/pg-ddl/schema/logging/app_description_keywords_extracted.sql index ac7f7a8e..c9737ee1 100644 --- a/pg-ddl/schema/logging/app_description_keywords_extracted.sql +++ b/pg-ddl/schema/logging/app_description_keywords_extracted.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Vb5kpPkhqBUh41q6StF4oqovbPhuSG3W0jKTsIfjDkcecG6kcaYF2EYu4D0zXN2 +\restrict Q6l3r3ntDvhVlgGvpmWK2VtAndtiG7GURJqNd67mGazzl3KECDwjoIViAi00VnS -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ CREATE INDEX app_description_keywords_extrac_description_id_extracted_at_idx ON -- PostgreSQL database dump complete -- -\unrestrict Vb5kpPkhqBUh41q6StF4oqovbPhuSG3W0jKTsIfjDkcecG6kcaYF2EYu4D0zXN2 +\unrestrict Q6l3r3ntDvhVlgGvpmWK2VtAndtiG7GURJqNd67mGazzl3KECDwjoIViAi00VnS diff --git a/pg-ddl/schema/logging/creative_scan_results.sql b/pg-ddl/schema/logging/creative_scan_results.sql index b185e35d..ffbee4af 100644 --- a/pg-ddl/schema/logging/creative_scan_results.sql +++ b/pg-ddl/schema/logging/creative_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict HWg0uFr4WEYJNr8VhoNefSkhbYuM1z95QfkJ5xbUKaYgcYLoxhvUl4STNjeGJ2h +\restrict OiYYKI1IGtfadNf17zwqXy9e4nhShuQsbxxMMa5Xa6MNoQBTnVuCP79izVFhtlN -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -47,5 +47,5 @@ ALTER TABLE logging.creative_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict HWg0uFr4WEYJNr8VhoNefSkhbYuM1z95QfkJ5xbUKaYgcYLoxhvUl4STNjeGJ2h +\unrestrict OiYYKI1IGtfadNf17zwqXy9e4nhShuQsbxxMMa5Xa6MNoQBTnVuCP79izVFhtlN diff --git a/pg-ddl/schema/logging/developers_crawled_at.sql b/pg-ddl/schema/logging/developers_crawled_at.sql index ee107e51..51d23d8e 100644 --- a/pg-ddl/schema/logging/developers_crawled_at.sql +++ b/pg-ddl/schema/logging/developers_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 6tY7d3u2eHbuMbPezq6AxXzEctqUf9gI0u9bVrHaXIcDHVuDGgT4eB2rYUJcG34 +\restrict zvTZRjbO8VEzh4mY7Ptb8puNo9ac2DAaDfWxxmjSMHPLmoiaDE0BtPbfb5DacMG -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.developers_crawled_at -- PostgreSQL database dump complete -- -\unrestrict 6tY7d3u2eHbuMbPezq6AxXzEctqUf9gI0u9bVrHaXIcDHVuDGgT4eB2rYUJcG34 +\unrestrict zvTZRjbO8VEzh4mY7Ptb8puNo9ac2DAaDfWxxmjSMHPLmoiaDE0BtPbfb5DacMG diff --git a/pg-ddl/schema/logging/keywords_crawled_at.sql b/pg-ddl/schema/logging/keywords_crawled_at.sql index 7f5f033b..ebdc6df1 100644 --- a/pg-ddl/schema/logging/keywords_crawled_at.sql +++ b/pg-ddl/schema/logging/keywords_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict RGnoo42s8GJd2T5OZnbJDrMQyNOoX62xzB10KyStOpFcTyJTZZfue502fbsGp8y +\restrict FCdszdJ2Iz2rDgxTZbXUEt1gt3MRINU9HPCtfwDgDUNct6XTuFC094EUIjCO0RL -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.keywords_crawled_at -- PostgreSQL database dump complete -- -\unrestrict RGnoo42s8GJd2T5OZnbJDrMQyNOoX62xzB10KyStOpFcTyJTZZfue502fbsGp8y +\unrestrict FCdszdJ2Iz2rDgxTZbXUEt1gt3MRINU9HPCtfwDgDUNct6XTuFC094EUIjCO0RL diff --git a/pg-ddl/schema/logging/snapshot_pub_domains.sql b/pg-ddl/schema/logging/snapshot_pub_domains.sql index 985e91fa..55ae3f4d 100644 --- a/pg-ddl/schema/logging/snapshot_pub_domains.sql +++ b/pg-ddl/schema/logging/snapshot_pub_domains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict efTS4U2v9JcpQ0KduMVEgj7QXI0Ll1dL82aOq06Cem8VC95qG0um8oKf0MeDizx +\restrict 4YaQjjZ0cK4BPeyDe9nzk9XUDyaYPBPGjE4mR4sHYOv3H1SEsqVZBsfzrwvbz0C -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -43,5 +43,5 @@ ALTER TABLE logging.snapshot_pub_domains OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict efTS4U2v9JcpQ0KduMVEgj7QXI0Ll1dL82aOq06Cem8VC95qG0um8oKf0MeDizx +\unrestrict 4YaQjjZ0cK4BPeyDe9nzk9XUDyaYPBPGjE4mR4sHYOv3H1SEsqVZBsfzrwvbz0C diff --git a/pg-ddl/schema/logging/store_app_downloads.sql b/pg-ddl/schema/logging/store_app_downloads.sql index 32ccb0e5..31333fdd 100644 --- a/pg-ddl/schema/logging/store_app_downloads.sql +++ b/pg-ddl/schema/logging/store_app_downloads.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict h2FzyWxf3B1b864rpz8kR5gamJn85c84pgbCLHRDqxF2S7LCVM90hvAGLm0x4nA +\restrict 5DxFhnwvs1Vbm43YvEiJsDwnDqcX8Q34HhgYDhJ3CAYFTfkUaKrRpmPpS4pvqsD -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -49,5 +49,5 @@ ALTER TABLE ONLY logging.store_app_downloads -- PostgreSQL database dump complete -- -\unrestrict h2FzyWxf3B1b864rpz8kR5gamJn85c84pgbCLHRDqxF2S7LCVM90hvAGLm0x4nA +\unrestrict 5DxFhnwvs1Vbm43YvEiJsDwnDqcX8Q34HhgYDhJ3CAYFTfkUaKrRpmPpS4pvqsD diff --git a/pg-ddl/schema/logging/store_app_no_creatives.sql b/pg-ddl/schema/logging/store_app_no_creatives.sql index 752cd230..21c47ee7 100644 --- a/pg-ddl/schema/logging/store_app_no_creatives.sql +++ b/pg-ddl/schema/logging/store_app_no_creatives.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict tfq7NmWPbgwaQYxYY5tz7welFJGDDoxNP8MipCnDaJxTCFPbIskYveWjwTScRfH +\restrict 8eWxMFwYdxxa4cPZ3gchTJpIjXk1baRyHagnOtx23C31x2fTFMJymDh8Y9afmTn -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -40,5 +40,5 @@ ALTER TABLE logging.store_app_no_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict tfq7NmWPbgwaQYxYY5tz7welFJGDDoxNP8MipCnDaJxTCFPbIskYveWjwTScRfH +\unrestrict 8eWxMFwYdxxa4cPZ3gchTJpIjXk1baRyHagnOtx23C31x2fTFMJymDh8Y9afmTn diff --git a/pg-ddl/schema/logging/store_app_sources.sql b/pg-ddl/schema/logging/store_app_sources.sql index 0da53b8b..59abfe64 100644 --- a/pg-ddl/schema/logging/store_app_sources.sql +++ b/pg-ddl/schema/logging/store_app_sources.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict oHLfudgTr6fYpLl5ttIUoqT7RmWuL8uoin8u5REtvENb3DwDegiwa0zW831CVSe +\restrict OZBgRYZffmT7fQyOHfsL3xALgZdSHdmdcszBOiYVIqalRYmd56eZVTHN5M0qkif -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -64,5 +64,5 @@ ALTER TABLE ONLY logging.store_app_sources -- PostgreSQL database dump complete -- -\unrestrict oHLfudgTr6fYpLl5ttIUoqT7RmWuL8uoin8u5REtvENb3DwDegiwa0zW831CVSe +\unrestrict OZBgRYZffmT7fQyOHfsL3xALgZdSHdmdcszBOiYVIqalRYmd56eZVTHN5M0qkif diff --git a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql index 38d58897..ebf28847 100644 --- a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql +++ b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict T6As4EjEFDa3VLsCbhaGBHVPbCiNa6kFKRSWxR7HfueW6UKbOPOXaYNWt6zOOkw +\restrict MJxeBFUmBMf2FL6HoTQPBWfDYfkgNT0ybQJQ1ihY8rfIrMDXsAHGubxHP3qpv2W -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -63,5 +63,5 @@ ALTER TABLE ONLY logging.store_app_waydroid_crawled_at -- PostgreSQL database dump complete -- -\unrestrict T6As4EjEFDa3VLsCbhaGBHVPbCiNa6kFKRSWxR7HfueW6UKbOPOXaYNWt6zOOkw +\unrestrict MJxeBFUmBMf2FL6HoTQPBWfDYfkgNT0ybQJQ1ihY8rfIrMDXsAHGubxHP3qpv2W diff --git a/pg-ddl/schema/logging/store_apps_snapshot.sql b/pg-ddl/schema/logging/store_apps_snapshot.sql index ad9c2893..368bb5b4 100644 --- a/pg-ddl/schema/logging/store_apps_snapshot.sql +++ b/pg-ddl/schema/logging/store_apps_snapshot.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict JiLaaW36D42909JHYmyCsUIgsM2ylsFuJcaqCFPLOotPs2581uW0X2xLWGWL6Zk +\restrict 5VrH3XH6TMBSXfH5q8mMckP7iMAjAanLUvsF1uf3aSIohKWIawGpTmGH4Wo1SwU -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -44,5 +44,5 @@ ALTER TABLE logging.store_apps_snapshot OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict JiLaaW36D42909JHYmyCsUIgsM2ylsFuJcaqCFPLOotPs2581uW0X2xLWGWL6Zk +\unrestrict 5VrH3XH6TMBSXfH5q8mMckP7iMAjAanLUvsF1uf3aSIohKWIawGpTmGH4Wo1SwU diff --git a/pg-ddl/schema/logging/version_code_api_scan_results.sql b/pg-ddl/schema/logging/version_code_api_scan_results.sql index 0a952aae..a21c032e 100644 --- a/pg-ddl/schema/logging/version_code_api_scan_results.sql +++ b/pg-ddl/schema/logging/version_code_api_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict YXjlUQTpCKJERbnrsDpymoA2RRe10EMhWBHtdxj58saScxp75PLKczAaiQg35Xq +\restrict zRuaCkqPfDZTPWOJ1PxZdj6mk5Wb6f2MhLxFCvK6Dz76G5biH0BydcTJv4YMVwB -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -42,5 +42,5 @@ ALTER TABLE logging.version_code_api_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict YXjlUQTpCKJERbnrsDpymoA2RRe10EMhWBHtdxj58saScxp75PLKczAaiQg35Xq +\unrestrict zRuaCkqPfDZTPWOJ1PxZdj6mk5Wb6f2MhLxFCvK6Dz76G5biH0BydcTJv4YMVwB diff --git a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql index af4d8685..7739f290 100644 --- a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql +++ b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ho03dPH67mYurOuKO3h7txQReQaI4g65T42A5eq5BP5Kd0JGZVWBuHBBt4qEggq +\restrict CCT6LHpCSbCuZZFUMm2lBdBwMXxOeTeo7m06liDDrqi2Hc8U1zsyMOhxEUNrk7i -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -60,5 +60,5 @@ ALTER MATERIALIZED VIEW public.ad_network_sdk_keys OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict ho03dPH67mYurOuKO3h7txQReQaI4g65T42A5eq5BP5Kd0JGZVWBuHBBt4qEggq +\unrestrict CCT6LHpCSbCuZZFUMm2lBdBwMXxOeTeo7m06liDDrqi2Hc8U1zsyMOhxEUNrk7i diff --git a/pg-ddl/schema/public/adstxt_crawl_results.sql b/pg-ddl/schema/public/adstxt_crawl_results.sql index ddae6197..3d892cbe 100644 --- a/pg-ddl/schema/public/adstxt_crawl_results.sql +++ b/pg-ddl/schema/public/adstxt_crawl_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict FP1pIdUbNiD1ScfgzCI6qK3OPD6GRh5f9VSILN6pQyKDPIvsLPBGiwxejhYNRi3 +\restrict WXPevfkkVRI9d8SEAHDPgZK0BBuCQCM7gN0sRaMcLW4X9nOpWk8SzvvhangYlkf -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -96,5 +96,5 @@ ALTER TABLE ONLY public.adstxt_crawl_results -- PostgreSQL database dump complete -- -\unrestrict FP1pIdUbNiD1ScfgzCI6qK3OPD6GRh5f9VSILN6pQyKDPIvsLPBGiwxejhYNRi3 +\unrestrict WXPevfkkVRI9d8SEAHDPgZK0BBuCQCM7gN0sRaMcLW4X9nOpWk8SzvvhangYlkf diff --git a/pg-ddl/schema/public/api_calls.sql b/pg-ddl/schema/public/api_calls.sql index 19c1116b..012339a2 100644 --- a/pg-ddl/schema/public/api_calls.sql +++ b/pg-ddl/schema/public/api_calls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict JBzmegJEKHXj5wzZFMhYngJSBgic81eiIfXoewpr6HfUoMP3PUrwtxi80aHj8di +\restrict vZiiIk4IjMZevEYk7Ao9utaeyTrhvwQ54skA08So4yHnXiIGXznVb2dSg0DidDR -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -135,5 +135,5 @@ ALTER TABLE ONLY public.api_calls -- PostgreSQL database dump complete -- -\unrestrict JBzmegJEKHXj5wzZFMhYngJSBgic81eiIfXoewpr6HfUoMP3PUrwtxi80aHj8di +\unrestrict vZiiIk4IjMZevEYk7Ao9utaeyTrhvwQ54skA08So4yHnXiIGXznVb2dSg0DidDR diff --git a/pg-ddl/schema/public/app_ads_entrys.sql b/pg-ddl/schema/public/app_ads_entrys.sql index 96683f07..b9658299 100644 --- a/pg-ddl/schema/public/app_ads_entrys.sql +++ b/pg-ddl/schema/public/app_ads_entrys.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict DdjINtdUIvkI6MSUtZIw85jQyT9ta1VgLSKRNm5WGCnVSgH0f3cUg5AnHGcvtOO +\restrict NQT48NgjjRf213EQBb6dpElmgywrPeC4rnazwnBNWfRajZ0z7Pm6OFvKiGPj34V -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -90,5 +90,5 @@ ALTER TABLE ONLY public.app_ads_entrys -- PostgreSQL database dump complete -- -\unrestrict DdjINtdUIvkI6MSUtZIw85jQyT9ta1VgLSKRNm5WGCnVSgH0f3cUg5AnHGcvtOO +\unrestrict NQT48NgjjRf213EQBb6dpElmgywrPeC4rnazwnBNWfRajZ0z7Pm6OFvKiGPj34V diff --git a/pg-ddl/schema/public/app_ads_map.sql b/pg-ddl/schema/public/app_ads_map.sql index c96ae02b..2cefa27c 100644 --- a/pg-ddl/schema/public/app_ads_map.sql +++ b/pg-ddl/schema/public/app_ads_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict snOArbP2Fpqv8TKbKfwI9DgRmqFgXYvMOeq5WF50AcdVdarc0PBtCa16Xre3n2d +\restrict Ghz4FfObUtDpWXKhZbKlsUQEqHkD8YFxM1unJKPsR8BmHiNe7zmKcea3d8GKl0a -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_ads_map -- PostgreSQL database dump complete -- -\unrestrict snOArbP2Fpqv8TKbKfwI9DgRmqFgXYvMOeq5WF50AcdVdarc0PBtCa16Xre3n2d +\unrestrict Ghz4FfObUtDpWXKhZbKlsUQEqHkD8YFxM1unJKPsR8BmHiNe7zmKcea3d8GKl0a diff --git a/pg-ddl/schema/public/app_country_metrics_history.sql b/pg-ddl/schema/public/app_country_metrics_history.sql index f324b34f..e94cccb5 100644 --- a/pg-ddl/schema/public/app_country_metrics_history.sql +++ b/pg-ddl/schema/public/app_country_metrics_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 0yGd4SFAvRXV4w8Nt2xYgEb9wyrs1DC17np0Pk5amruAeUv38nvQTVzr2fLyYQd +\restrict fxoHAgWs6yYf31DYw20jhPnb03Wqtucxwy2NPXavenqmO9YkdxwJt4ts4SjkLdC -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.app_country_metrics_history -- PostgreSQL database dump complete -- -\unrestrict 0yGd4SFAvRXV4w8Nt2xYgEb9wyrs1DC17np0Pk5amruAeUv38nvQTVzr2fLyYQd +\unrestrict fxoHAgWs6yYf31DYw20jhPnb03Wqtucxwy2NPXavenqmO9YkdxwJt4ts4SjkLdC diff --git a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql index a80c9151..3af344ca 100644 --- a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 7kUwHZNDhDsy4vjYEFHpfbcRK4p9wpZKr70MvWzpJpud9fcIFBlLpmitCeNP1Yc +\restrict u2GkUgAndmaTPN1GlHvfax09EwnxJJbqbAo1dNbtiTeo8bnworg4Do0ueUHQVY9 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -57,5 +57,5 @@ CREATE UNIQUE INDEX app_country_metrics_latest_idx ON public.app_country_metrics -- PostgreSQL database dump complete -- -\unrestrict 7kUwHZNDhDsy4vjYEFHpfbcRK4p9wpZKr70MvWzpJpud9fcIFBlLpmitCeNP1Yc +\unrestrict u2GkUgAndmaTPN1GlHvfax09EwnxJJbqbAo1dNbtiTeo8bnworg4Do0ueUHQVY9 diff --git a/pg-ddl/schema/public/app_global_metrics_history.sql b/pg-ddl/schema/public/app_global_metrics_history.sql index 45ce79d3..84a4da40 100644 --- a/pg-ddl/schema/public/app_global_metrics_history.sql +++ b/pg-ddl/schema/public/app_global_metrics_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict wyG8YOcDNdQa89mNxOfSHDuOgU7KI2lItnTkiXWv4oyY5JihC5SwMDq0YBcDxr4 +\restrict BJkwZl7NvyqQ9PMcxE4UgpEK2oehTKMzyb6gLRWgXvJGFM6cfLo7yQpFF0EdlaU -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.app_global_metrics_history -- PostgreSQL database dump complete -- -\unrestrict wyG8YOcDNdQa89mNxOfSHDuOgU7KI2lItnTkiXWv4oyY5JihC5SwMDq0YBcDxr4 +\unrestrict BJkwZl7NvyqQ9PMcxE4UgpEK2oehTKMzyb6gLRWgXvJGFM6cfLo7yQpFF0EdlaU diff --git a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql index fe8ac0b1..9da20258 100644 --- a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict l21OU2dw4Vhg7sZlmXhQvP1c6jIxj0RqBzhWNN4wJYVzSXkFEyegDTrS1E75wJK +\restrict fE1S1VxxIfebDN5ZhWivPSLkv4vs5kOSxBfEAvJ6mASVKUuPK8PUMWcy8JT5Ffj -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX app_global_metrics_latest_idx ON public.app_global_metrics_l -- PostgreSQL database dump complete -- -\unrestrict l21OU2dw4Vhg7sZlmXhQvP1c6jIxj0RqBzhWNN4wJYVzSXkFEyegDTrS1E75wJK +\unrestrict fE1S1VxxIfebDN5ZhWivPSLkv4vs5kOSxBfEAvJ6mASVKUuPK8PUMWcy8JT5Ffj diff --git a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql index 3138dea7..fc79f890 100644 --- a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict wtUuAqBjP8rsgbtUKuPf19UPeXy1N6ipNV5I4WpbzQqxtxNuZNC6f7qLES1LDji +\restrict zCHbBzhRsrcCXnyQ7guEaDIl57lKhhdpAYSaMf0nWCtF238Ihi2VMrx0BDFewPs -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX app_global_metrics_weekly_diffs_week_start_store_app_idx ON -- PostgreSQL database dump complete -- -\unrestrict wtUuAqBjP8rsgbtUKuPf19UPeXy1N6ipNV5I4WpbzQqxtxNuZNC6f7qLES1LDji +\unrestrict zCHbBzhRsrcCXnyQ7guEaDIl57lKhhdpAYSaMf0nWCtF238Ihi2VMrx0BDFewPs diff --git a/pg-ddl/schema/public/app_keywords_extracted.sql b/pg-ddl/schema/public/app_keywords_extracted.sql index 58cae32e..13dc750b 100644 --- a/pg-ddl/schema/public/app_keywords_extracted.sql +++ b/pg-ddl/schema/public/app_keywords_extracted.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict TsO1A4FOfpwEzu1fVO4kUpbRQDRfIGHDBjPcgHjLqRmXYuAk1EUtq6uWo3TXJEN +\restrict usbK292Diuz0VsL9WF1mvnUqfpAotlH5lFSrLEPaeF8W7xiu54AXB6iRQhAHzFy -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -79,5 +79,5 @@ ALTER TABLE ONLY public.app_keywords_extracted -- PostgreSQL database dump complete -- -\unrestrict TsO1A4FOfpwEzu1fVO4kUpbRQDRfIGHDBjPcgHjLqRmXYuAk1EUtq6uWo3TXJEN +\unrestrict usbK292Diuz0VsL9WF1mvnUqfpAotlH5lFSrLEPaeF8W7xiu54AXB6iRQhAHzFy diff --git a/pg-ddl/schema/public/app_urls_map.sql b/pg-ddl/schema/public/app_urls_map.sql index 980ab62e..b31f68d6 100644 --- a/pg-ddl/schema/public/app_urls_map.sql +++ b/pg-ddl/schema/public/app_urls_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict b08ot6KVmQd8t737QTK1fmo6btHZmF4FbnCThnfdK0CRT1K0L9Mxk4aKWgoTEca +\restrict GO0pNqvkA4WtMnwHMCVrTGwKjUBCJq9GNSCWWuMC3zcNFcyU1lqSNlWznzzeO3G -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_urls_map -- PostgreSQL database dump complete -- -\unrestrict b08ot6KVmQd8t737QTK1fmo6btHZmF4FbnCThnfdK0CRT1K0L9Mxk4aKWgoTEca +\unrestrict GO0pNqvkA4WtMnwHMCVrTGwKjUBCJq9GNSCWWuMC3zcNFcyU1lqSNlWznzzeO3G diff --git a/pg-ddl/schema/public/category_mapping__matview.sql b/pg-ddl/schema/public/category_mapping__matview.sql index 13cdfca0..78ef3fc9 100644 --- a/pg-ddl/schema/public/category_mapping__matview.sql +++ b/pg-ddl/schema/public/category_mapping__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict hhKrYyXGDXhaTpsvbkczvTSghe5xCC8sdFZ2h9hjfQQfUb6GCLq5gH4l0NoeneP +\restrict ayghS4e178UzWkb8I3sIjp7JywbqdG0Fky4E7SkbrwvtpDay3IeYtGAhkFqiUr3 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -67,5 +67,5 @@ CREATE UNIQUE INDEX category_mapping_idx ON public.category_mapping USING btree -- PostgreSQL database dump complete -- -\unrestrict hhKrYyXGDXhaTpsvbkczvTSghe5xCC8sdFZ2h9hjfQQfUb6GCLq5gH4l0NoeneP +\unrestrict ayghS4e178UzWkb8I3sIjp7JywbqdG0Fky4E7SkbrwvtpDay3IeYtGAhkFqiUr3 diff --git a/pg-ddl/schema/public/countries.sql b/pg-ddl/schema/public/countries.sql index f4f1d5c3..30ef3c70 100644 --- a/pg-ddl/schema/public/countries.sql +++ b/pg-ddl/schema/public/countries.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict D1ltQ8rq9UjdmeVUzfRpbsZPk22t2ImB2Dz9yg76a6iAC2Z7NkkC33nmsHDghTi +\restrict hLWK9nGAz7QPEvgiLs6EOoIy5XXUUf0fceqgxAwCwmB3TgYPm1JtcVUK24Fznsn -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -71,5 +71,5 @@ ALTER TABLE ONLY public.countries -- PostgreSQL database dump complete -- -\unrestrict D1ltQ8rq9UjdmeVUzfRpbsZPk22t2ImB2Dz9yg76a6iAC2Z7NkkC33nmsHDghTi +\unrestrict hLWK9nGAz7QPEvgiLs6EOoIy5XXUUf0fceqgxAwCwmB3TgYPm1JtcVUK24Fznsn diff --git a/pg-ddl/schema/public/crawl_results.sql b/pg-ddl/schema/public/crawl_results.sql index 4fbb5a8d..afdf4df4 100644 --- a/pg-ddl/schema/public/crawl_results.sql +++ b/pg-ddl/schema/public/crawl_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict HGt7uGVqA7yq6Q5nF9fSMJhmdOiGA5zcMPbn28tPmU6fqP1AkWaOAIdCMoxayMF +\restrict FplWTM4Uq7BvBpUDpWex5f2kxcLVoyGbZs5hauxckPzNvvw198CSdZ4zYdSfFdy -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -61,5 +61,5 @@ ALTER TABLE ONLY public.crawl_results -- PostgreSQL database dump complete -- -\unrestrict HGt7uGVqA7yq6Q5nF9fSMJhmdOiGA5zcMPbn28tPmU6fqP1AkWaOAIdCMoxayMF +\unrestrict FplWTM4Uq7BvBpUDpWex5f2kxcLVoyGbZs5hauxckPzNvvw198CSdZ4zYdSfFdy diff --git a/pg-ddl/schema/public/crawl_scenario_country_config.sql b/pg-ddl/schema/public/crawl_scenario_country_config.sql index 381b7f1b..03062e11 100644 --- a/pg-ddl/schema/public/crawl_scenario_country_config.sql +++ b/pg-ddl/schema/public/crawl_scenario_country_config.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict gPBdDxyCVdFI0K222Fa65vjmBp6EicTYhvmmJU2gqZsAOlwz4NtzIBha9UjRnXw +\restrict XOEM1i5pTU7Afyn5zhUtKosaOjZ7ZXBiNnhHPwmfwKuF3TS8LKWcvVCrlnVCj0o -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.crawl_scenario_country_config -- PostgreSQL database dump complete -- -\unrestrict gPBdDxyCVdFI0K222Fa65vjmBp6EicTYhvmmJU2gqZsAOlwz4NtzIBha9UjRnXw +\unrestrict XOEM1i5pTU7Afyn5zhUtKosaOjZ7ZXBiNnhHPwmfwKuF3TS8LKWcvVCrlnVCj0o diff --git a/pg-ddl/schema/public/crawl_scenarios.sql b/pg-ddl/schema/public/crawl_scenarios.sql index 01a38fdd..f24269ce 100644 --- a/pg-ddl/schema/public/crawl_scenarios.sql +++ b/pg-ddl/schema/public/crawl_scenarios.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 8cEG5EZbYJF9pm3d9te3i8ssuxqgZIDpQGTHuf7m3nfCn8oruLwVhrANLTn01Eu +\restrict q7zH3FdcWm3h46xzPLzeAXzqp9KzkSyViLOAqHPpxZR4AcDs9cdYWbwSmdKdMz2 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.crawl_scenarios -- PostgreSQL database dump complete -- -\unrestrict 8cEG5EZbYJF9pm3d9te3i8ssuxqgZIDpQGTHuf7m3nfCn8oruLwVhrANLTn01Eu +\unrestrict q7zH3FdcWm3h46xzPLzeAXzqp9KzkSyViLOAqHPpxZR4AcDs9cdYWbwSmdKdMz2 diff --git a/pg-ddl/schema/public/creative_assets.sql b/pg-ddl/schema/public/creative_assets.sql index d55bd3a4..55fd5929 100644 --- a/pg-ddl/schema/public/creative_assets.sql +++ b/pg-ddl/schema/public/creative_assets.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict d6q35lACcb0ri8kDcEq2MPCjHow3muiaIZAesWkLNRMiGIycQX9bbVlMyajLM84 +\restrict SOBm3LohfmgjL4FtIJFjfLcnDPcdD4Z6NZmYwwpMdb9fMNkfBo1It3rBJY1nWrY -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -94,5 +94,5 @@ CREATE INDEX idx_creative_assets_phash ON public.creative_assets USING btree (ph -- PostgreSQL database dump complete -- -\unrestrict d6q35lACcb0ri8kDcEq2MPCjHow3muiaIZAesWkLNRMiGIycQX9bbVlMyajLM84 +\unrestrict SOBm3LohfmgjL4FtIJFjfLcnDPcdD4Z6NZmYwwpMdb9fMNkfBo1It3rBJY1nWrY diff --git a/pg-ddl/schema/public/creative_records.sql b/pg-ddl/schema/public/creative_records.sql index 633a4cf0..1811c739 100644 --- a/pg-ddl/schema/public/creative_records.sql +++ b/pg-ddl/schema/public/creative_records.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict oKPWEUJtsRlWkyOK1ZD66fJ6BDGT2NWdpZ1UlmzL0EcvMpG41CvboYaLxQnlviK +\restrict i89a7LEF2QcsWTChBhsvZrWe8H1pZtqJAFC3BskstDiBfMZzBSOezVbC0cemtdg -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -153,5 +153,5 @@ ALTER TABLE ONLY public.creative_records -- PostgreSQL database dump complete -- -\unrestrict oKPWEUJtsRlWkyOK1ZD66fJ6BDGT2NWdpZ1UlmzL0EcvMpG41CvboYaLxQnlviK +\unrestrict i89a7LEF2QcsWTChBhsvZrWe8H1pZtqJAFC3BskstDiBfMZzBSOezVbC0cemtdg diff --git a/pg-ddl/schema/public/developer_store_apps__matview.sql b/pg-ddl/schema/public/developer_store_apps__matview.sql index 1577f994..785a1f67 100644 --- a/pg-ddl/schema/public/developer_store_apps__matview.sql +++ b/pg-ddl/schema/public/developer_store_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 0ZW2Mo6YH8f1PL3MpYbJuk5EdJCUg3vEbxza3bFzMpdahuQXpu4ZhFoCeu8oROQ +\restrict 9rvItxQVzH1hxRZIRfZHUswScQUfQer1VAXfQ58BgB6Pa105i1mbAvJ79cffN4g -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -83,5 +83,5 @@ CREATE UNIQUE INDEX idx_developer_store_apps_unique ON public.developer_store_ap -- PostgreSQL database dump complete -- -\unrestrict 0ZW2Mo6YH8f1PL3MpYbJuk5EdJCUg3vEbxza3bFzMpdahuQXpu4ZhFoCeu8oROQ +\unrestrict 9rvItxQVzH1hxRZIRfZHUswScQUfQer1VAXfQ58BgB6Pa105i1mbAvJ79cffN4g diff --git a/pg-ddl/schema/public/developers.sql b/pg-ddl/schema/public/developers.sql index 337367eb..71544ef0 100644 --- a/pg-ddl/schema/public/developers.sql +++ b/pg-ddl/schema/public/developers.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 61pXnV7s2TL49JXOXDc7aJG7XYhXMn1DLJXNtLeaL2pBKiplfKQskQauPZmj8NC +\restrict tA0WQloKvoBRlroAZ8kGI58CXx6z8CKl2EuC35ry4tWM4fIvw3EQqe6f0yIGHnO -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -110,5 +110,5 @@ ALTER TABLE ONLY public.developers -- PostgreSQL database dump complete -- -\unrestrict 61pXnV7s2TL49JXOXDc7aJG7XYhXMn1DLJXNtLeaL2pBKiplfKQskQauPZmj8NC +\unrestrict tA0WQloKvoBRlroAZ8kGI58CXx6z8CKl2EuC35ry4tWM4fIvw3EQqe6f0yIGHnO diff --git a/pg-ddl/schema/public/domains.sql b/pg-ddl/schema/public/domains.sql index 8df9032a..60e91057 100644 --- a/pg-ddl/schema/public/domains.sql +++ b/pg-ddl/schema/public/domains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict iZyZKK5o7zYsIQz0paMPocEge1HgwEpjiZ3nKUqxebnp4ZCljoJK1drZRPWeRkS +\restrict JgPTiHdWlCD57VVG27prsW5lmJN8fHh4HybQtHuxzJrYR2QOif0x0DT9VKy65s2 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.domains -- PostgreSQL database dump complete -- -\unrestrict iZyZKK5o7zYsIQz0paMPocEge1HgwEpjiZ3nKUqxebnp4ZCljoJK1drZRPWeRkS +\unrestrict JgPTiHdWlCD57VVG27prsW5lmJN8fHh4HybQtHuxzJrYR2QOif0x0DT9VKy65s2 diff --git a/pg-ddl/schema/public/ip_geo_snapshots.sql b/pg-ddl/schema/public/ip_geo_snapshots.sql index 07534355..19e161ce 100644 --- a/pg-ddl/schema/public/ip_geo_snapshots.sql +++ b/pg-ddl/schema/public/ip_geo_snapshots.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 0hJJzRTZYOXRLULUpyE15spzursACYglfGwEiakcgINUmBpGSGMAU38MyATj3sH +\restrict NJMNZbbU7bz87M6xuHZsb7je2dKv3txtaceE1fXxiALjI12loKnMYlazZOM4FsS -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.ip_geo_snapshots -- PostgreSQL database dump complete -- -\unrestrict 0hJJzRTZYOXRLULUpyE15spzursACYglfGwEiakcgINUmBpGSGMAU38MyATj3sH +\unrestrict NJMNZbbU7bz87M6xuHZsb7je2dKv3txtaceE1fXxiALjI12loKnMYlazZOM4FsS diff --git a/pg-ddl/schema/public/keywords.sql b/pg-ddl/schema/public/keywords.sql index 34747216..373942b8 100644 --- a/pg-ddl/schema/public/keywords.sql +++ b/pg-ddl/schema/public/keywords.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict peAb9qi2vwn8fIUHCIU3qK8DH3VTVuY4CqscceFJSH2tvag5c61b1fYwX5Yt7U6 +\restrict zISb0uc48GVcIq7u2oNubx7gT6f2N83plzvS220Ha3VSQYv8tP4LsvmysAZDjTX -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.keywords -- PostgreSQL database dump complete -- -\unrestrict peAb9qi2vwn8fIUHCIU3qK8DH3VTVuY4CqscceFJSH2tvag5c61b1fYwX5Yt7U6 +\unrestrict zISb0uc48GVcIq7u2oNubx7gT6f2N83plzvS220Ha3VSQYv8tP4LsvmysAZDjTX diff --git a/pg-ddl/schema/public/keywords_base.sql b/pg-ddl/schema/public/keywords_base.sql index acdc351a..a25493c1 100644 --- a/pg-ddl/schema/public/keywords_base.sql +++ b/pg-ddl/schema/public/keywords_base.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1OMGfJoHUIEOL1gPGek1nZOJSNqo1RTpQpUA34XrtuNmKZ3ktKdk5TGWNLQdXjA +\restrict vHadIvvRE2BUhEtd0L6PO3ERj5Ib8AbocQgNed3duFSFlhkGgXcn9Jm5Z4bVXUV -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -38,5 +38,5 @@ ALTER TABLE public.keywords_base OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 1OMGfJoHUIEOL1gPGek1nZOJSNqo1RTpQpUA34XrtuNmKZ3ktKdk5TGWNLQdXjA +\unrestrict vHadIvvRE2BUhEtd0L6PO3ERj5Ib8AbocQgNed3duFSFlhkGgXcn9Jm5Z4bVXUV diff --git a/pg-ddl/schema/public/languages.sql b/pg-ddl/schema/public/languages.sql index dff71fb0..676371ac 100644 --- a/pg-ddl/schema/public/languages.sql +++ b/pg-ddl/schema/public/languages.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict rwGdFDYC29ogUoOutjI3dLsK3arHXhWZuc6lJZj3AUuiaT0IMk9NsYynT1wnM4G +\restrict 7nY8ujaxs3eJQnajH9oSrqvFcESxRHVbPGFfovWzVXlkG7t6IapZIDCVMpLdl1O -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.languages -- PostgreSQL database dump complete -- -\unrestrict rwGdFDYC29ogUoOutjI3dLsK3arHXhWZuc6lJZj3AUuiaT0IMk9NsYynT1wnM4G +\unrestrict 7nY8ujaxs3eJQnajH9oSrqvFcESxRHVbPGFfovWzVXlkG7t6IapZIDCVMpLdl1O diff --git a/pg-ddl/schema/public/mv_app_categories__matview.sql b/pg-ddl/schema/public/mv_app_categories__matview.sql index 1b75919a..24f87535 100644 --- a/pg-ddl/schema/public/mv_app_categories__matview.sql +++ b/pg-ddl/schema/public/mv_app_categories__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict P9KwjCwbMiEsqzvlF3TYEZxfrQDBB1sAXRNVZpebvhgJqedQ38UQOaQMKXdTALx +\restrict dfHm4PkNd6DrtCKWyxNnaRK4QrXIvld0GdPszBhyVcqxagAHi2KVKJqhfCJuQSe -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -45,5 +45,5 @@ ALTER MATERIALIZED VIEW public.mv_app_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict P9KwjCwbMiEsqzvlF3TYEZxfrQDBB1sAXRNVZpebvhgJqedQ38UQOaQMKXdTALx +\unrestrict dfHm4PkNd6DrtCKWyxNnaRK4QrXIvld0GdPszBhyVcqxagAHi2KVKJqhfCJuQSe diff --git a/pg-ddl/schema/public/pg_stat_statements__view.sql b/pg-ddl/schema/public/pg_stat_statements__view.sql index bcf8b5d8..62ebe84e 100644 --- a/pg-ddl/schema/public/pg_stat_statements__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements__view.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict YlA0XErmK19jaqRDTBSf0cDTcxTL5jlZlTd14KFfjgqIRqoGUbmelxnwVKeNQEB +\restrict fu0btWdb4gSW7K2HifcAxugjuxqIZbDSvUZqW3WUE3w7javGaENeutqLhGy75VS -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict YlA0XErmK19jaqRDTBSf0cDTcxTL5jlZlTd14KFfjgqIRqoGUbmelxnwVKeNQEB +\unrestrict fu0btWdb4gSW7K2HifcAxugjuxqIZbDSvUZqW3WUE3w7javGaENeutqLhGy75VS diff --git a/pg-ddl/schema/public/pg_stat_statements_info__view.sql b/pg-ddl/schema/public/pg_stat_statements_info__view.sql index 96af1df9..09a4925b 100644 --- a/pg-ddl/schema/public/pg_stat_statements_info__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements_info__view.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict KfEr68KdBBRvb1zkSqwcDhLkiIdm61AShtCn6PxAiXpIZkVaPdqDmadi2zHfoUg +\restrict uMt2igvgqfYMrXA1HdtqKtt2fPWIIJ6qhDjjQE9do2STemMW9IH0ZbtNRjOXcaw -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict KfEr68KdBBRvb1zkSqwcDhLkiIdm61AShtCn6PxAiXpIZkVaPdqDmadi2zHfoUg +\unrestrict uMt2igvgqfYMrXA1HdtqKtt2fPWIIJ6qhDjjQE9do2STemMW9IH0ZbtNRjOXcaw diff --git a/pg-ddl/schema/public/platforms.sql b/pg-ddl/schema/public/platforms.sql index 71d3767b..00bbb6fb 100644 --- a/pg-ddl/schema/public/platforms.sql +++ b/pg-ddl/schema/public/platforms.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 4wNedFaUTceB8lFLbsnfCQQ8FbzzKG2IjVMMkltg0ArdDuAZsUB4VNHqNuVWghs +\restrict wZcHhRG7uiJR3vb3OvWTWwObpd1LeNkOA1Y3xffxeESLpO8zwXMLA2sbY65VYTT -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.platforms -- PostgreSQL database dump complete -- -\unrestrict 4wNedFaUTceB8lFLbsnfCQQ8FbzzKG2IjVMMkltg0ArdDuAZsUB4VNHqNuVWghs +\unrestrict wZcHhRG7uiJR3vb3OvWTWwObpd1LeNkOA1Y3xffxeESLpO8zwXMLA2sbY65VYTT diff --git a/pg-ddl/schema/public/store_app_z_scores__matview.sql b/pg-ddl/schema/public/store_app_z_scores__matview.sql index abf5e545..afd154d7 100644 --- a/pg-ddl/schema/public/store_app_z_scores__matview.sql +++ b/pg-ddl/schema/public/store_app_z_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict KlJgPDd38lzUU5AxhNPT6PURvkVdeVmWewXQLZqz1hJjcXpGLTXV0MbbgManOdP +\restrict nswXf8UKM9hg2locM37BlcVBcfxl8kizDSOMicnT1qdlIRXqErQ9DlL44cP82QL -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -155,5 +155,5 @@ ALTER MATERIALIZED VIEW public.store_app_z_scores OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict KlJgPDd38lzUU5AxhNPT6PURvkVdeVmWewXQLZqz1hJjcXpGLTXV0MbbgManOdP +\unrestrict nswXf8UKM9hg2locM37BlcVBcfxl8kizDSOMicnT1qdlIRXqErQ9DlL44cP82QL diff --git a/pg-ddl/schema/public/store_app_z_scores_history.sql b/pg-ddl/schema/public/store_app_z_scores_history.sql index 31f6dcfd..2171ca31 100644 --- a/pg-ddl/schema/public/store_app_z_scores_history.sql +++ b/pg-ddl/schema/public/store_app_z_scores_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict NkAYt5bAEwwhbb2kX3CGeCgj8Jl3L9Ti8bwQTw9blf2mdAoYBjkQYhiEgJ6wIDH +\restrict G11UcIzWxFp6s9e6sbmmcs6cEuaNTn4iwqrDwNAK9fPWdW8ujXMSINTArBxQwOa -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -64,5 +64,5 @@ ALTER TABLE ONLY public.store_app_z_scores_history -- PostgreSQL database dump complete -- -\unrestrict NkAYt5bAEwwhbb2kX3CGeCgj8Jl3L9Ti8bwQTw9blf2mdAoYBjkQYhiEgJ6wIDH +\unrestrict G11UcIzWxFp6s9e6sbmmcs6cEuaNTn4iwqrDwNAK9fPWdW8ujXMSINTArBxQwOa diff --git a/pg-ddl/schema/public/store_apps.sql b/pg-ddl/schema/public/store_apps.sql index 8c7513f1..a0fd3eb9 100644 --- a/pg-ddl/schema/public/store_apps.sql +++ b/pg-ddl/schema/public/store_apps.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict oMAjdTlsae2q16O1p0DEyQohFI7W8rVMiwTxD9fkTpLUezetiChAozAUWnQjq8e +\restrict lhBzmNUsVjM1qm1Aa0ZH82r4wDf065qSoOFGpg41Z5BcIl7rjnYyHizeXsA1Vym -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -163,5 +163,5 @@ ALTER TABLE ONLY public.store_apps -- PostgreSQL database dump complete -- -\unrestrict oMAjdTlsae2q16O1p0DEyQohFI7W8rVMiwTxD9fkTpLUezetiChAozAUWnQjq8e +\unrestrict lhBzmNUsVjM1qm1Aa0ZH82r4wDf065qSoOFGpg41Z5BcIl7rjnYyHizeXsA1Vym diff --git a/pg-ddl/schema/public/store_apps_descriptions.sql b/pg-ddl/schema/public/store_apps_descriptions.sql index 82102c6c..90b7465e 100644 --- a/pg-ddl/schema/public/store_apps_descriptions.sql +++ b/pg-ddl/schema/public/store_apps_descriptions.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict HCjCbbDkRgGOmhiaszboF1AH4HD68qgUhKSonVy7SJH4aWk9XGvfLYgycHwJ4va +\restrict hyBtNttak0oAOv3YeZRZKkADmIWgDPErI7WWCIYuLSiKb9hwkOlGgQiy3uPp0WO -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.store_apps_descriptions -- PostgreSQL database dump complete -- -\unrestrict HCjCbbDkRgGOmhiaszboF1AH4HD68qgUhKSonVy7SJH4aWk9XGvfLYgycHwJ4va +\unrestrict hyBtNttak0oAOv3YeZRZKkADmIWgDPErI7WWCIYuLSiKb9hwkOlGgQiy3uPp0WO diff --git a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql index 292e291e..9cd732e9 100644 --- a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql +++ b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5LLEoliMf6Hw9AeLt1nOB7Zw7wcllzB1T0a49pv7INY2pqXCMf7HUcHSPjxh9ly +\restrict Vb0gmKjqax9XMCsXdTZeorLgRgj9A9yhkjoLdXuvySi3pegA8BLayxtabvMLiqJ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW public.store_apps_in_latest_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 5LLEoliMf6Hw9AeLt1nOB7Zw7wcllzB1T0a49pv7INY2pqXCMf7HUcHSPjxh9ly +\unrestrict Vb0gmKjqax9XMCsXdTZeorLgRgj9A9yhkjoLdXuvySi3pegA8BLayxtabvMLiqJ diff --git a/pg-ddl/schema/public/store_categories.sql b/pg-ddl/schema/public/store_categories.sql index 95e6729f..1eaa108a 100644 --- a/pg-ddl/schema/public/store_categories.sql +++ b/pg-ddl/schema/public/store_categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ApLR34CN0bhARMspNK9eKqz3wj05jvwje0OMgSOriAY5IHpTgqeIn3fevrYForg +\restrict QyLtn22A2Cm5ZPADXDO5nU2SqGXwIcc1c3G5CrHiMumCxPTdEGmBDIDztz11vxK -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_categories -- PostgreSQL database dump complete -- -\unrestrict ApLR34CN0bhARMspNK9eKqz3wj05jvwje0OMgSOriAY5IHpTgqeIn3fevrYForg +\unrestrict QyLtn22A2Cm5ZPADXDO5nU2SqGXwIcc1c3G5CrHiMumCxPTdEGmBDIDztz11vxK diff --git a/pg-ddl/schema/public/store_collections.sql b/pg-ddl/schema/public/store_collections.sql index 72ff98a6..514b2f36 100644 --- a/pg-ddl/schema/public/store_collections.sql +++ b/pg-ddl/schema/public/store_collections.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict RNF3hUfrZpzIgnBGrA7KFAaWrcYj5I8yzCesUJLFSXanOD6gr4SoNQ8q9eEIUID +\restrict Vlc5geX29PwDpY6Lr1BHDcQQm3xYtCBBoW4ZP7jQJZeq3C8bsg5zK0UDRfY9JeT -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_collections -- PostgreSQL database dump complete -- -\unrestrict RNF3hUfrZpzIgnBGrA7KFAaWrcYj5I8yzCesUJLFSXanOD6gr4SoNQ8q9eEIUID +\unrestrict Vlc5geX29PwDpY6Lr1BHDcQQm3xYtCBBoW4ZP7jQJZeq3C8bsg5zK0UDRfY9JeT diff --git a/pg-ddl/schema/public/stores.sql b/pg-ddl/schema/public/stores.sql index 66e11a00..264c0e1e 100644 --- a/pg-ddl/schema/public/stores.sql +++ b/pg-ddl/schema/public/stores.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict IH3rQS85vHK0N2UbXDK89CXhVQ6mzrSzCHFQeIZzn1DYOA5D7h7oDnfsTl0J8JC +\restrict UBMtpKJ1TT1C79AJeP7PIqSJyWTeqi9LslNThq56J7Pk9pGAjqOKDgiAa2OikdT -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -93,5 +93,5 @@ ALTER TABLE ONLY public.stores -- PostgreSQL database dump complete -- -\unrestrict IH3rQS85vHK0N2UbXDK89CXhVQ6mzrSzCHFQeIZzn1DYOA5D7h7oDnfsTl0J8JC +\unrestrict UBMtpKJ1TT1C79AJeP7PIqSJyWTeqi9LslNThq56J7Pk9pGAjqOKDgiAa2OikdT diff --git a/pg-ddl/schema/public/total_count_overview__matview.sql b/pg-ddl/schema/public/total_count_overview__matview.sql index 1a93dcaa..286d3242 100644 --- a/pg-ddl/schema/public/total_count_overview__matview.sql +++ b/pg-ddl/schema/public/total_count_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict g8bp0ZVAo8VXOCLpgY12P0C9dYHLr9dZHZGlnRP69Bli4l9egI71hCznoy1aaZY +\restrict RTC6yR3h0KYEaxeUWlMuWUhvxGUQvcFhM9yKHSHnn9xanrY1qJeiYepPgApL1Mn -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -166,5 +166,5 @@ ALTER MATERIALIZED VIEW public.total_count_overview OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict g8bp0ZVAo8VXOCLpgY12P0C9dYHLr9dZHZGlnRP69Bli4l9egI71hCznoy1aaZY +\unrestrict RTC6yR3h0KYEaxeUWlMuWUhvxGUQvcFhM9yKHSHnn9xanrY1qJeiYepPgApL1Mn diff --git a/pg-ddl/schema/public/version_code_api_scan_results.sql b/pg-ddl/schema/public/version_code_api_scan_results.sql index e0ad786d..1016e943 100644 --- a/pg-ddl/schema/public/version_code_api_scan_results.sql +++ b/pg-ddl/schema/public/version_code_api_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict MAMTumGjQXOFdyLXUQpGwaQegjCDsNoqhLDhueLTewXrqeSQDImXhAwIuQqjmxJ +\restrict tBxpv5x8qPaZznBlqU8nhZimUvm8d3bRfhJNzyUVwM2rj52lkrYpkzdXZ6rFzXr -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -87,5 +87,5 @@ ALTER TABLE ONLY public.version_code_api_scan_results -- PostgreSQL database dump complete -- -\unrestrict MAMTumGjQXOFdyLXUQpGwaQegjCDsNoqhLDhueLTewXrqeSQDImXhAwIuQqjmxJ +\unrestrict tBxpv5x8qPaZznBlqU8nhZimUvm8d3bRfhJNzyUVwM2rj52lkrYpkzdXZ6rFzXr diff --git a/pg-ddl/schema/public/version_code_sdk_scan_results.sql b/pg-ddl/schema/public/version_code_sdk_scan_results.sql index 8c0d52cd..10c255c4 100644 --- a/pg-ddl/schema/public/version_code_sdk_scan_results.sql +++ b/pg-ddl/schema/public/version_code_sdk_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 0iZg7Qjcduraw2PAlCNSNBrhZp90HnWhGFrOe499yyiMfz9QIaFihXav9cnZFC6 +\restrict JCO2J2ze0vieEuFYnSTBDOS3htkmCxrsbSerKMzxThGBulIXMjJCrKRYoWLcRCK -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.version_code_sdk_scan_results -- PostgreSQL database dump complete -- -\unrestrict 0iZg7Qjcduraw2PAlCNSNBrhZp90HnWhGFrOe499yyiMfz9QIaFihXav9cnZFC6 +\unrestrict JCO2J2ze0vieEuFYnSTBDOS3htkmCxrsbSerKMzxThGBulIXMjJCrKRYoWLcRCK diff --git a/pg-ddl/schema/public/version_codes.sql b/pg-ddl/schema/public/version_codes.sql index 9727b2f0..f92ecf6c 100644 --- a/pg-ddl/schema/public/version_codes.sql +++ b/pg-ddl/schema/public/version_codes.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qAL7BV2VGCLPejJUpLFy9N6IXedj65DtGhVWIwSlD5w8rsziEmsJZqCH9HTNDyf +\restrict 1l2zqjEQk44hWvTnBmvHPVQFObQwOwotoF3Me19zFG6WP8RumnC2mcA2p754ZWD -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -89,5 +89,5 @@ ALTER TABLE ONLY public.version_codes -- PostgreSQL database dump complete -- -\unrestrict qAL7BV2VGCLPejJUpLFy9N6IXedj65DtGhVWIwSlD5w8rsziEmsJZqCH9HTNDyf +\unrestrict 1l2zqjEQk44hWvTnBmvHPVQFObQwOwotoF3Me19zFG6WP8RumnC2mcA2p754ZWD diff --git a/pg-ddl/schema/public/version_details_map.sql b/pg-ddl/schema/public/version_details_map.sql index ec62ff76..7b43383b 100644 --- a/pg-ddl/schema/public/version_details_map.sql +++ b/pg-ddl/schema/public/version_details_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict HwRE43vxD27BOtWsh59yaMFQy2kWywbAOKIlpaB0SecojUyfEDO4kO2ZpvKvSdb +\restrict 8LzdC2FJ8oRO9yeIrCKR8SkQGiaw2ayBrukTnHhOquzpKg1PuJ6OgP2zhb09TBW -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_details_map -- PostgreSQL database dump complete -- -\unrestrict HwRE43vxD27BOtWsh59yaMFQy2kWywbAOKIlpaB0SecojUyfEDO4kO2ZpvKvSdb +\unrestrict 8LzdC2FJ8oRO9yeIrCKR8SkQGiaw2ayBrukTnHhOquzpKg1PuJ6OgP2zhb09TBW diff --git a/pg-ddl/schema/public/version_manifests.sql b/pg-ddl/schema/public/version_manifests.sql index d8599914..0b93f534 100644 --- a/pg-ddl/schema/public/version_manifests.sql +++ b/pg-ddl/schema/public/version_manifests.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict j8F8zTWutBvrNXdTDzZqf5b0Joul9RAo7CDZoCUVzwWuHxcNfIBd1oyzkmewrUc +\restrict FRfHNh1l2ZaWVCA1VqC1cbuJVrFv1JEahhh4jONdiY42DvV6vKaGBzKGtcJAYHZ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_manifests -- PostgreSQL database dump complete -- -\unrestrict j8F8zTWutBvrNXdTDzZqf5b0Joul9RAo7CDZoCUVzwWuHxcNfIBd1oyzkmewrUc +\unrestrict FRfHNh1l2ZaWVCA1VqC1cbuJVrFv1JEahhh4jONdiY42DvV6vKaGBzKGtcJAYHZ diff --git a/pg-ddl/schema/public/version_strings.sql b/pg-ddl/schema/public/version_strings.sql index 02ccdf70..a0fd0cfa 100644 --- a/pg-ddl/schema/public/version_strings.sql +++ b/pg-ddl/schema/public/version_strings.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict cUhtzVRKXza2rjkaXsrWztiRLVgY38ESgDr4VShujdYnMj7VeQVNUrMnbDDd2A7 +\restrict NQW0dnSNpDPYOaRO9dhfEOLNvseQ74pF8OHqocjc3lmolchfaMCvase78ytsFyj -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -106,5 +106,5 @@ CREATE INDEX version_strings_xml_path_trgm_idx ON public.version_strings USING g -- PostgreSQL database dump complete -- -\unrestrict cUhtzVRKXza2rjkaXsrWztiRLVgY38ESgDr4VShujdYnMj7VeQVNUrMnbDDd2A7 +\unrestrict NQW0dnSNpDPYOaRO9dhfEOLNvseQ74pF8OHqocjc3lmolchfaMCvase78ytsFyj From ab1d9d1c2930b0bc5be8509bc6a53d3bf778600e Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Fri, 6 Feb 2026 11:25:05 +0800 Subject: [PATCH 62/81] Prep Schema dump --- pg-ddl/schema/adtech/api_call_urls.sql | 4 ++-- pg-ddl/schema/adtech/categories.sql | 4 ++-- .../adtech/combined_store_apps_companies_2025_h1__matview.sql | 4 ++-- .../adtech/combined_store_apps_companies_2025_h2__matview.sql | 4 ++-- .../schema/adtech/combined_store_apps_companies__matview.sql | 4 ++-- .../adtech/combined_store_apps_parent_companies__matview.sql | 4 ++-- pg-ddl/schema/adtech/companies.sql | 4 ++-- pg-ddl/schema/adtech/company_categories__matview.sql | 4 ++-- pg-ddl/schema/adtech/company_developers.sql | 4 ++-- pg-ddl/schema/adtech/company_domain_mapping.sql | 4 ++-- pg-ddl/schema/adtech/company_mediation_adapters.sql | 4 ++-- pg-ddl/schema/adtech/company_share_change_2025__matview.sql | 4 ++-- pg-ddl/schema/adtech/company_shares_2025_common__matview.sql | 4 ++-- pg-ddl/schema/adtech/sdk_categories.sql | 4 ++-- pg-ddl/schema/adtech/sdk_mediation_patterns.sql | 4 ++-- pg-ddl/schema/adtech/sdk_packages.sql | 4 ++-- pg-ddl/schema/adtech/sdk_paths.sql | 4 ++-- pg-ddl/schema/adtech/sdks.sql | 4 ++-- .../schema/adtech/store_app_sdk_strings_2025_h1__matview.sql | 4 ++-- .../schema/adtech/store_app_sdk_strings_2025_h2__matview.sql | 4 ++-- pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql | 4 ++-- pg-ddl/schema/adtech/url_redirect_chains.sql | 4 ++-- pg-ddl/schema/adtech/urls.sql | 4 ++-- pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql | 4 ++-- pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql | 4 ++-- .../schema/frontend/adstxt_publishers_overview__matview.sql | 4 ++-- .../schema/frontend/advertiser_creative_rankings__matview.sql | 4 ++-- .../advertiser_creative_rankings_recent_month__matview.sql | 4 ++-- pg-ddl/schema/frontend/advertiser_creatives__matview.sql | 4 ++-- pg-ddl/schema/frontend/api_call_countries__matview.sql | 4 ++-- pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql | 4 ++-- pg-ddl/schema/frontend/app_keyword_ranks_daily.sql | 4 ++-- pg-ddl/schema/frontend/apps_new_monthly__matview.sql | 4 ++-- pg-ddl/schema/frontend/apps_new_weekly__matview.sql | 4 ++-- pg-ddl/schema/frontend/apps_new_yearly__matview.sql | 4 ++-- pg-ddl/schema/frontend/category_tag_stats__matview.sql | 4 ++-- pg-ddl/schema/frontend/companies_apps_overview__matview.sql | 4 ++-- pg-ddl/schema/frontend/companies_category_stats__matview.sql | 4 ++-- .../schema/frontend/companies_category_tag_stats__matview.sql | 4 ++-- .../frontend/companies_category_tag_type_stats__matview.sql | 4 ++-- .../schema/frontend/companies_creative_rankings__matview.sql | 4 ++-- .../frontend/companies_open_source_percent__matview.sql | 4 ++-- .../frontend/companies_parent_category_stats__matview.sql | 4 ++-- .../frontend/companies_parent_category_tag_stats__matview.sql | 4 ++-- pg-ddl/schema/frontend/companies_sdks_overview__matview.sql | 4 ++-- pg-ddl/schema/frontend/company_domain_country__matview.sql | 4 ++-- pg-ddl/schema/frontend/company_domains_top_apps__matview.sql | 4 ++-- pg-ddl/schema/frontend/company_parent_top_apps__matview.sql | 4 ++-- pg-ddl/schema/frontend/company_top_apps__matview.sql | 4 ++-- pg-ddl/schema/frontend/keyword_scores__matview.sql | 4 ++-- pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql | 4 ++-- .../schema/frontend/mediation_adapter_app_counts__matview.sql | 4 ++-- pg-ddl/schema/frontend/store_app_api_companies__matview.sql | 4 ++-- .../schema/frontend/store_app_ranks_best_monthly__matview.sql | 4 ++-- pg-ddl/schema/frontend/store_app_ranks_daily.sql | 4 ++-- pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql | 4 ++-- pg-ddl/schema/frontend/store_app_ranks_weekly.sql | 4 ++-- pg-ddl/schema/frontend/store_apps_overview__matview.sql | 4 ++-- pg-ddl/schema/frontend/store_apps_z_scores__matview.sql | 4 ++-- .../schema/frontend/total_categories_app_counts__matview.sql | 4 ++-- pg-ddl/schema/full_db_dump.sql | 4 ++-- pg-ddl/schema/logging/app_country_crawls.sql | 4 ++-- pg-ddl/schema/logging/app_description_keywords_extracted.sql | 4 ++-- pg-ddl/schema/logging/creative_scan_results.sql | 4 ++-- pg-ddl/schema/logging/developers_crawled_at.sql | 4 ++-- pg-ddl/schema/logging/keywords_crawled_at.sql | 4 ++-- pg-ddl/schema/logging/snapshot_pub_domains.sql | 4 ++-- pg-ddl/schema/logging/store_app_downloads.sql | 4 ++-- pg-ddl/schema/logging/store_app_no_creatives.sql | 4 ++-- pg-ddl/schema/logging/store_app_sources.sql | 4 ++-- pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql | 4 ++-- pg-ddl/schema/logging/store_apps_snapshot.sql | 4 ++-- pg-ddl/schema/logging/version_code_api_scan_results.sql | 4 ++-- pg-ddl/schema/public/ad_network_sdk_keys__matview.sql | 4 ++-- pg-ddl/schema/public/adstxt_crawl_results.sql | 4 ++-- pg-ddl/schema/public/api_calls.sql | 4 ++-- pg-ddl/schema/public/app_ads_entrys.sql | 4 ++-- pg-ddl/schema/public/app_ads_map.sql | 4 ++-- pg-ddl/schema/public/app_country_metrics_history.sql | 4 ++-- pg-ddl/schema/public/app_country_metrics_latest__matview.sql | 4 ++-- pg-ddl/schema/public/app_global_metrics_history.sql | 4 ++-- pg-ddl/schema/public/app_global_metrics_latest__matview.sql | 4 ++-- .../public/app_global_metrics_weekly_diffs__matview.sql | 4 ++-- pg-ddl/schema/public/app_keywords_extracted.sql | 4 ++-- pg-ddl/schema/public/app_urls_map.sql | 4 ++-- pg-ddl/schema/public/category_mapping__matview.sql | 4 ++-- pg-ddl/schema/public/countries.sql | 4 ++-- pg-ddl/schema/public/crawl_results.sql | 4 ++-- pg-ddl/schema/public/crawl_scenario_country_config.sql | 4 ++-- pg-ddl/schema/public/crawl_scenarios.sql | 4 ++-- pg-ddl/schema/public/creative_assets.sql | 4 ++-- pg-ddl/schema/public/creative_records.sql | 4 ++-- pg-ddl/schema/public/developer_store_apps__matview.sql | 4 ++-- pg-ddl/schema/public/developers.sql | 4 ++-- pg-ddl/schema/public/domains.sql | 4 ++-- pg-ddl/schema/public/ip_geo_snapshots.sql | 4 ++-- pg-ddl/schema/public/keywords.sql | 4 ++-- pg-ddl/schema/public/keywords_base.sql | 4 ++-- pg-ddl/schema/public/languages.sql | 4 ++-- pg-ddl/schema/public/mv_app_categories__matview.sql | 4 ++-- pg-ddl/schema/public/pg_stat_statements__view.sql | 4 ++-- pg-ddl/schema/public/pg_stat_statements_info__view.sql | 4 ++-- pg-ddl/schema/public/platforms.sql | 4 ++-- pg-ddl/schema/public/store_app_z_scores__matview.sql | 4 ++-- pg-ddl/schema/public/store_app_z_scores_history.sql | 4 ++-- pg-ddl/schema/public/store_apps.sql | 4 ++-- pg-ddl/schema/public/store_apps_descriptions.sql | 4 ++-- .../schema/public/store_apps_in_latest_rankings__matview.sql | 4 ++-- pg-ddl/schema/public/store_categories.sql | 4 ++-- pg-ddl/schema/public/store_collections.sql | 4 ++-- pg-ddl/schema/public/stores.sql | 4 ++-- pg-ddl/schema/public/total_count_overview__matview.sql | 4 ++-- pg-ddl/schema/public/version_code_api_scan_results.sql | 4 ++-- pg-ddl/schema/public/version_code_sdk_scan_results.sql | 4 ++-- pg-ddl/schema/public/version_codes.sql | 4 ++-- pg-ddl/schema/public/version_details_map.sql | 4 ++-- pg-ddl/schema/public/version_manifests.sql | 4 ++-- pg-ddl/schema/public/version_strings.sql | 4 ++-- 118 files changed, 236 insertions(+), 236 deletions(-) diff --git a/pg-ddl/schema/adtech/api_call_urls.sql b/pg-ddl/schema/adtech/api_call_urls.sql index 5ea32a49..3e5bb4f5 100644 --- a/pg-ddl/schema/adtech/api_call_urls.sql +++ b/pg-ddl/schema/adtech/api_call_urls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5ImgBjx4en8vRoKpT9RK9mpQfiRcnZm2pxuEf4I0ocPaqaYBLWrXljAQFIpaCAm +\restrict UmUo4mP1z9zqv7IwCZjdaiTYUNdARQppqr3wurxtPylIaaCD1auBaoyd7hEbjvA -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -118,5 +118,5 @@ ALTER TABLE ONLY adtech.api_call_urls -- PostgreSQL database dump complete -- -\unrestrict 5ImgBjx4en8vRoKpT9RK9mpQfiRcnZm2pxuEf4I0ocPaqaYBLWrXljAQFIpaCAm +\unrestrict UmUo4mP1z9zqv7IwCZjdaiTYUNdARQppqr3wurxtPylIaaCD1auBaoyd7hEbjvA diff --git a/pg-ddl/schema/adtech/categories.sql b/pg-ddl/schema/adtech/categories.sql index 246ebac6..151698f0 100644 --- a/pg-ddl/schema/adtech/categories.sql +++ b/pg-ddl/schema/adtech/categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict N7WXIqqYWKIxRdD0oHNiCyblnwNTDIVgcW9ip2pPAE8nXm4yslxw72qPcy6RCEk +\restrict k69V3DPP9IPgBQo7dqGmIzjkZvnmpLLgHKcVWU8OJ15C5Tk4t3RMfBZModzj7A1 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -62,5 +62,5 @@ ALTER TABLE ONLY adtech.categories -- PostgreSQL database dump complete -- -\unrestrict N7WXIqqYWKIxRdD0oHNiCyblnwNTDIVgcW9ip2pPAE8nXm4yslxw72qPcy6RCEk +\unrestrict k69V3DPP9IPgBQo7dqGmIzjkZvnmpLLgHKcVWU8OJ15C5Tk4t3RMfBZModzj7A1 diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql index 7f39a958..0202da45 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict v69KOemkzEUzZbWffXq3akvhiqxz8UxlLBYDRAt9yorGB7OasrSb84egvrCzquu +\restrict 8qzBLCAbuz5LtwtGuVGvo0HemUnHlvpFc1tH74g54xG0mNHadM2v7RCZTyoGBjX -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -124,5 +124,5 @@ ALTER MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h1 OWNER TO po -- PostgreSQL database dump complete -- -\unrestrict v69KOemkzEUzZbWffXq3akvhiqxz8UxlLBYDRAt9yorGB7OasrSb84egvrCzquu +\unrestrict 8qzBLCAbuz5LtwtGuVGvo0HemUnHlvpFc1tH74g54xG0mNHadM2v7RCZTyoGBjX diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql index 65d1e444..2d9b3080 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict LV59R2oRaoJf7qF8m78xBWuGLhZG5tLkb73fRIR0GzWjpkHjPUUsrWaxhCCfC34 +\restrict 9hheZ0eKBh3rrrlcOMdm3QfCLnirYw1mwrGBBeZu25Xw5Brm4fPER17ROVt171C -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -124,5 +124,5 @@ ALTER MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h2 OWNER TO po -- PostgreSQL database dump complete -- -\unrestrict LV59R2oRaoJf7qF8m78xBWuGLhZG5tLkb73fRIR0GzWjpkHjPUUsrWaxhCCfC34 +\unrestrict 9hheZ0eKBh3rrrlcOMdm3QfCLnirYw1mwrGBBeZu25Xw5Brm4fPER17ROVt171C diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql index 34e1ebcb..496ce046 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict hTxM14MAW2egNjdYa2N0nAbhCEfeTafZIe44eD4HgwTduhWPrsBHC1HmIaI1hZ0 +\restrict xegnZ3NcuI3LFknzKbwaxF0e9ELISSFT9Oh2Pd7B1oY69sqQIj2F4NwsSgXRa3h -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -165,5 +165,5 @@ CREATE UNIQUE INDEX combined_store_app_companies_idx ON adtech.combined_store_ap -- PostgreSQL database dump complete -- -\unrestrict hTxM14MAW2egNjdYa2N0nAbhCEfeTafZIe44eD4HgwTduhWPrsBHC1HmIaI1hZ0 +\unrestrict xegnZ3NcuI3LFknzKbwaxF0e9ELISSFT9Oh2Pd7B1oY69sqQIj2F4NwsSgXRa3h diff --git a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql index f7485ce3..d22ff58d 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict RpVw7FaGpYO3xxG2XXnDid70tSViT5gdWc2XQMmhca55N1hlPbGV7JcWsxn3q92 +\restrict GWhItbzU9mf2chvxXlDPXzjpZpeFHpB3K4qjd6ApdR3OeM6VI7tUD6XK3xQRVod -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -59,5 +59,5 @@ CREATE UNIQUE INDEX idx_combined_store_apps_parent_companies_idx ON adtech.combi -- PostgreSQL database dump complete -- -\unrestrict RpVw7FaGpYO3xxG2XXnDid70tSViT5gdWc2XQMmhca55N1hlPbGV7JcWsxn3q92 +\unrestrict GWhItbzU9mf2chvxXlDPXzjpZpeFHpB3K4qjd6ApdR3OeM6VI7tUD6XK3xQRVod diff --git a/pg-ddl/schema/adtech/companies.sql b/pg-ddl/schema/adtech/companies.sql index 6dbc5b14..9e1a390c 100644 --- a/pg-ddl/schema/adtech/companies.sql +++ b/pg-ddl/schema/adtech/companies.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Lck6qZzm2IsVLYbqSfz1aknKy57AGvhd6yxJ2DUb70HNlhIlLDGkWP5soGHko15 +\restrict 9NmOY9FjFDiPFp1ja1ARfwzy4CIIPutli17grBnake49xKMtB5Mjs8le6KHsmY1 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -98,5 +98,5 @@ ALTER TABLE ONLY adtech.companies -- PostgreSQL database dump complete -- -\unrestrict Lck6qZzm2IsVLYbqSfz1aknKy57AGvhd6yxJ2DUb70HNlhIlLDGkWP5soGHko15 +\unrestrict 9NmOY9FjFDiPFp1ja1ARfwzy4CIIPutli17grBnake49xKMtB5Mjs8le6KHsmY1 diff --git a/pg-ddl/schema/adtech/company_categories__matview.sql b/pg-ddl/schema/adtech/company_categories__matview.sql index 3202c7be..36fde88c 100644 --- a/pg-ddl/schema/adtech/company_categories__matview.sql +++ b/pg-ddl/schema/adtech/company_categories__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict e5KX4OBBo7W8Mo7iEQBa9uif9peMWOVC5xcaV6Wqsd5aJW3ERPW2mzu8rYeirqt +\restrict 0b5ISKikbMmzLt9FSfNCcxs56bCpKsUJd1i6FCBtCXcQ3xL3w7cZdV0VxocBmrA -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -42,5 +42,5 @@ ALTER MATERIALIZED VIEW adtech.company_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict e5KX4OBBo7W8Mo7iEQBa9uif9peMWOVC5xcaV6Wqsd5aJW3ERPW2mzu8rYeirqt +\unrestrict 0b5ISKikbMmzLt9FSfNCcxs56bCpKsUJd1i6FCBtCXcQ3xL3w7cZdV0VxocBmrA diff --git a/pg-ddl/schema/adtech/company_developers.sql b/pg-ddl/schema/adtech/company_developers.sql index 1ee9aec8..aacee08f 100644 --- a/pg-ddl/schema/adtech/company_developers.sql +++ b/pg-ddl/schema/adtech/company_developers.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fFhuSBZMQDFRQeDuj3KuPflaAQahs1BQljuA4VLbPufvJKmLMfEb06X8qIk4XXg +\restrict HoCXvH0rXrHCpq2nA8xWNHuk5LxZh7GBPfgiVRPv8nuaRd10hb3O436iwiZc0of -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.company_developers -- PostgreSQL database dump complete -- -\unrestrict fFhuSBZMQDFRQeDuj3KuPflaAQahs1BQljuA4VLbPufvJKmLMfEb06X8qIk4XXg +\unrestrict HoCXvH0rXrHCpq2nA8xWNHuk5LxZh7GBPfgiVRPv8nuaRd10hb3O436iwiZc0of diff --git a/pg-ddl/schema/adtech/company_domain_mapping.sql b/pg-ddl/schema/adtech/company_domain_mapping.sql index 0d77bded..d2126986 100644 --- a/pg-ddl/schema/adtech/company_domain_mapping.sql +++ b/pg-ddl/schema/adtech/company_domain_mapping.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 4NKwY4bjB9IJ9dMyQeFED1O5Cbkypstr7L9zxFQgcweH0mbbg2qHYDHz1I9Hpwh +\restrict eTmF6hfpNJkHy0T602WEEokupDL7Zvmq5rgC32ueSoeLdWi3V74OkmjdlQgMgp6 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.company_domain_mapping -- PostgreSQL database dump complete -- -\unrestrict 4NKwY4bjB9IJ9dMyQeFED1O5Cbkypstr7L9zxFQgcweH0mbbg2qHYDHz1I9Hpwh +\unrestrict eTmF6hfpNJkHy0T602WEEokupDL7Zvmq5rgC32ueSoeLdWi3V74OkmjdlQgMgp6 diff --git a/pg-ddl/schema/adtech/company_mediation_adapters.sql b/pg-ddl/schema/adtech/company_mediation_adapters.sql index 8b80f9fc..9d6ef05e 100644 --- a/pg-ddl/schema/adtech/company_mediation_adapters.sql +++ b/pg-ddl/schema/adtech/company_mediation_adapters.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict DerHeTaS3lDKFWQVWLeYYxVaAUXOLEUdk09S4eaXqjTCDZz4hngWWIujvC7jvEG +\restrict yeNAuFyXScGjEzftklgR1CEyYdr0N9SV5Xpd6bOJipDbruzTfiJVbWUW6hf1FXw -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.company_mediation_adapters -- PostgreSQL database dump complete -- -\unrestrict DerHeTaS3lDKFWQVWLeYYxVaAUXOLEUdk09S4eaXqjTCDZz4hngWWIujvC7jvEG +\unrestrict yeNAuFyXScGjEzftklgR1CEyYdr0N9SV5Xpd6bOJipDbruzTfiJVbWUW6hf1FXw diff --git a/pg-ddl/schema/adtech/company_share_change_2025__matview.sql b/pg-ddl/schema/adtech/company_share_change_2025__matview.sql index 81b67d45..4f23feac 100644 --- a/pg-ddl/schema/adtech/company_share_change_2025__matview.sql +++ b/pg-ddl/schema/adtech/company_share_change_2025__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict YcBxoIQLTFwdtbZjVHjIHmH73KfACsPw9sQP7iH4akrKSn0RGerWgoH4MFZ5dse +\restrict 34U9cvlStARwwLVbQrFumP6t6ulSwHpbhtkT7puzHNYbPMvBgku1sRpPxNZJCp8 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -110,5 +110,5 @@ ALTER MATERIALIZED VIEW adtech.company_share_change_2025 OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict YcBxoIQLTFwdtbZjVHjIHmH73KfACsPw9sQP7iH4akrKSn0RGerWgoH4MFZ5dse +\unrestrict 34U9cvlStARwwLVbQrFumP6t6ulSwHpbhtkT7puzHNYbPMvBgku1sRpPxNZJCp8 diff --git a/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql b/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql index 0485c914..86c1d99e 100644 --- a/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql +++ b/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict hZDrXs87tVT1ay1Nf38XYfg9nqZMtC4brIadniQEfnsV4nhDWJlttEirfGnyEY7 +\restrict GShBBbFFaWCJmx6rxbK24hIG8YCiekAGWGHEOebIxemOY8WsqBvvO4VnWmlAgUr -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW adtech.company_shares_2025_common OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict hZDrXs87tVT1ay1Nf38XYfg9nqZMtC4brIadniQEfnsV4nhDWJlttEirfGnyEY7 +\unrestrict GShBBbFFaWCJmx6rxbK24hIG8YCiekAGWGHEOebIxemOY8WsqBvvO4VnWmlAgUr diff --git a/pg-ddl/schema/adtech/sdk_categories.sql b/pg-ddl/schema/adtech/sdk_categories.sql index 1e35b893..b2764412 100644 --- a/pg-ddl/schema/adtech/sdk_categories.sql +++ b/pg-ddl/schema/adtech/sdk_categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict CNtLUgajjf56d1Nr6sT8zQwOzxzRTBRdXuHc36mbrxekbjydI6O9i7MtuDG0S1I +\restrict 7tejdUsvOhPtbItDnwFMi6YKnozfaMEo5NBgAUjN93EbslYABDbvQVd4vwWCS5w -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.sdk_categories -- PostgreSQL database dump complete -- -\unrestrict CNtLUgajjf56d1Nr6sT8zQwOzxzRTBRdXuHc36mbrxekbjydI6O9i7MtuDG0S1I +\unrestrict 7tejdUsvOhPtbItDnwFMi6YKnozfaMEo5NBgAUjN93EbslYABDbvQVd4vwWCS5w diff --git a/pg-ddl/schema/adtech/sdk_mediation_patterns.sql b/pg-ddl/schema/adtech/sdk_mediation_patterns.sql index fa32ac1a..9f955142 100644 --- a/pg-ddl/schema/adtech/sdk_mediation_patterns.sql +++ b/pg-ddl/schema/adtech/sdk_mediation_patterns.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 4HSTmqeXaCLymBxUoiTqnMuyw6bWYqUE7v9fVNCOx8FHZI6W9dSTpwoqKxTLtPz +\restrict RgpZuAcEIgghgTuIDUNn8WOkqDULoMMjQWuvrkKFFImkxVd1Kf2GnS4TNs8atL0 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.sdk_mediation_patterns -- PostgreSQL database dump complete -- -\unrestrict 4HSTmqeXaCLymBxUoiTqnMuyw6bWYqUE7v9fVNCOx8FHZI6W9dSTpwoqKxTLtPz +\unrestrict RgpZuAcEIgghgTuIDUNn8WOkqDULoMMjQWuvrkKFFImkxVd1Kf2GnS4TNs8atL0 diff --git a/pg-ddl/schema/adtech/sdk_packages.sql b/pg-ddl/schema/adtech/sdk_packages.sql index b8487847..744afaee 100644 --- a/pg-ddl/schema/adtech/sdk_packages.sql +++ b/pg-ddl/schema/adtech/sdk_packages.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 2Uj2g8ODUVIMDSCNzUkeIJhCul5fJzhKhPQunSS3FftKxyecI46BHehFAsmxVlp +\restrict aYpWDr39EDP69ff7Rw8jweBZBvmUAZByuezJVNh2dgBmgVbefYA3fZjwJc2qFX4 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -99,5 +99,5 @@ ALTER TABLE ONLY adtech.sdk_packages -- PostgreSQL database dump complete -- -\unrestrict 2Uj2g8ODUVIMDSCNzUkeIJhCul5fJzhKhPQunSS3FftKxyecI46BHehFAsmxVlp +\unrestrict aYpWDr39EDP69ff7Rw8jweBZBvmUAZByuezJVNh2dgBmgVbefYA3fZjwJc2qFX4 diff --git a/pg-ddl/schema/adtech/sdk_paths.sql b/pg-ddl/schema/adtech/sdk_paths.sql index 90b2d852..176b44eb 100644 --- a/pg-ddl/schema/adtech/sdk_paths.sql +++ b/pg-ddl/schema/adtech/sdk_paths.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict tx7h9iMH5KyfqgDZT6pqrNRb8Y5LxBCouBIW4tFg4hXpWP1tjftt2Gdgr8TW7Ui +\restrict 9a7BdfpY296FE94IATyPCRldqDruz912MFgcm8mNWHZW3mMz4pE0S7QXHHJyoXn -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdk_paths -- PostgreSQL database dump complete -- -\unrestrict tx7h9iMH5KyfqgDZT6pqrNRb8Y5LxBCouBIW4tFg4hXpWP1tjftt2Gdgr8TW7Ui +\unrestrict 9a7BdfpY296FE94IATyPCRldqDruz912MFgcm8mNWHZW3mMz4pE0S7QXHHJyoXn diff --git a/pg-ddl/schema/adtech/sdks.sql b/pg-ddl/schema/adtech/sdks.sql index 993d127c..ba99513e 100644 --- a/pg-ddl/schema/adtech/sdks.sql +++ b/pg-ddl/schema/adtech/sdks.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 7TfKHAiwWvO6YerTCfuFnylxT4IL2OZ5j5lhu4AYVkDsL675NemwPEyTlHtQhGD +\restrict pdKCTTrDY8MlLobmHhIG2SMMUs5dyvcw8Nue1MwJM3TojfmDTZV9T8jTp2bzQk7 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdks -- PostgreSQL database dump complete -- -\unrestrict 7TfKHAiwWvO6YerTCfuFnylxT4IL2OZ5j5lhu4AYVkDsL675NemwPEyTlHtQhGD +\unrestrict pdKCTTrDY8MlLobmHhIG2SMMUs5dyvcw8Nue1MwJM3TojfmDTZV9T8jTp2bzQk7 diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql index 1942b212..ac8a18c3 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict k4nKZJlVjGXA2rnP65dCvtmurrveub4dVdfT2UQEAa67o4l3GzBUINIaaifnC0K +\restrict POJ1y8KYjaZOfl2Qr6qrXUdCTaNqPOJ0Q2FFzYqZcQwRlek7i0BakaJX6xwgqlf -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h1 OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict k4nKZJlVjGXA2rnP65dCvtmurrveub4dVdfT2UQEAa67o4l3GzBUINIaaifnC0K +\unrestrict POJ1y8KYjaZOfl2Qr6qrXUdCTaNqPOJ0Q2FFzYqZcQwRlek7i0BakaJX6xwgqlf diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql index 168411c3..a7e05a1e 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict tvZqZspLDaIJEMEPfwh9Raoe0LPfqwaQHVh4hmTsP21GCinrivEmItwG2Sinz8l +\restrict KhhYYUCmupGU26e2U5fHBwPUUSQfKWCSlBywaBhDBd9T7RIPlTaVWTG59wg96AX -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h2 OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict tvZqZspLDaIJEMEPfwh9Raoe0LPfqwaQHVh4hmTsP21GCinrivEmItwG2Sinz8l +\unrestrict KhhYYUCmupGU26e2U5fHBwPUUSQfKWCSlBywaBhDBd9T7RIPlTaVWTG59wg96AX diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql index 699697ce..14d91bd2 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 05IYi0BrnaQc321Ei0JVAdJCmctk7LakiZMgIdvNZUhksyMSibA7CnLNm7ERNVC +\restrict YoOZ7isY2dKenx2Qg06nmyiSGhLSP963Zr4nCcTjZQS2mcXRaE89A2P1qBPdTo8 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -61,5 +61,5 @@ CREATE UNIQUE INDEX store_app_sdk_strings_idx ON adtech.store_app_sdk_strings US -- PostgreSQL database dump complete -- -\unrestrict 05IYi0BrnaQc321Ei0JVAdJCmctk7LakiZMgIdvNZUhksyMSibA7CnLNm7ERNVC +\unrestrict YoOZ7isY2dKenx2Qg06nmyiSGhLSP963Zr4nCcTjZQS2mcXRaE89A2P1qBPdTo8 diff --git a/pg-ddl/schema/adtech/url_redirect_chains.sql b/pg-ddl/schema/adtech/url_redirect_chains.sql index dee45414..1848a685 100644 --- a/pg-ddl/schema/adtech/url_redirect_chains.sql +++ b/pg-ddl/schema/adtech/url_redirect_chains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict UiJnODEJYHgV0EMKtGRSkWgBjhwy70YNwJrGtFdnuB9KidP8h9iwmwhJUQz1EBd +\restrict bX27k77Gc6c9hM5dBbeHjgdCXDL21nzLYW2VA3EF5AYpFxLDH9aSqJt8rpo1amP -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -122,5 +122,5 @@ ALTER TABLE ONLY adtech.url_redirect_chains -- PostgreSQL database dump complete -- -\unrestrict UiJnODEJYHgV0EMKtGRSkWgBjhwy70YNwJrGtFdnuB9KidP8h9iwmwhJUQz1EBd +\unrestrict bX27k77Gc6c9hM5dBbeHjgdCXDL21nzLYW2VA3EF5AYpFxLDH9aSqJt8rpo1amP diff --git a/pg-ddl/schema/adtech/urls.sql b/pg-ddl/schema/adtech/urls.sql index 5b7a3bbc..51d0678a 100644 --- a/pg-ddl/schema/adtech/urls.sql +++ b/pg-ddl/schema/adtech/urls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict e7ayOpxtnkLdkfWYg9uHbSbM9sdLlqQq14B9xG6Mlrj6zpG67F8RkxN2l6A1q25 +\restrict daDb9zHScvRNnCXGBB8YEEK265hc88LcORIOsIlEPCM3hdEkeYyF3Qlz2LcZL1X -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -111,5 +111,5 @@ ALTER TABLE ONLY adtech.urls -- PostgreSQL database dump complete -- -\unrestrict e7ayOpxtnkLdkfWYg9uHbSbM9sdLlqQq14B9xG6Mlrj6zpG67F8RkxN2l6A1q25 +\unrestrict daDb9zHScvRNnCXGBB8YEEK265hc88LcORIOsIlEPCM3hdEkeYyF3Qlz2LcZL1X diff --git a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql index e6d8f735..43d096ef 100644 --- a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict XWdZ3NwRyDe8dWqFkQ3urIY28Ff1KlllFbQZ96AcpjbBa25ppghnc8zkxChcjYF +\restrict fag6Wb4A9pQQjdQDN7O4pKe8aB8Gq3obAnlQZqP6R2xdQZVcxQLoAshOredMIcO -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX adstxt_ad_domain_overview_unique_idx ON frontend.adstxt_ad_d -- PostgreSQL database dump complete -- -\unrestrict XWdZ3NwRyDe8dWqFkQ3urIY28Ff1KlllFbQZ96AcpjbBa25ppghnc8zkxChcjYF +\unrestrict fag6Wb4A9pQQjdQDN7O4pKe8aB8Gq3obAnlQZqP6R2xdQZVcxQLoAshOredMIcO diff --git a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql index 1a9f0dfe..8de581e3 100644 --- a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict yliGCpdPivcsrqmOEPrWV67L6nuhonMli2eKzkkP1W6xXj0Rfvdf0fO4DObSLNO +\restrict 16z9nqAA4FoYknjrSVsnrWpEIH8esI5DyUQW3xWXbgVrULFzmZ2suwDuEBH46VD -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -81,5 +81,5 @@ CREATE UNIQUE INDEX adstxt_entries_store_apps_unique_idx ON frontend.adstxt_entr -- PostgreSQL database dump complete -- -\unrestrict yliGCpdPivcsrqmOEPrWV67L6nuhonMli2eKzkkP1W6xXj0Rfvdf0fO4DObSLNO +\unrestrict 16z9nqAA4FoYknjrSVsnrWpEIH8esI5DyUQW3xWXbgVrULFzmZ2suwDuEBH46VD diff --git a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql index 4f84284e..ba064b9a 100644 --- a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict cDtG3U4dFEtpYQMSJb1yRjmEibhFP6avBH0HfDxS1qkigqs8x7ULHkG9kJKoWJT +\restrict ZwugeoWQ46lKEWdAUWB5pjkMAZEazWHyR8bu6PhHtN2p6C96g73eRWCVeHu78kf -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -74,5 +74,5 @@ CREATE UNIQUE INDEX adstxt_publishers_overview_ad_domain_unique_idx ON frontend. -- PostgreSQL database dump complete -- -\unrestrict cDtG3U4dFEtpYQMSJb1yRjmEibhFP6avBH0HfDxS1qkigqs8x7ULHkG9kJKoWJT +\unrestrict ZwugeoWQ46lKEWdAUWB5pjkMAZEazWHyR8bu6PhHtN2p6C96g73eRWCVeHu78kf diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql index 0ddbda57..a470c1ed 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict KLOO3vW2Qk9R0ky0fShzb7FGELp8LPFucsRvZlm2gI8wF7eox2K7vpdL308NCu1 +\restrict QEx7gZaQskYiSwMphVHvwUgFPRXc7VdTvQvX79wE46sbppmFVTJ1mkrddjKPg4x -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -107,5 +107,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict KLOO3vW2Qk9R0ky0fShzb7FGELp8LPFucsRvZlm2gI8wF7eox2K7vpdL308NCu1 +\unrestrict QEx7gZaQskYiSwMphVHvwUgFPRXc7VdTvQvX79wE46sbppmFVTJ1mkrddjKPg4x diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql index 5e5efc62..5ad569eb 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 8AG1Ppad8Eo1G7TvnBKgkC8HQaGbbQB2Xs5jHS5CN4FA5kjFevkupGSdWX74CwX +\restrict jYpXy0t1XDRKT9dtpiUuex4ayJWa4c9659wNGJRalRMa8bPc5d5yv2KnQ4FkDzd -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -114,5 +114,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings_recent_month OWNER -- PostgreSQL database dump complete -- -\unrestrict 8AG1Ppad8Eo1G7TvnBKgkC8HQaGbbQB2Xs5jHS5CN4FA5kjFevkupGSdWX74CwX +\unrestrict jYpXy0t1XDRKT9dtpiUuex4ayJWa4c9659wNGJRalRMa8bPc5d5yv2KnQ4FkDzd diff --git a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql index c3285dbb..6a12c0b3 100644 --- a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict CiB6aJyc7ez3uqqaJfN8zVgdRKeXYe8GVHwr9iWwoWgkre2ZQwgY8vrf16HRmQk +\restrict ixzgatL2Cng2I8vDVS1uWbd6V8GjuKMAdngQa5tfLdAYtNfyMKtukbXe1z6oTiD -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict CiB6aJyc7ez3uqqaJfN8zVgdRKeXYe8GVHwr9iWwoWgkre2ZQwgY8vrf16HRmQk +\unrestrict ixzgatL2Cng2I8vDVS1uWbd6V8GjuKMAdngQa5tfLdAYtNfyMKtukbXe1z6oTiD diff --git a/pg-ddl/schema/frontend/api_call_countries__matview.sql b/pg-ddl/schema/frontend/api_call_countries__matview.sql index d818c458..4c6338c4 100644 --- a/pg-ddl/schema/frontend/api_call_countries__matview.sql +++ b/pg-ddl/schema/frontend/api_call_countries__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 34QsQyEisj7NwJtenYOqSTpRunzK5LwkYGucewDk3EddQBN8NVwYevVs6zkMVQN +\restrict aMyrTsW6NgyD4X2L8WGVAtXAgxbNHbxbH9VFfiBYkci11qTcfyk8ArL24iwnsf5 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -87,5 +87,5 @@ CREATE UNIQUE INDEX api_call_countries_unique ON frontend.api_call_countries USI -- PostgreSQL database dump complete -- -\unrestrict 34QsQyEisj7NwJtenYOqSTpRunzK5LwkYGucewDk3EddQBN8NVwYevVs6zkMVQN +\unrestrict aMyrTsW6NgyD4X2L8WGVAtXAgxbNHbxbH9VFfiBYkci11qTcfyk8ArL24iwnsf5 diff --git a/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql index 0b3647c7..d2093680 100644 --- a/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql +++ b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict VMdkLGJs2W7Eesz0LvMTDKsSJm5ey96J60ygnc4c8VZsr8FAKYecuytHMAnbcai +\restrict cDnsoaaayr4Bbu4epCEI0u90ZCRrlTfgMhR4BXImF36ltRLAm1bip5vN3epjKqE -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -72,5 +72,5 @@ ALTER MATERIALIZED VIEW frontend.app_keyword_rank_stats OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict VMdkLGJs2W7Eesz0LvMTDKsSJm5ey96J60ygnc4c8VZsr8FAKYecuytHMAnbcai +\unrestrict cDnsoaaayr4Bbu4epCEI0u90ZCRrlTfgMhR4BXImF36ltRLAm1bip5vN3epjKqE diff --git a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql index a4c4de4f..5a8feebd 100644 --- a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql +++ b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict lC5JOE5L7NRLBEbHrKAwAUOij74caotQjZIYiYh1BNLpigGOuHZdYKByzJhrUDt +\restrict ZHjSJm3H746GjGfTPo8SsGYw8EFlaQoVO5MoIOueurbbDoGoOKzAqX2bVKmnm7Q -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -104,5 +104,5 @@ ALTER TABLE ONLY frontend.app_keyword_ranks_daily -- PostgreSQL database dump complete -- -\unrestrict lC5JOE5L7NRLBEbHrKAwAUOij74caotQjZIYiYh1BNLpigGOuHZdYKByzJhrUDt +\unrestrict ZHjSJm3H746GjGfTPo8SsGYw8EFlaQoVO5MoIOueurbbDoGoOKzAqX2bVKmnm7Q diff --git a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql index f4e04947..3bd539d7 100644 --- a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qnlCtPRxpTpROT3JYy18uLKUonh1cznPEbQehlkntD7xfddypgdhFdsqDKMXvPy +\restrict Q46cdJfD0eIIggndfBvlWbpyZhR5Rn6dOkwTbgXnbQIrdx3JfTZyX09hpfiQ4CQ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -116,5 +116,5 @@ CREATE UNIQUE INDEX idx_apps_new_monthly ON frontend.apps_new_monthly USING btre -- PostgreSQL database dump complete -- -\unrestrict qnlCtPRxpTpROT3JYy18uLKUonh1cznPEbQehlkntD7xfddypgdhFdsqDKMXvPy +\unrestrict Q46cdJfD0eIIggndfBvlWbpyZhR5Rn6dOkwTbgXnbQIrdx3JfTZyX09hpfiQ4CQ diff --git a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql index e6d8195b..76656e45 100644 --- a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1Ichnu339lmboR2IUTNEA27XnIqwwL0LhypdddfZIfDKpnQTJXYaLKZ4S5IYhJb +\restrict CefuOttwDedaaR8JrPEdBqhAnlSQQfof9NmzAYjOHx8WUht9Eelwo5z0vdveoe4 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -123,5 +123,5 @@ CREATE UNIQUE INDEX idx_apps_new_weekly_f ON frontend.apps_new_weekly USING btre -- PostgreSQL database dump complete -- -\unrestrict 1Ichnu339lmboR2IUTNEA27XnIqwwL0LhypdddfZIfDKpnQTJXYaLKZ4S5IYhJb +\unrestrict CefuOttwDedaaR8JrPEdBqhAnlSQQfof9NmzAYjOHx8WUht9Eelwo5z0vdveoe4 diff --git a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql index e3a802d7..ae02bb3d 100644 --- a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qJ9AfS9swUuYZnuvgbzYqCuVgSaf3xOjLBMvbWEA5m2GkRuy45FmyOqywr7nVip +\restrict mWzWeKFawubFA0hXGLMTFpXo1CJc3zmSCBiOrclm4UPARSOJgsFx6QjNscaDYQA -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -117,5 +117,5 @@ CREATE UNIQUE INDEX idx_apps_new_yearly ON frontend.apps_new_yearly USING btree -- PostgreSQL database dump complete -- -\unrestrict qJ9AfS9swUuYZnuvgbzYqCuVgSaf3xOjLBMvbWEA5m2GkRuy45FmyOqywr7nVip +\unrestrict mWzWeKFawubFA0hXGLMTFpXo1CJc3zmSCBiOrclm4UPARSOJgsFx6QjNscaDYQA diff --git a/pg-ddl/schema/frontend/category_tag_stats__matview.sql b/pg-ddl/schema/frontend/category_tag_stats__matview.sql index 9e030798..d1c8d0e6 100644 --- a/pg-ddl/schema/frontend/category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fxq86e8Vi8B8WWwOrd1sjupIRGbRkPe8f7eG4RKOcKyCByecEbyRGuuYM5xMV0f +\restrict y3ZmnfcvTCdxyMH9h4vCe8XiiMzYQtXL43WWxluPt3oDgfrIRiTq49d94aKnV1n -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -74,5 +74,5 @@ CREATE UNIQUE INDEX idx_category_tag_stats ON frontend.category_tag_stats USING -- PostgreSQL database dump complete -- -\unrestrict fxq86e8Vi8B8WWwOrd1sjupIRGbRkPe8f7eG4RKOcKyCByecEbyRGuuYM5xMV0f +\unrestrict y3ZmnfcvTCdxyMH9h4vCe8XiiMzYQtXL43WWxluPt3oDgfrIRiTq49d94aKnV1n diff --git a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql index a076df8c..f30b0c03 100644 --- a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fSMNTdTduoBQ5Qk71Wu5RZVUFrKxF1bSsN3z6JuJW6dmRbsLD4SCDhB7OPvzUZa +\restrict EUwPa9w6L2WfBhiKAGnjbSCbgkOnZYUS3W19VXhb1kd0lf9M9UXVjROj9igTR2w -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -69,5 +69,5 @@ CREATE UNIQUE INDEX companies_apps_overview_unique_idx ON frontend.companies_app -- PostgreSQL database dump complete -- -\unrestrict fSMNTdTduoBQ5Qk71Wu5RZVUFrKxF1bSsN3z6JuJW6dmRbsLD4SCDhB7OPvzUZa +\unrestrict EUwPa9w6L2WfBhiKAGnjbSCbgkOnZYUS3W19VXhb1kd0lf9M9UXVjROj9igTR2w diff --git a/pg-ddl/schema/frontend/companies_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_stats__matview.sql index b7d6e3ae..ed0e1dbc 100644 --- a/pg-ddl/schema/frontend/companies_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict EviQZVghNbZo2OJtXDkXEVYWkMOGuZE2kbItDMmUkYfAK7dzcVpIu1ToNrqvVCt +\restrict R0ZHGyY7XNgXlVeaLHL0HyX0lWUUtswiBRheflBhG4bpjyBQl9sije9iValWUKH -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -82,5 +82,5 @@ CREATE INDEX companies_category_stats_query_idx ON frontend.companies_category_s -- PostgreSQL database dump complete -- -\unrestrict EviQZVghNbZo2OJtXDkXEVYWkMOGuZE2kbItDMmUkYfAK7dzcVpIu1ToNrqvVCt +\unrestrict R0ZHGyY7XNgXlVeaLHL0HyX0lWUUtswiBRheflBhG4bpjyBQl9sije9iValWUKH diff --git a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql index 07de1ea7..54badac0 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1ukYlHSSZOUEP8FxQEE19VXtGfpBmXChJ1PzBnSETxW2ke0ab3PdUBgRaZfWFmc +\restrict BiL4pdpTciviaUJCdV40CQZRWy5pi8p5BYKZYoOBJo4SUz6VKFV0Z5zUK6mY8C5 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -86,5 +86,5 @@ CREATE UNIQUE INDEX companies_category_tag_stats_idx ON frontend.companies_categ -- PostgreSQL database dump complete -- -\unrestrict 1ukYlHSSZOUEP8FxQEE19VXtGfpBmXChJ1PzBnSETxW2ke0ab3PdUBgRaZfWFmc +\unrestrict BiL4pdpTciviaUJCdV40CQZRWy5pi8p5BYKZYoOBJo4SUz6VKFV0Z5zUK6mY8C5 diff --git a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql index fe1f20f5..cdb01387 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict b1ttbPFZXMG8nIliCUxvtljeGDzTWGrRgKzOsVZ6VU5I4qxhrpbEMZ34CI4pBUz +\restrict tGYjYA1ZLarS740jjY8C3MHq9cOpWMEOWcTtpU3wriXUQRjoc4sZHQ477YGcSFc -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -129,5 +129,5 @@ ALTER MATERIALIZED VIEW frontend.companies_category_tag_type_stats OWNER TO post -- PostgreSQL database dump complete -- -\unrestrict b1ttbPFZXMG8nIliCUxvtljeGDzTWGrRgKzOsVZ6VU5I4qxhrpbEMZ34CI4pBUz +\unrestrict tGYjYA1ZLarS740jjY8C3MHq9cOpWMEOWcTtpU3wriXUQRjoc4sZHQ477YGcSFc diff --git a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql index 5e562b6a..266e4412 100644 --- a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict TrRSvNxcfLWcaIE5Obd8Zd7cFGubTe72Wn6OynfSQN9RjpEiWJuW1dHTLbJfsp1 +\restrict gQ3jSXqT1fAjMdpn4y8bx7DEDg6YxwGKQVm2sBgPOQSccv9VpMHAAaZu91e27s6 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -130,5 +130,5 @@ ALTER MATERIALIZED VIEW frontend.companies_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict TrRSvNxcfLWcaIE5Obd8Zd7cFGubTe72Wn6OynfSQN9RjpEiWJuW1dHTLbJfsp1 +\unrestrict gQ3jSXqT1fAjMdpn4y8bx7DEDg6YxwGKQVm2sBgPOQSccv9VpMHAAaZu91e27s6 diff --git a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql index 25e08cce..7d6eed62 100644 --- a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql +++ b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict k0qeDdGjg3X2Pd9BdDox4lGr8ZB3J4A2lesw6jWvbFMe9WNRMxJ6pENtymt4OFt +\restrict 7fgNivDA52UZd1FyyEnUCIG3WrSm5TztUxBbz6UuafsDJdQ0hcWyv6mBQUNgoek -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -54,5 +54,5 @@ CREATE UNIQUE INDEX companies_open_source_percent_unique ON frontend.companies_o -- PostgreSQL database dump complete -- -\unrestrict k0qeDdGjg3X2Pd9BdDox4lGr8ZB3J4A2lesw6jWvbFMe9WNRMxJ6pENtymt4OFt +\unrestrict 7fgNivDA52UZd1FyyEnUCIG3WrSm5TztUxBbz6UuafsDJdQ0hcWyv6mBQUNgoek diff --git a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql index eef33730..98e26642 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict OvAiSgjEW8YxWaXRlNaSasrMWqk7NCFtKhSR8Egt0T4E8xrruVKRrn3nt9Fu4pR +\restrict XZ7AjOuTNb6rI5jRt7tPXgMmQWPtHcGq9M3jMLNGoDYdMMKUJQ1f0CJQtXB2QOy -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -87,5 +87,5 @@ CREATE INDEX companies_parent_category_stats_query_idx ON frontend.companies_par -- PostgreSQL database dump complete -- -\unrestrict OvAiSgjEW8YxWaXRlNaSasrMWqk7NCFtKhSR8Egt0T4E8xrruVKRrn3nt9Fu4pR +\unrestrict XZ7AjOuTNb6rI5jRt7tPXgMmQWPtHcGq9M3jMLNGoDYdMMKUJQ1f0CJQtXB2QOy diff --git a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql index 4f65bd0c..ce5921b2 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict hLeWbWpZhgaUysOHQB7moGcaseYf1WWnOwmPHvuovuQHwrZgchCjKIHxFjiBzoq +\restrict 73h1XhjJgtT0j7v5p1zildOCSU3CHKtW8oe0znWVcbiMcA0FMO73xlf590ubYRV -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -90,5 +90,5 @@ CREATE INDEX companies_parent_category_tag_stats_query_idx ON frontend.companies -- PostgreSQL database dump complete -- -\unrestrict hLeWbWpZhgaUysOHQB7moGcaseYf1WWnOwmPHvuovuQHwrZgchCjKIHxFjiBzoq +\unrestrict 73h1XhjJgtT0j7v5p1zildOCSU3CHKtW8oe0znWVcbiMcA0FMO73xlf590ubYRV diff --git a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql index 46b3a3e6..61b7fd61 100644 --- a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict aJ99jkvhvyCIHgaA8t96QGxCBKeCdevTTiocBe7CkE6AxNAhbJaKOHfpVMnoI4Y +\restrict hYQXhIPI1KCInWwrwgnjijjopmV3QXP89sAyNfxSnpQTM0yTyTKESXtEAMf8XcX -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX companies_sdks_overview_unique_idx ON frontend.companies_sdk -- PostgreSQL database dump complete -- -\unrestrict aJ99jkvhvyCIHgaA8t96QGxCBKeCdevTTiocBe7CkE6AxNAhbJaKOHfpVMnoI4Y +\unrestrict hYQXhIPI1KCInWwrwgnjijjopmV3QXP89sAyNfxSnpQTM0yTyTKESXtEAMf8XcX diff --git a/pg-ddl/schema/frontend/company_domain_country__matview.sql b/pg-ddl/schema/frontend/company_domain_country__matview.sql index e1b4409d..2e3ee502 100644 --- a/pg-ddl/schema/frontend/company_domain_country__matview.sql +++ b/pg-ddl/schema/frontend/company_domain_country__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict h5eHjHF08aY02yv1tLsowpcUpGNiFSAzPV6OxlZ4gfrwOG3kMgB5VYNufDJw6U9 +\restrict X9eJlz9TGPqDaCjws4QL1HACTacnjRl6Pu4quf2e2RYNxUzfOyy9ZfOPsnledIH -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -74,5 +74,5 @@ ALTER MATERIALIZED VIEW frontend.company_domain_country OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict h5eHjHF08aY02yv1tLsowpcUpGNiFSAzPV6OxlZ4gfrwOG3kMgB5VYNufDJw6U9 +\unrestrict X9eJlz9TGPqDaCjws4QL1HACTacnjRl6Pu4quf2e2RYNxUzfOyy9ZfOPsnledIH diff --git a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql index db3c748d..4f47c4b0 100644 --- a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict LMydoWiLbFjFsT9Y35Xg7NRDtKKbAmjtuc54AcAalbnERBbtbRtvX6VYOmjHMDX +\restrict CcN1pTh0NvlgsEzep5KMKTI2MKqWeiXlDqbZE614BMEBezVb43gs6Evkq4EnzDX -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -115,5 +115,5 @@ CREATE UNIQUE INDEX idx_unique_company_domains_top_apps ON frontend.company_doma -- PostgreSQL database dump complete -- -\unrestrict LMydoWiLbFjFsT9Y35Xg7NRDtKKbAmjtuc54AcAalbnERBbtbRtvX6VYOmjHMDX +\unrestrict CcN1pTh0NvlgsEzep5KMKTI2MKqWeiXlDqbZE614BMEBezVb43gs6Evkq4EnzDX diff --git a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql index 427aa58a..08e4ff57 100644 --- a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 4RiQSL6NqwJzai7m4eVyEocDNAcfvFvgUcfPkc1RNH5jhlA90b80hKPcG1voXoP +\restrict bleZdPsX8G6TD1roC5X4yBKSztAzXolj7iYQ6OpUy8dFcONsBQHJMuzyUFK3hrE -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -111,5 +111,5 @@ CREATE UNIQUE INDEX idx_company_parent_top_apps_unique ON frontend.company_paren -- PostgreSQL database dump complete -- -\unrestrict 4RiQSL6NqwJzai7m4eVyEocDNAcfvFvgUcfPkc1RNH5jhlA90b80hKPcG1voXoP +\unrestrict bleZdPsX8G6TD1roC5X4yBKSztAzXolj7iYQ6OpUy8dFcONsBQHJMuzyUFK3hrE diff --git a/pg-ddl/schema/frontend/company_top_apps__matview.sql b/pg-ddl/schema/frontend/company_top_apps__matview.sql index 740945d8..14400dee 100644 --- a/pg-ddl/schema/frontend/company_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict z9Adqsf2ABBOa8cqg0ZptuWgY2rnVpZftZpOuganvB4eUeTv6wauqA340oYUF59 +\restrict Fqnipgpngj6nmf3MpEwqMl2j2tcKnRTG2STP003feAKGm1uNvkQItscbrVi1KtZ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -118,5 +118,5 @@ CREATE UNIQUE INDEX idx_unique_company_top_apps ON frontend.company_top_apps USI -- PostgreSQL database dump complete -- -\unrestrict z9Adqsf2ABBOa8cqg0ZptuWgY2rnVpZftZpOuganvB4eUeTv6wauqA340oYUF59 +\unrestrict Fqnipgpngj6nmf3MpEwqMl2j2tcKnRTG2STP003feAKGm1uNvkQItscbrVi1KtZ diff --git a/pg-ddl/schema/frontend/keyword_scores__matview.sql b/pg-ddl/schema/frontend/keyword_scores__matview.sql index 95dc9741..f8243c7a 100644 --- a/pg-ddl/schema/frontend/keyword_scores__matview.sql +++ b/pg-ddl/schema/frontend/keyword_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict gWs0laJ1TunqqiUF2cFw0TP2TldAHozbi4mfL8mu6GyHNUYkYacBtZOd6BtafL8 +\restrict NsSQkMcc74bAx7RGuOxtOtz1ttybhLfVULVe5LEJdZHu5w5BRZdjKu5pU7hjJ8D -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -144,5 +144,5 @@ CREATE UNIQUE INDEX keyword_scores_store_keyword_id_idx ON frontend.keyword_scor -- PostgreSQL database dump complete -- -\unrestrict gWs0laJ1TunqqiUF2cFw0TP2TldAHozbi4mfL8mu6GyHNUYkYacBtZOd6BtafL8 +\unrestrict NsSQkMcc74bAx7RGuOxtOtz1ttybhLfVULVe5LEJdZHu5w5BRZdjKu5pU7hjJ8D diff --git a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql index 0504b880..92ce3a3b 100644 --- a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql +++ b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict bFbB1Wp1MfqEJrbHc0DNKFJzEHNWEvYwJpnYmuPMdqQsPrfGEOk6n6PeDjU40xz +\restrict 7BmCnHEcM1wvQfPW9bMjofHgQpZkC0T87zA0eLsqjtkgCPKKEa20eULzFasXugX -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -77,5 +77,5 @@ CREATE UNIQUE INDEX latest_sdk_scanned_apps_unique_index ON frontend.latest_sdk_ -- PostgreSQL database dump complete -- -\unrestrict bFbB1Wp1MfqEJrbHc0DNKFJzEHNWEvYwJpnYmuPMdqQsPrfGEOk6n6PeDjU40xz +\unrestrict 7BmCnHEcM1wvQfPW9bMjofHgQpZkC0T87zA0eLsqjtkgCPKKEa20eULzFasXugX diff --git a/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql b/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql index 37bc69d5..5e447d8a 100644 --- a/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql +++ b/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict LXCucCEnvvLUESRjwOziTBoDfKmD0kJ1tlzzhPkMx1hbJBql81OA8YGpB8qJci4 +\restrict mbtnaIAMusKckRupWnhB4xOif0ilMG0uXXLxTDx5puDgnyX3UXnBpJxbHsb4gWz -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER MATERIALIZED VIEW frontend.mediation_adapter_app_counts OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict LXCucCEnvvLUESRjwOziTBoDfKmD0kJ1tlzzhPkMx1hbJBql81OA8YGpB8qJci4 +\unrestrict mbtnaIAMusKckRupWnhB4xOif0ilMG0uXXLxTDx5puDgnyX3UXnBpJxbHsb4gWz diff --git a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql index c32f7d59..5c2ef320 100644 --- a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql +++ b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict v3eAz46bRqhgOwqhf3Hy9Gd02YShIMx49KpcYX7a6jeA416cTUwlOpSjMT3H5wO +\restrict q0WxVBuiu1qaeZSVznEF1hVuMzMsSrCsEQjFYPHFqKKIyIwwzjXa3aIwtoFeSmr -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -61,5 +61,5 @@ ALTER MATERIALIZED VIEW frontend.store_app_api_companies OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict v3eAz46bRqhgOwqhf3Hy9Gd02YShIMx49KpcYX7a6jeA416cTUwlOpSjMT3H5wO +\unrestrict q0WxVBuiu1qaeZSVznEF1hVuMzMsSrCsEQjFYPHFqKKIyIwwzjXa3aIwtoFeSmr diff --git a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql index 435b081e..567690ff 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict huKgYTTlZKfQSLvbts2SbEVvBFGjXcX4LOLCNgoHrzYnNpYUMfWV2Ph6AGQXubz +\restrict MHihmzmR5DPmFm9Z48yoXYFO2G3qLupkzd34CMM9c4ghkaStRdaC20OT50P2xcv -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -71,5 +71,5 @@ CREATE UNIQUE INDEX store_app_ranks_best_monthly_uidx ON frontend.store_app_rank -- PostgreSQL database dump complete -- -\unrestrict huKgYTTlZKfQSLvbts2SbEVvBFGjXcX4LOLCNgoHrzYnNpYUMfWV2Ph6AGQXubz +\unrestrict MHihmzmR5DPmFm9Z48yoXYFO2G3qLupkzd34CMM9c4ghkaStRdaC20OT50P2xcv diff --git a/pg-ddl/schema/frontend/store_app_ranks_daily.sql b/pg-ddl/schema/frontend/store_app_ranks_daily.sql index 77106b2e..dcd40701 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_daily.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_daily.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict sQctJ5fYoHRdXUnS19FlW6fXutugqMc5PFqLFuM5fzwnGnEeiOIeReUWSBhLNBf +\restrict SggHufydAntkutXvpjAjE8Ys0BpWQQ7SZ1pHL9MixrGedavREwVfhVfHuv0BzTa -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -91,5 +91,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_daily -- PostgreSQL database dump complete -- -\unrestrict sQctJ5fYoHRdXUnS19FlW6fXutugqMc5PFqLFuM5fzwnGnEeiOIeReUWSBhLNBf +\unrestrict SggHufydAntkutXvpjAjE8Ys0BpWQQ7SZ1pHL9MixrGedavREwVfhVfHuv0BzTa diff --git a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql index 0e69b4ed..56d431bc 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict F0qbnmYyZWUnEEIuXwOzc3bTrtXrhYA6Qoakb1qWgLf5U9QqyyEAlw0F8lPukWU +\restrict 7ZZbn5k8htulDwGsytdzH1EQt73Q4zs3ncMzNDhYrECjKX9GRDScpcfJ5GDGSSc -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -73,5 +73,5 @@ CREATE UNIQUE INDEX idx_store_app_ranks_latest_filter_sort ON frontend.store_app -- PostgreSQL database dump complete -- -\unrestrict F0qbnmYyZWUnEEIuXwOzc3bTrtXrhYA6Qoakb1qWgLf5U9QqyyEAlw0F8lPukWU +\unrestrict 7ZZbn5k8htulDwGsytdzH1EQt73Q4zs3ncMzNDhYrECjKX9GRDScpcfJ5GDGSSc diff --git a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql index c2c1fe8f..c601738c 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict hcoYdH3x3WmWNCODRr8BLmH96CDqquEC7nYUo6wEJaYPxWTQCgsbAzuaNGymwTI +\restrict caSEoXrC7biCuAKN2H9QsHKmg4XdWP6FeVPOBolCkaJcPnBVVfmPXsZqZv6bH51 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -98,5 +98,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_weekly -- PostgreSQL database dump complete -- -\unrestrict hcoYdH3x3WmWNCODRr8BLmH96CDqquEC7nYUo6wEJaYPxWTQCgsbAzuaNGymwTI +\unrestrict caSEoXrC7biCuAKN2H9QsHKmg4XdWP6FeVPOBolCkaJcPnBVVfmPXsZqZv6bH51 diff --git a/pg-ddl/schema/frontend/store_apps_overview__matview.sql b/pg-ddl/schema/frontend/store_apps_overview__matview.sql index 0bbe5220..edd4d90d 100644 --- a/pg-ddl/schema/frontend/store_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/store_apps_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict LhLwXrW5RV8Wv39RjW8oXfCiEI51Xue1LmRUZmbEO5l1nyz66vvLbKfiEllzZi3 +\restrict NgGEiixDj3zCahyhffvDTaFOP43LFEol8Dm6IzQZDznsabfIK3prgk8U3m04xCs -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -205,5 +205,5 @@ CREATE UNIQUE INDEX store_apps_overview_unique_store_id_idx ON frontend.store_ap -- PostgreSQL database dump complete -- -\unrestrict LhLwXrW5RV8Wv39RjW8oXfCiEI51Xue1LmRUZmbEO5l1nyz66vvLbKfiEllzZi3 +\unrestrict NgGEiixDj3zCahyhffvDTaFOP43LFEol8Dm6IzQZDznsabfIK3prgk8U3m04xCs diff --git a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql b/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql index 33eaf1db..3600af8d 100644 --- a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql +++ b/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5ysCA0vkRYrmAeDwZ06qGbvosRJ3W0Q3eR1EfiH8cNjaHyR6ZvvIdejY93bg58g +\restrict qgspUNQakpXt5Wbg8On0kFAc1HZWj9JfrgWBT6hYJyTInYuUN9QU1pg11R5vluW -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -125,5 +125,5 @@ CREATE UNIQUE INDEX frontend_store_apps_z_scores_unique ON frontend.store_apps_z -- PostgreSQL database dump complete -- -\unrestrict 5ysCA0vkRYrmAeDwZ06qGbvosRJ3W0Q3eR1EfiH8cNjaHyR6ZvvIdejY93bg58g +\unrestrict qgspUNQakpXt5Wbg8On0kFAc1HZWj9JfrgWBT6hYJyTInYuUN9QU1pg11R5vluW diff --git a/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql b/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql index 143535a6..51e1c083 100644 --- a/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql +++ b/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict cQfrSrUGdIzroXwaMz1NJtCI3k6EiHzk4iVjEZMshbBFpLlRcmaSBzr18IJXKt2 +\restrict 5hmNnrGVQKqTQDrELpfw1pmbT7c2JyNSJfhE9nxT5cmldWKtJy4hVnRnIwDGbM7 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -53,5 +53,5 @@ CREATE UNIQUE INDEX idx_total_categories_app_counts ON frontend.total_categories -- PostgreSQL database dump complete -- -\unrestrict cQfrSrUGdIzroXwaMz1NJtCI3k6EiHzk4iVjEZMshbBFpLlRcmaSBzr18IJXKt2 +\unrestrict 5hmNnrGVQKqTQDrELpfw1pmbT7c2JyNSJfhE9nxT5cmldWKtJy4hVnRnIwDGbM7 diff --git a/pg-ddl/schema/full_db_dump.sql b/pg-ddl/schema/full_db_dump.sql index ef8f7138..ca24a52b 100644 --- a/pg-ddl/schema/full_db_dump.sql +++ b/pg-ddl/schema/full_db_dump.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict vbMufsMBmidBHnrRqLgiR744vSWD0SQyL3BkPwKVo7ZTeasVdJ4D7DHCYzMEbho +\restrict H8HMtkDkYggiiYeKcTWAfeZZbH0PdPaq1xAHjMcJbSMkJcdpS7FTANjZwyfksa7 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -7248,5 +7248,5 @@ GRANT ALL ON SCHEMA public TO PUBLIC; -- PostgreSQL database dump complete -- -\unrestrict vbMufsMBmidBHnrRqLgiR744vSWD0SQyL3BkPwKVo7ZTeasVdJ4D7DHCYzMEbho +\unrestrict H8HMtkDkYggiiYeKcTWAfeZZbH0PdPaq1xAHjMcJbSMkJcdpS7FTANjZwyfksa7 diff --git a/pg-ddl/schema/logging/app_country_crawls.sql b/pg-ddl/schema/logging/app_country_crawls.sql index 56eec635..3147d54d 100644 --- a/pg-ddl/schema/logging/app_country_crawls.sql +++ b/pg-ddl/schema/logging/app_country_crawls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict tEtPHcpvq6w7NXTP0qSFMbMiH0XT42c7ou4Mn55BJVJbqmHapmQ2GBMaCrCfypN +\restrict y2ATfZwO8k6eOpD6jYUuc9g2tfT4xh2hssXhQ5cWoau3PSwdPinDFZZNV2XMuVs -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -57,5 +57,5 @@ ALTER TABLE ONLY logging.app_country_crawls -- PostgreSQL database dump complete -- -\unrestrict tEtPHcpvq6w7NXTP0qSFMbMiH0XT42c7ou4Mn55BJVJbqmHapmQ2GBMaCrCfypN +\unrestrict y2ATfZwO8k6eOpD6jYUuc9g2tfT4xh2hssXhQ5cWoau3PSwdPinDFZZNV2XMuVs diff --git a/pg-ddl/schema/logging/app_description_keywords_extracted.sql b/pg-ddl/schema/logging/app_description_keywords_extracted.sql index c9737ee1..242a8bab 100644 --- a/pg-ddl/schema/logging/app_description_keywords_extracted.sql +++ b/pg-ddl/schema/logging/app_description_keywords_extracted.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Q6l3r3ntDvhVlgGvpmWK2VtAndtiG7GURJqNd67mGazzl3KECDwjoIViAi00VnS +\restrict xLSnoL7U5qehY4YpuFXBVoMwFaqZRKMjcWzDhqpbd7vPdnkUBUUUAprDiehPHsu -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ CREATE INDEX app_description_keywords_extrac_description_id_extracted_at_idx ON -- PostgreSQL database dump complete -- -\unrestrict Q6l3r3ntDvhVlgGvpmWK2VtAndtiG7GURJqNd67mGazzl3KECDwjoIViAi00VnS +\unrestrict xLSnoL7U5qehY4YpuFXBVoMwFaqZRKMjcWzDhqpbd7vPdnkUBUUUAprDiehPHsu diff --git a/pg-ddl/schema/logging/creative_scan_results.sql b/pg-ddl/schema/logging/creative_scan_results.sql index ffbee4af..6700844c 100644 --- a/pg-ddl/schema/logging/creative_scan_results.sql +++ b/pg-ddl/schema/logging/creative_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict OiYYKI1IGtfadNf17zwqXy9e4nhShuQsbxxMMa5Xa6MNoQBTnVuCP79izVFhtlN +\restrict 9bHVlhp1e7SEftLcVSFoq763LETwlaOdS7Mhi5Stm7UFw99HfRw3HhQjpfg77Mb -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -47,5 +47,5 @@ ALTER TABLE logging.creative_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict OiYYKI1IGtfadNf17zwqXy9e4nhShuQsbxxMMa5Xa6MNoQBTnVuCP79izVFhtlN +\unrestrict 9bHVlhp1e7SEftLcVSFoq763LETwlaOdS7Mhi5Stm7UFw99HfRw3HhQjpfg77Mb diff --git a/pg-ddl/schema/logging/developers_crawled_at.sql b/pg-ddl/schema/logging/developers_crawled_at.sql index 51d23d8e..7e0c1be7 100644 --- a/pg-ddl/schema/logging/developers_crawled_at.sql +++ b/pg-ddl/schema/logging/developers_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict zvTZRjbO8VEzh4mY7Ptb8puNo9ac2DAaDfWxxmjSMHPLmoiaDE0BtPbfb5DacMG +\restrict l45kq1ZedJuRUkdVcXbGLU9wjGWQsmoFFZea8CVyS9xdMhxEbfMJjCpVWRdUgms -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.developers_crawled_at -- PostgreSQL database dump complete -- -\unrestrict zvTZRjbO8VEzh4mY7Ptb8puNo9ac2DAaDfWxxmjSMHPLmoiaDE0BtPbfb5DacMG +\unrestrict l45kq1ZedJuRUkdVcXbGLU9wjGWQsmoFFZea8CVyS9xdMhxEbfMJjCpVWRdUgms diff --git a/pg-ddl/schema/logging/keywords_crawled_at.sql b/pg-ddl/schema/logging/keywords_crawled_at.sql index ebdc6df1..7d06ab7c 100644 --- a/pg-ddl/schema/logging/keywords_crawled_at.sql +++ b/pg-ddl/schema/logging/keywords_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict FCdszdJ2Iz2rDgxTZbXUEt1gt3MRINU9HPCtfwDgDUNct6XTuFC094EUIjCO0RL +\restrict 6xlKoai7dtktdqeQbEbkoqkJ4t0ww6i93deIUCDPtwstv6PDdVHYehkIhW6nM2r -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.keywords_crawled_at -- PostgreSQL database dump complete -- -\unrestrict FCdszdJ2Iz2rDgxTZbXUEt1gt3MRINU9HPCtfwDgDUNct6XTuFC094EUIjCO0RL +\unrestrict 6xlKoai7dtktdqeQbEbkoqkJ4t0ww6i93deIUCDPtwstv6PDdVHYehkIhW6nM2r diff --git a/pg-ddl/schema/logging/snapshot_pub_domains.sql b/pg-ddl/schema/logging/snapshot_pub_domains.sql index 55ae3f4d..c1e6ac94 100644 --- a/pg-ddl/schema/logging/snapshot_pub_domains.sql +++ b/pg-ddl/schema/logging/snapshot_pub_domains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 4YaQjjZ0cK4BPeyDe9nzk9XUDyaYPBPGjE4mR4sHYOv3H1SEsqVZBsfzrwvbz0C +\restrict 4IgYu2dGGu49A5uNvteoHcgtKKNf3hb4ulGsWqLfbCuvmKJETM5316K0hHGBGQ7 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -43,5 +43,5 @@ ALTER TABLE logging.snapshot_pub_domains OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 4YaQjjZ0cK4BPeyDe9nzk9XUDyaYPBPGjE4mR4sHYOv3H1SEsqVZBsfzrwvbz0C +\unrestrict 4IgYu2dGGu49A5uNvteoHcgtKKNf3hb4ulGsWqLfbCuvmKJETM5316K0hHGBGQ7 diff --git a/pg-ddl/schema/logging/store_app_downloads.sql b/pg-ddl/schema/logging/store_app_downloads.sql index 31333fdd..23130d26 100644 --- a/pg-ddl/schema/logging/store_app_downloads.sql +++ b/pg-ddl/schema/logging/store_app_downloads.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5DxFhnwvs1Vbm43YvEiJsDwnDqcX8Q34HhgYDhJ3CAYFTfkUaKrRpmPpS4pvqsD +\restrict TBGApHJFei7TlHpg3d8ogIvVWa7S1bVIdntMRv5Iv5vjMeM2Z1VL7XrBeOozZet -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -49,5 +49,5 @@ ALTER TABLE ONLY logging.store_app_downloads -- PostgreSQL database dump complete -- -\unrestrict 5DxFhnwvs1Vbm43YvEiJsDwnDqcX8Q34HhgYDhJ3CAYFTfkUaKrRpmPpS4pvqsD +\unrestrict TBGApHJFei7TlHpg3d8ogIvVWa7S1bVIdntMRv5Iv5vjMeM2Z1VL7XrBeOozZet diff --git a/pg-ddl/schema/logging/store_app_no_creatives.sql b/pg-ddl/schema/logging/store_app_no_creatives.sql index 21c47ee7..499c5794 100644 --- a/pg-ddl/schema/logging/store_app_no_creatives.sql +++ b/pg-ddl/schema/logging/store_app_no_creatives.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 8eWxMFwYdxxa4cPZ3gchTJpIjXk1baRyHagnOtx23C31x2fTFMJymDh8Y9afmTn +\restrict BxHkiiPShTbMFNneBayjGAYbsPeEoxtskhLdbKHP8Kc0VoZcMfUfk00ksu9ABOj -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -40,5 +40,5 @@ ALTER TABLE logging.store_app_no_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 8eWxMFwYdxxa4cPZ3gchTJpIjXk1baRyHagnOtx23C31x2fTFMJymDh8Y9afmTn +\unrestrict BxHkiiPShTbMFNneBayjGAYbsPeEoxtskhLdbKHP8Kc0VoZcMfUfk00ksu9ABOj diff --git a/pg-ddl/schema/logging/store_app_sources.sql b/pg-ddl/schema/logging/store_app_sources.sql index 59abfe64..6c760b88 100644 --- a/pg-ddl/schema/logging/store_app_sources.sql +++ b/pg-ddl/schema/logging/store_app_sources.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict OZBgRYZffmT7fQyOHfsL3xALgZdSHdmdcszBOiYVIqalRYmd56eZVTHN5M0qkif +\restrict 5mLG36lrWRAuiFdOXSRnlTfjf21IEhwR1gPJERbcDunlqfSTrgzpTI23Cv3fiCN -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -64,5 +64,5 @@ ALTER TABLE ONLY logging.store_app_sources -- PostgreSQL database dump complete -- -\unrestrict OZBgRYZffmT7fQyOHfsL3xALgZdSHdmdcszBOiYVIqalRYmd56eZVTHN5M0qkif +\unrestrict 5mLG36lrWRAuiFdOXSRnlTfjf21IEhwR1gPJERbcDunlqfSTrgzpTI23Cv3fiCN diff --git a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql index ebf28847..51805033 100644 --- a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql +++ b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict MJxeBFUmBMf2FL6HoTQPBWfDYfkgNT0ybQJQ1ihY8rfIrMDXsAHGubxHP3qpv2W +\restrict QRoH0crvJDivGDV08GpCtCpuwqG3rlLJnxmtbw8SGey1wO8VxxbIJ5nAipadyYQ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -63,5 +63,5 @@ ALTER TABLE ONLY logging.store_app_waydroid_crawled_at -- PostgreSQL database dump complete -- -\unrestrict MJxeBFUmBMf2FL6HoTQPBWfDYfkgNT0ybQJQ1ihY8rfIrMDXsAHGubxHP3qpv2W +\unrestrict QRoH0crvJDivGDV08GpCtCpuwqG3rlLJnxmtbw8SGey1wO8VxxbIJ5nAipadyYQ diff --git a/pg-ddl/schema/logging/store_apps_snapshot.sql b/pg-ddl/schema/logging/store_apps_snapshot.sql index 368bb5b4..e56affe2 100644 --- a/pg-ddl/schema/logging/store_apps_snapshot.sql +++ b/pg-ddl/schema/logging/store_apps_snapshot.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5VrH3XH6TMBSXfH5q8mMckP7iMAjAanLUvsF1uf3aSIohKWIawGpTmGH4Wo1SwU +\restrict clObeJua0hbeQOfCfDBIVqWIa7r55RqjmrqY4R32LtgBejxnJfaEkYJnoQhLvDT -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -44,5 +44,5 @@ ALTER TABLE logging.store_apps_snapshot OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 5VrH3XH6TMBSXfH5q8mMckP7iMAjAanLUvsF1uf3aSIohKWIawGpTmGH4Wo1SwU +\unrestrict clObeJua0hbeQOfCfDBIVqWIa7r55RqjmrqY4R32LtgBejxnJfaEkYJnoQhLvDT diff --git a/pg-ddl/schema/logging/version_code_api_scan_results.sql b/pg-ddl/schema/logging/version_code_api_scan_results.sql index a21c032e..e5aa21ab 100644 --- a/pg-ddl/schema/logging/version_code_api_scan_results.sql +++ b/pg-ddl/schema/logging/version_code_api_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict zRuaCkqPfDZTPWOJ1PxZdj6mk5Wb6f2MhLxFCvK6Dz76G5biH0BydcTJv4YMVwB +\restrict nTyArWm7oynveMB5Xw35nvXWI881SP6VgLogiUb9zsWOIqOtbDpQUZWMnKhz0yg -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -42,5 +42,5 @@ ALTER TABLE logging.version_code_api_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict zRuaCkqPfDZTPWOJ1PxZdj6mk5Wb6f2MhLxFCvK6Dz76G5biH0BydcTJv4YMVwB +\unrestrict nTyArWm7oynveMB5Xw35nvXWI881SP6VgLogiUb9zsWOIqOtbDpQUZWMnKhz0yg diff --git a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql index 7739f290..2ed9f145 100644 --- a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql +++ b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict CCT6LHpCSbCuZZFUMm2lBdBwMXxOeTeo7m06liDDrqi2Hc8U1zsyMOhxEUNrk7i +\restrict PB1W9S0nJjOpD7Xz51w2nyT11ExbS86s1ePVjepEHrYo4lyaXDr41AtIUlPAwlJ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -60,5 +60,5 @@ ALTER MATERIALIZED VIEW public.ad_network_sdk_keys OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict CCT6LHpCSbCuZZFUMm2lBdBwMXxOeTeo7m06liDDrqi2Hc8U1zsyMOhxEUNrk7i +\unrestrict PB1W9S0nJjOpD7Xz51w2nyT11ExbS86s1ePVjepEHrYo4lyaXDr41AtIUlPAwlJ diff --git a/pg-ddl/schema/public/adstxt_crawl_results.sql b/pg-ddl/schema/public/adstxt_crawl_results.sql index 3d892cbe..3cb8c8a3 100644 --- a/pg-ddl/schema/public/adstxt_crawl_results.sql +++ b/pg-ddl/schema/public/adstxt_crawl_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict WXPevfkkVRI9d8SEAHDPgZK0BBuCQCM7gN0sRaMcLW4X9nOpWk8SzvvhangYlkf +\restrict Qnia9kbGghz5ZHtgLq8t4ACUJHnwA3cKJS20RcXfqtxrmjCrPs6zT0VfJ3JAGob -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -96,5 +96,5 @@ ALTER TABLE ONLY public.adstxt_crawl_results -- PostgreSQL database dump complete -- -\unrestrict WXPevfkkVRI9d8SEAHDPgZK0BBuCQCM7gN0sRaMcLW4X9nOpWk8SzvvhangYlkf +\unrestrict Qnia9kbGghz5ZHtgLq8t4ACUJHnwA3cKJS20RcXfqtxrmjCrPs6zT0VfJ3JAGob diff --git a/pg-ddl/schema/public/api_calls.sql b/pg-ddl/schema/public/api_calls.sql index 012339a2..28e08438 100644 --- a/pg-ddl/schema/public/api_calls.sql +++ b/pg-ddl/schema/public/api_calls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict vZiiIk4IjMZevEYk7Ao9utaeyTrhvwQ54skA08So4yHnXiIGXznVb2dSg0DidDR +\restrict 0zAka3pFsAdAYRVJi2BveqeWb7wT2DAWYM8T9UXRMhQRYOi2dKLRUX1zE0Ecpb7 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -135,5 +135,5 @@ ALTER TABLE ONLY public.api_calls -- PostgreSQL database dump complete -- -\unrestrict vZiiIk4IjMZevEYk7Ao9utaeyTrhvwQ54skA08So4yHnXiIGXznVb2dSg0DidDR +\unrestrict 0zAka3pFsAdAYRVJi2BveqeWb7wT2DAWYM8T9UXRMhQRYOi2dKLRUX1zE0Ecpb7 diff --git a/pg-ddl/schema/public/app_ads_entrys.sql b/pg-ddl/schema/public/app_ads_entrys.sql index b9658299..4cf8c749 100644 --- a/pg-ddl/schema/public/app_ads_entrys.sql +++ b/pg-ddl/schema/public/app_ads_entrys.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict NQT48NgjjRf213EQBb6dpElmgywrPeC4rnazwnBNWfRajZ0z7Pm6OFvKiGPj34V +\restrict STCRgnBebf2K50tpakkYzPPc2ebxMhfuWK14Wf3IaVBh7FsGqguEVORis9rwWf5 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -90,5 +90,5 @@ ALTER TABLE ONLY public.app_ads_entrys -- PostgreSQL database dump complete -- -\unrestrict NQT48NgjjRf213EQBb6dpElmgywrPeC4rnazwnBNWfRajZ0z7Pm6OFvKiGPj34V +\unrestrict STCRgnBebf2K50tpakkYzPPc2ebxMhfuWK14Wf3IaVBh7FsGqguEVORis9rwWf5 diff --git a/pg-ddl/schema/public/app_ads_map.sql b/pg-ddl/schema/public/app_ads_map.sql index 2cefa27c..24702b56 100644 --- a/pg-ddl/schema/public/app_ads_map.sql +++ b/pg-ddl/schema/public/app_ads_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Ghz4FfObUtDpWXKhZbKlsUQEqHkD8YFxM1unJKPsR8BmHiNe7zmKcea3d8GKl0a +\restrict srXGn3hfV7gu7lvDgRiFIXDxr9vePvuWcZPeSTyZSHTMfgL92eqSQCVcyc5TCp2 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_ads_map -- PostgreSQL database dump complete -- -\unrestrict Ghz4FfObUtDpWXKhZbKlsUQEqHkD8YFxM1unJKPsR8BmHiNe7zmKcea3d8GKl0a +\unrestrict srXGn3hfV7gu7lvDgRiFIXDxr9vePvuWcZPeSTyZSHTMfgL92eqSQCVcyc5TCp2 diff --git a/pg-ddl/schema/public/app_country_metrics_history.sql b/pg-ddl/schema/public/app_country_metrics_history.sql index e94cccb5..2de018bd 100644 --- a/pg-ddl/schema/public/app_country_metrics_history.sql +++ b/pg-ddl/schema/public/app_country_metrics_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fxoHAgWs6yYf31DYw20jhPnb03Wqtucxwy2NPXavenqmO9YkdxwJt4ts4SjkLdC +\restrict b08dgFVgpT5BjfFT1EidDL2hJSamGVrcZnLkZtwfvd86gPURvXJCPie3nYpHnFd -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.app_country_metrics_history -- PostgreSQL database dump complete -- -\unrestrict fxoHAgWs6yYf31DYw20jhPnb03Wqtucxwy2NPXavenqmO9YkdxwJt4ts4SjkLdC +\unrestrict b08dgFVgpT5BjfFT1EidDL2hJSamGVrcZnLkZtwfvd86gPURvXJCPie3nYpHnFd diff --git a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql index 3af344ca..aeddc5e3 100644 --- a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict u2GkUgAndmaTPN1GlHvfax09EwnxJJbqbAo1dNbtiTeo8bnworg4Do0ueUHQVY9 +\restrict sO7xVHGxYEl8rb98eybOR5UnXtSH1E6VsKc73b7UuyxwkxRU1JJhsrNazO3vMGa -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -57,5 +57,5 @@ CREATE UNIQUE INDEX app_country_metrics_latest_idx ON public.app_country_metrics -- PostgreSQL database dump complete -- -\unrestrict u2GkUgAndmaTPN1GlHvfax09EwnxJJbqbAo1dNbtiTeo8bnworg4Do0ueUHQVY9 +\unrestrict sO7xVHGxYEl8rb98eybOR5UnXtSH1E6VsKc73b7UuyxwkxRU1JJhsrNazO3vMGa diff --git a/pg-ddl/schema/public/app_global_metrics_history.sql b/pg-ddl/schema/public/app_global_metrics_history.sql index 84a4da40..325c6d80 100644 --- a/pg-ddl/schema/public/app_global_metrics_history.sql +++ b/pg-ddl/schema/public/app_global_metrics_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict BJkwZl7NvyqQ9PMcxE4UgpEK2oehTKMzyb6gLRWgXvJGFM6cfLo7yQpFF0EdlaU +\restrict 1hmKdZRNhqTEJoppKw2sFPbjXOeJtEi66hgaObDuvoePGa68uinpNEOff2nljAy -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.app_global_metrics_history -- PostgreSQL database dump complete -- -\unrestrict BJkwZl7NvyqQ9PMcxE4UgpEK2oehTKMzyb6gLRWgXvJGFM6cfLo7yQpFF0EdlaU +\unrestrict 1hmKdZRNhqTEJoppKw2sFPbjXOeJtEi66hgaObDuvoePGa68uinpNEOff2nljAy diff --git a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql index 9da20258..85e6f7e1 100644 --- a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fE1S1VxxIfebDN5ZhWivPSLkv4vs5kOSxBfEAvJ6mASVKUuPK8PUMWcy8JT5Ffj +\restrict pAMjTORVUDZF7McI8ZyNlSYW3b0cdPg6JNw1119YE5Ob1DGBFJpJ4AAZCK6gOmS -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX app_global_metrics_latest_idx ON public.app_global_metrics_l -- PostgreSQL database dump complete -- -\unrestrict fE1S1VxxIfebDN5ZhWivPSLkv4vs5kOSxBfEAvJ6mASVKUuPK8PUMWcy8JT5Ffj +\unrestrict pAMjTORVUDZF7McI8ZyNlSYW3b0cdPg6JNw1119YE5Ob1DGBFJpJ4AAZCK6gOmS diff --git a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql index fc79f890..1a63e72d 100644 --- a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict zCHbBzhRsrcCXnyQ7guEaDIl57lKhhdpAYSaMf0nWCtF238Ihi2VMrx0BDFewPs +\restrict NFhzpApjoHkbj98bTesQk37MRjJpe7PfJCZjHnqVax3hsrjeDXUtBPgYdaUwolp -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX app_global_metrics_weekly_diffs_week_start_store_app_idx ON -- PostgreSQL database dump complete -- -\unrestrict zCHbBzhRsrcCXnyQ7guEaDIl57lKhhdpAYSaMf0nWCtF238Ihi2VMrx0BDFewPs +\unrestrict NFhzpApjoHkbj98bTesQk37MRjJpe7PfJCZjHnqVax3hsrjeDXUtBPgYdaUwolp diff --git a/pg-ddl/schema/public/app_keywords_extracted.sql b/pg-ddl/schema/public/app_keywords_extracted.sql index 13dc750b..6b710f72 100644 --- a/pg-ddl/schema/public/app_keywords_extracted.sql +++ b/pg-ddl/schema/public/app_keywords_extracted.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict usbK292Diuz0VsL9WF1mvnUqfpAotlH5lFSrLEPaeF8W7xiu54AXB6iRQhAHzFy +\restrict IonETirA5sahNq0Oa4mvKbz62cOldagQfyIcSazi73ZOpntCAEKOgvk27S8iDfe -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -79,5 +79,5 @@ ALTER TABLE ONLY public.app_keywords_extracted -- PostgreSQL database dump complete -- -\unrestrict usbK292Diuz0VsL9WF1mvnUqfpAotlH5lFSrLEPaeF8W7xiu54AXB6iRQhAHzFy +\unrestrict IonETirA5sahNq0Oa4mvKbz62cOldagQfyIcSazi73ZOpntCAEKOgvk27S8iDfe diff --git a/pg-ddl/schema/public/app_urls_map.sql b/pg-ddl/schema/public/app_urls_map.sql index b31f68d6..4ae886dc 100644 --- a/pg-ddl/schema/public/app_urls_map.sql +++ b/pg-ddl/schema/public/app_urls_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict GO0pNqvkA4WtMnwHMCVrTGwKjUBCJq9GNSCWWuMC3zcNFcyU1lqSNlWznzzeO3G +\restrict SLsOB06Cf2VdY6lSxiPlWWZde6aJVJaet6dUzL628hUx47HbqhhJogxH2vCcdq4 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_urls_map -- PostgreSQL database dump complete -- -\unrestrict GO0pNqvkA4WtMnwHMCVrTGwKjUBCJq9GNSCWWuMC3zcNFcyU1lqSNlWznzzeO3G +\unrestrict SLsOB06Cf2VdY6lSxiPlWWZde6aJVJaet6dUzL628hUx47HbqhhJogxH2vCcdq4 diff --git a/pg-ddl/schema/public/category_mapping__matview.sql b/pg-ddl/schema/public/category_mapping__matview.sql index 78ef3fc9..51259766 100644 --- a/pg-ddl/schema/public/category_mapping__matview.sql +++ b/pg-ddl/schema/public/category_mapping__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ayghS4e178UzWkb8I3sIjp7JywbqdG0Fky4E7SkbrwvtpDay3IeYtGAhkFqiUr3 +\restrict xK0PvE89JbZtm0UWrLpaToquGFHoMDgKXT9qewWo5lf1RbDduKUfFz6cGMAFqP2 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -67,5 +67,5 @@ CREATE UNIQUE INDEX category_mapping_idx ON public.category_mapping USING btree -- PostgreSQL database dump complete -- -\unrestrict ayghS4e178UzWkb8I3sIjp7JywbqdG0Fky4E7SkbrwvtpDay3IeYtGAhkFqiUr3 +\unrestrict xK0PvE89JbZtm0UWrLpaToquGFHoMDgKXT9qewWo5lf1RbDduKUfFz6cGMAFqP2 diff --git a/pg-ddl/schema/public/countries.sql b/pg-ddl/schema/public/countries.sql index 30ef3c70..0f3df0ca 100644 --- a/pg-ddl/schema/public/countries.sql +++ b/pg-ddl/schema/public/countries.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict hLWK9nGAz7QPEvgiLs6EOoIy5XXUUf0fceqgxAwCwmB3TgYPm1JtcVUK24Fznsn +\restrict DZ5WI7S9RJaFBDkq2j9eMwhg2zOHIFOGfuLvQ6VG8R5sny53AZB1cSOSMHT6aTP -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -71,5 +71,5 @@ ALTER TABLE ONLY public.countries -- PostgreSQL database dump complete -- -\unrestrict hLWK9nGAz7QPEvgiLs6EOoIy5XXUUf0fceqgxAwCwmB3TgYPm1JtcVUK24Fznsn +\unrestrict DZ5WI7S9RJaFBDkq2j9eMwhg2zOHIFOGfuLvQ6VG8R5sny53AZB1cSOSMHT6aTP diff --git a/pg-ddl/schema/public/crawl_results.sql b/pg-ddl/schema/public/crawl_results.sql index afdf4df4..ec876e84 100644 --- a/pg-ddl/schema/public/crawl_results.sql +++ b/pg-ddl/schema/public/crawl_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict FplWTM4Uq7BvBpUDpWex5f2kxcLVoyGbZs5hauxckPzNvvw198CSdZ4zYdSfFdy +\restrict Zi6hsrB6FIybenY1lOZH6FL35iIsGE7wwC9lgp5P1y9ID8cHIixrfiWyjGubJsL -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -61,5 +61,5 @@ ALTER TABLE ONLY public.crawl_results -- PostgreSQL database dump complete -- -\unrestrict FplWTM4Uq7BvBpUDpWex5f2kxcLVoyGbZs5hauxckPzNvvw198CSdZ4zYdSfFdy +\unrestrict Zi6hsrB6FIybenY1lOZH6FL35iIsGE7wwC9lgp5P1y9ID8cHIixrfiWyjGubJsL diff --git a/pg-ddl/schema/public/crawl_scenario_country_config.sql b/pg-ddl/schema/public/crawl_scenario_country_config.sql index 03062e11..3aec3619 100644 --- a/pg-ddl/schema/public/crawl_scenario_country_config.sql +++ b/pg-ddl/schema/public/crawl_scenario_country_config.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict XOEM1i5pTU7Afyn5zhUtKosaOjZ7ZXBiNnhHPwmfwKuF3TS8LKWcvVCrlnVCj0o +\restrict Ot3ZxfmhsnvZkBP4WapntWo9oHYJcE7iiyOsDkw9wB3ZFUtbcApbJ4ou3CYsrIK -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.crawl_scenario_country_config -- PostgreSQL database dump complete -- -\unrestrict XOEM1i5pTU7Afyn5zhUtKosaOjZ7ZXBiNnhHPwmfwKuF3TS8LKWcvVCrlnVCj0o +\unrestrict Ot3ZxfmhsnvZkBP4WapntWo9oHYJcE7iiyOsDkw9wB3ZFUtbcApbJ4ou3CYsrIK diff --git a/pg-ddl/schema/public/crawl_scenarios.sql b/pg-ddl/schema/public/crawl_scenarios.sql index f24269ce..c4baeffb 100644 --- a/pg-ddl/schema/public/crawl_scenarios.sql +++ b/pg-ddl/schema/public/crawl_scenarios.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict q7zH3FdcWm3h46xzPLzeAXzqp9KzkSyViLOAqHPpxZR4AcDs9cdYWbwSmdKdMz2 +\restrict WcQeLgb9z1ZI1OHsyyw8gdZeOjqGrOVjT6HgXvaXbGwJQAdNgYugXhkxmz189CB -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.crawl_scenarios -- PostgreSQL database dump complete -- -\unrestrict q7zH3FdcWm3h46xzPLzeAXzqp9KzkSyViLOAqHPpxZR4AcDs9cdYWbwSmdKdMz2 +\unrestrict WcQeLgb9z1ZI1OHsyyw8gdZeOjqGrOVjT6HgXvaXbGwJQAdNgYugXhkxmz189CB diff --git a/pg-ddl/schema/public/creative_assets.sql b/pg-ddl/schema/public/creative_assets.sql index 55fd5929..338b1804 100644 --- a/pg-ddl/schema/public/creative_assets.sql +++ b/pg-ddl/schema/public/creative_assets.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict SOBm3LohfmgjL4FtIJFjfLcnDPcdD4Z6NZmYwwpMdb9fMNkfBo1It3rBJY1nWrY +\restrict ULf7R8Pgc8mWKeerQNNtfmbcynFGLwDJPchcEz5qZoceJIJee1ndXnYc4x0Rowv -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -94,5 +94,5 @@ CREATE INDEX idx_creative_assets_phash ON public.creative_assets USING btree (ph -- PostgreSQL database dump complete -- -\unrestrict SOBm3LohfmgjL4FtIJFjfLcnDPcdD4Z6NZmYwwpMdb9fMNkfBo1It3rBJY1nWrY +\unrestrict ULf7R8Pgc8mWKeerQNNtfmbcynFGLwDJPchcEz5qZoceJIJee1ndXnYc4x0Rowv diff --git a/pg-ddl/schema/public/creative_records.sql b/pg-ddl/schema/public/creative_records.sql index 1811c739..fed723a7 100644 --- a/pg-ddl/schema/public/creative_records.sql +++ b/pg-ddl/schema/public/creative_records.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict i89a7LEF2QcsWTChBhsvZrWe8H1pZtqJAFC3BskstDiBfMZzBSOezVbC0cemtdg +\restrict dYHZ1lF8UjbMDn8D2nM5gsVgG0DydOWDUtdumKfGuoc9boqTmOnpLtmddczhbPd -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -153,5 +153,5 @@ ALTER TABLE ONLY public.creative_records -- PostgreSQL database dump complete -- -\unrestrict i89a7LEF2QcsWTChBhsvZrWe8H1pZtqJAFC3BskstDiBfMZzBSOezVbC0cemtdg +\unrestrict dYHZ1lF8UjbMDn8D2nM5gsVgG0DydOWDUtdumKfGuoc9boqTmOnpLtmddczhbPd diff --git a/pg-ddl/schema/public/developer_store_apps__matview.sql b/pg-ddl/schema/public/developer_store_apps__matview.sql index 785a1f67..3c12b64f 100644 --- a/pg-ddl/schema/public/developer_store_apps__matview.sql +++ b/pg-ddl/schema/public/developer_store_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 9rvItxQVzH1hxRZIRfZHUswScQUfQer1VAXfQ58BgB6Pa105i1mbAvJ79cffN4g +\restrict ntQDyekUDYB4K55R8QSefdOgiWEVjkz2JkYDZRu4sx4WlbaB6uu7W9oaD2PGhsA -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -83,5 +83,5 @@ CREATE UNIQUE INDEX idx_developer_store_apps_unique ON public.developer_store_ap -- PostgreSQL database dump complete -- -\unrestrict 9rvItxQVzH1hxRZIRfZHUswScQUfQer1VAXfQ58BgB6Pa105i1mbAvJ79cffN4g +\unrestrict ntQDyekUDYB4K55R8QSefdOgiWEVjkz2JkYDZRu4sx4WlbaB6uu7W9oaD2PGhsA diff --git a/pg-ddl/schema/public/developers.sql b/pg-ddl/schema/public/developers.sql index 71544ef0..9717afd9 100644 --- a/pg-ddl/schema/public/developers.sql +++ b/pg-ddl/schema/public/developers.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict tA0WQloKvoBRlroAZ8kGI58CXx6z8CKl2EuC35ry4tWM4fIvw3EQqe6f0yIGHnO +\restrict QWtyIVB4ji0FfM1DsFKYvEWk47bmA0v1oKhdtxYfV5jbYe9P7oQwKJ4IfbokAYP -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -110,5 +110,5 @@ ALTER TABLE ONLY public.developers -- PostgreSQL database dump complete -- -\unrestrict tA0WQloKvoBRlroAZ8kGI58CXx6z8CKl2EuC35ry4tWM4fIvw3EQqe6f0yIGHnO +\unrestrict QWtyIVB4ji0FfM1DsFKYvEWk47bmA0v1oKhdtxYfV5jbYe9P7oQwKJ4IfbokAYP diff --git a/pg-ddl/schema/public/domains.sql b/pg-ddl/schema/public/domains.sql index 60e91057..b7a078da 100644 --- a/pg-ddl/schema/public/domains.sql +++ b/pg-ddl/schema/public/domains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict JgPTiHdWlCD57VVG27prsW5lmJN8fHh4HybQtHuxzJrYR2QOif0x0DT9VKy65s2 +\restrict aXgsPLdyVvLIL5gp9ami4n4hH7RFbcvCnsrb9GwNUoI7eIvybfvcQhKkC542ZKm -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.domains -- PostgreSQL database dump complete -- -\unrestrict JgPTiHdWlCD57VVG27prsW5lmJN8fHh4HybQtHuxzJrYR2QOif0x0DT9VKy65s2 +\unrestrict aXgsPLdyVvLIL5gp9ami4n4hH7RFbcvCnsrb9GwNUoI7eIvybfvcQhKkC542ZKm diff --git a/pg-ddl/schema/public/ip_geo_snapshots.sql b/pg-ddl/schema/public/ip_geo_snapshots.sql index 19e161ce..1e679ab8 100644 --- a/pg-ddl/schema/public/ip_geo_snapshots.sql +++ b/pg-ddl/schema/public/ip_geo_snapshots.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict NJMNZbbU7bz87M6xuHZsb7je2dKv3txtaceE1fXxiALjI12loKnMYlazZOM4FsS +\restrict Zi8ViBzMY2q60o7E9AHCHT8tcoJ5Ri9R0MiCSZ9m82gbPss23VDhLjvj9TQMScZ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.ip_geo_snapshots -- PostgreSQL database dump complete -- -\unrestrict NJMNZbbU7bz87M6xuHZsb7je2dKv3txtaceE1fXxiALjI12loKnMYlazZOM4FsS +\unrestrict Zi8ViBzMY2q60o7E9AHCHT8tcoJ5Ri9R0MiCSZ9m82gbPss23VDhLjvj9TQMScZ diff --git a/pg-ddl/schema/public/keywords.sql b/pg-ddl/schema/public/keywords.sql index 373942b8..54c7dbe1 100644 --- a/pg-ddl/schema/public/keywords.sql +++ b/pg-ddl/schema/public/keywords.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict zISb0uc48GVcIq7u2oNubx7gT6f2N83plzvS220Ha3VSQYv8tP4LsvmysAZDjTX +\restrict taXKJFrnhImvbucvsoTqrunXQY74mJo43EjdsfTYlrDv2od5SluzQySfAB0nfdk -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.keywords -- PostgreSQL database dump complete -- -\unrestrict zISb0uc48GVcIq7u2oNubx7gT6f2N83plzvS220Ha3VSQYv8tP4LsvmysAZDjTX +\unrestrict taXKJFrnhImvbucvsoTqrunXQY74mJo43EjdsfTYlrDv2od5SluzQySfAB0nfdk diff --git a/pg-ddl/schema/public/keywords_base.sql b/pg-ddl/schema/public/keywords_base.sql index a25493c1..21bedf7c 100644 --- a/pg-ddl/schema/public/keywords_base.sql +++ b/pg-ddl/schema/public/keywords_base.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict vHadIvvRE2BUhEtd0L6PO3ERj5Ib8AbocQgNed3duFSFlhkGgXcn9Jm5Z4bVXUV +\restrict qxi4IsRbuWd2D20yREz9btsoIqedaVNpCqYoOCICb4Ts6jfeOfKxvQHaAbHamFY -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -38,5 +38,5 @@ ALTER TABLE public.keywords_base OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict vHadIvvRE2BUhEtd0L6PO3ERj5Ib8AbocQgNed3duFSFlhkGgXcn9Jm5Z4bVXUV +\unrestrict qxi4IsRbuWd2D20yREz9btsoIqedaVNpCqYoOCICb4Ts6jfeOfKxvQHaAbHamFY diff --git a/pg-ddl/schema/public/languages.sql b/pg-ddl/schema/public/languages.sql index 676371ac..6b51f08c 100644 --- a/pg-ddl/schema/public/languages.sql +++ b/pg-ddl/schema/public/languages.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 7nY8ujaxs3eJQnajH9oSrqvFcESxRHVbPGFfovWzVXlkG7t6IapZIDCVMpLdl1O +\restrict byfuraspGILseySZSKvP9OqtsUO9B4gXeBtXv0LZnvm7mPaU0ja34wCsaE6Jbmf -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.languages -- PostgreSQL database dump complete -- -\unrestrict 7nY8ujaxs3eJQnajH9oSrqvFcESxRHVbPGFfovWzVXlkG7t6IapZIDCVMpLdl1O +\unrestrict byfuraspGILseySZSKvP9OqtsUO9B4gXeBtXv0LZnvm7mPaU0ja34wCsaE6Jbmf diff --git a/pg-ddl/schema/public/mv_app_categories__matview.sql b/pg-ddl/schema/public/mv_app_categories__matview.sql index 24f87535..4c98881e 100644 --- a/pg-ddl/schema/public/mv_app_categories__matview.sql +++ b/pg-ddl/schema/public/mv_app_categories__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict dfHm4PkNd6DrtCKWyxNnaRK4QrXIvld0GdPszBhyVcqxagAHi2KVKJqhfCJuQSe +\restrict UlKKGZf69Jxei7bDJKB00Ug2sdt3iI5searFXeUHZWzG6ozOIxHRDRmnw3JdXEO -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -45,5 +45,5 @@ ALTER MATERIALIZED VIEW public.mv_app_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict dfHm4PkNd6DrtCKWyxNnaRK4QrXIvld0GdPszBhyVcqxagAHi2KVKJqhfCJuQSe +\unrestrict UlKKGZf69Jxei7bDJKB00Ug2sdt3iI5searFXeUHZWzG6ozOIxHRDRmnw3JdXEO diff --git a/pg-ddl/schema/public/pg_stat_statements__view.sql b/pg-ddl/schema/public/pg_stat_statements__view.sql index 62ebe84e..2f985223 100644 --- a/pg-ddl/schema/public/pg_stat_statements__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements__view.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fu0btWdb4gSW7K2HifcAxugjuxqIZbDSvUZqW3WUE3w7javGaENeutqLhGy75VS +\restrict tZ9ul4Q0iWrwsGXfAWsE5sS5eEMwxl2RcQSpZTg5SutxZ4XTscZZS9iXjke4L1g -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict fu0btWdb4gSW7K2HifcAxugjuxqIZbDSvUZqW3WUE3w7javGaENeutqLhGy75VS +\unrestrict tZ9ul4Q0iWrwsGXfAWsE5sS5eEMwxl2RcQSpZTg5SutxZ4XTscZZS9iXjke4L1g diff --git a/pg-ddl/schema/public/pg_stat_statements_info__view.sql b/pg-ddl/schema/public/pg_stat_statements_info__view.sql index 09a4925b..c3cf6eef 100644 --- a/pg-ddl/schema/public/pg_stat_statements_info__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements_info__view.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict uMt2igvgqfYMrXA1HdtqKtt2fPWIIJ6qhDjjQE9do2STemMW9IH0ZbtNRjOXcaw +\restrict GDJZfR93PuYI7Q5L1I4OASujllCzXvirVRMWt5WdchmYZ0Hlfe5i4476qxKOZXs -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict uMt2igvgqfYMrXA1HdtqKtt2fPWIIJ6qhDjjQE9do2STemMW9IH0ZbtNRjOXcaw +\unrestrict GDJZfR93PuYI7Q5L1I4OASujllCzXvirVRMWt5WdchmYZ0Hlfe5i4476qxKOZXs diff --git a/pg-ddl/schema/public/platforms.sql b/pg-ddl/schema/public/platforms.sql index 00bbb6fb..0f303883 100644 --- a/pg-ddl/schema/public/platforms.sql +++ b/pg-ddl/schema/public/platforms.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict wZcHhRG7uiJR3vb3OvWTWwObpd1LeNkOA1Y3xffxeESLpO8zwXMLA2sbY65VYTT +\restrict dDJfiXXrT3ORlfGRPnwzbcblzKoqfshKdfSPZ3tyQRdt0dddjdUGqp7lWQZlO1r -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.platforms -- PostgreSQL database dump complete -- -\unrestrict wZcHhRG7uiJR3vb3OvWTWwObpd1LeNkOA1Y3xffxeESLpO8zwXMLA2sbY65VYTT +\unrestrict dDJfiXXrT3ORlfGRPnwzbcblzKoqfshKdfSPZ3tyQRdt0dddjdUGqp7lWQZlO1r diff --git a/pg-ddl/schema/public/store_app_z_scores__matview.sql b/pg-ddl/schema/public/store_app_z_scores__matview.sql index afd154d7..3e7ef582 100644 --- a/pg-ddl/schema/public/store_app_z_scores__matview.sql +++ b/pg-ddl/schema/public/store_app_z_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict nswXf8UKM9hg2locM37BlcVBcfxl8kizDSOMicnT1qdlIRXqErQ9DlL44cP82QL +\restrict DL5tynvvJy5Nl7VNZGBBBU3kOjIQYgy4eigzfXbTRhAW6tzJ9BNNY4LsCXKzb0A -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -155,5 +155,5 @@ ALTER MATERIALIZED VIEW public.store_app_z_scores OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict nswXf8UKM9hg2locM37BlcVBcfxl8kizDSOMicnT1qdlIRXqErQ9DlL44cP82QL +\unrestrict DL5tynvvJy5Nl7VNZGBBBU3kOjIQYgy4eigzfXbTRhAW6tzJ9BNNY4LsCXKzb0A diff --git a/pg-ddl/schema/public/store_app_z_scores_history.sql b/pg-ddl/schema/public/store_app_z_scores_history.sql index 2171ca31..abda1fc6 100644 --- a/pg-ddl/schema/public/store_app_z_scores_history.sql +++ b/pg-ddl/schema/public/store_app_z_scores_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict G11UcIzWxFp6s9e6sbmmcs6cEuaNTn4iwqrDwNAK9fPWdW8ujXMSINTArBxQwOa +\restrict i6T84Wkeg8xmriGsJ9LsqBrVx5KNpYXQqFc8wvLLaL7gyjoZJKuOayb0W0qDKh1 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -64,5 +64,5 @@ ALTER TABLE ONLY public.store_app_z_scores_history -- PostgreSQL database dump complete -- -\unrestrict G11UcIzWxFp6s9e6sbmmcs6cEuaNTn4iwqrDwNAK9fPWdW8ujXMSINTArBxQwOa +\unrestrict i6T84Wkeg8xmriGsJ9LsqBrVx5KNpYXQqFc8wvLLaL7gyjoZJKuOayb0W0qDKh1 diff --git a/pg-ddl/schema/public/store_apps.sql b/pg-ddl/schema/public/store_apps.sql index a0fd3eb9..f3de5c2e 100644 --- a/pg-ddl/schema/public/store_apps.sql +++ b/pg-ddl/schema/public/store_apps.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict lhBzmNUsVjM1qm1Aa0ZH82r4wDf065qSoOFGpg41Z5BcIl7rjnYyHizeXsA1Vym +\restrict 2lswl9uWBr6tPsrv3n5EsY4EUSxp7mX1d3irQ5ezrmd2LIIAmoRlVttfghLpvyb -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -163,5 +163,5 @@ ALTER TABLE ONLY public.store_apps -- PostgreSQL database dump complete -- -\unrestrict lhBzmNUsVjM1qm1Aa0ZH82r4wDf065qSoOFGpg41Z5BcIl7rjnYyHizeXsA1Vym +\unrestrict 2lswl9uWBr6tPsrv3n5EsY4EUSxp7mX1d3irQ5ezrmd2LIIAmoRlVttfghLpvyb diff --git a/pg-ddl/schema/public/store_apps_descriptions.sql b/pg-ddl/schema/public/store_apps_descriptions.sql index 90b7465e..98df13b8 100644 --- a/pg-ddl/schema/public/store_apps_descriptions.sql +++ b/pg-ddl/schema/public/store_apps_descriptions.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict hyBtNttak0oAOv3YeZRZKkADmIWgDPErI7WWCIYuLSiKb9hwkOlGgQiy3uPp0WO +\restrict 6A8HbqcHtrdvoU0JMdmzkTK7wqItWRdCnis8KMZeOoMx2CIAydplIdAkOJptcct -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.store_apps_descriptions -- PostgreSQL database dump complete -- -\unrestrict hyBtNttak0oAOv3YeZRZKkADmIWgDPErI7WWCIYuLSiKb9hwkOlGgQiy3uPp0WO +\unrestrict 6A8HbqcHtrdvoU0JMdmzkTK7wqItWRdCnis8KMZeOoMx2CIAydplIdAkOJptcct diff --git a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql index 9cd732e9..f57a1355 100644 --- a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql +++ b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Vb0gmKjqax9XMCsXdTZeorLgRgj9A9yhkjoLdXuvySi3pegA8BLayxtabvMLiqJ +\restrict 8WO4DlhK2VwCgNy8WK3ObWKgGF974Z89aHulpxoOBqfYr0pyihQbtJHyPXi5NAw -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW public.store_apps_in_latest_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict Vb0gmKjqax9XMCsXdTZeorLgRgj9A9yhkjoLdXuvySi3pegA8BLayxtabvMLiqJ +\unrestrict 8WO4DlhK2VwCgNy8WK3ObWKgGF974Z89aHulpxoOBqfYr0pyihQbtJHyPXi5NAw diff --git a/pg-ddl/schema/public/store_categories.sql b/pg-ddl/schema/public/store_categories.sql index 1eaa108a..50309ae2 100644 --- a/pg-ddl/schema/public/store_categories.sql +++ b/pg-ddl/schema/public/store_categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict QyLtn22A2Cm5ZPADXDO5nU2SqGXwIcc1c3G5CrHiMumCxPTdEGmBDIDztz11vxK +\restrict jS5tEiZMEuLV8Jp9JAMvHQ3eKTg0N7lbeFRelLEA44kMw8EAobDRUprDvMikUcF -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_categories -- PostgreSQL database dump complete -- -\unrestrict QyLtn22A2Cm5ZPADXDO5nU2SqGXwIcc1c3G5CrHiMumCxPTdEGmBDIDztz11vxK +\unrestrict jS5tEiZMEuLV8Jp9JAMvHQ3eKTg0N7lbeFRelLEA44kMw8EAobDRUprDvMikUcF diff --git a/pg-ddl/schema/public/store_collections.sql b/pg-ddl/schema/public/store_collections.sql index 514b2f36..a83fef01 100644 --- a/pg-ddl/schema/public/store_collections.sql +++ b/pg-ddl/schema/public/store_collections.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Vlc5geX29PwDpY6Lr1BHDcQQm3xYtCBBoW4ZP7jQJZeq3C8bsg5zK0UDRfY9JeT +\restrict oPI4I931PspqnrLm41frIvTeGIo2VFQEZb2D02SHQuVxtMwaIccF5RyybiDxmeY -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_collections -- PostgreSQL database dump complete -- -\unrestrict Vlc5geX29PwDpY6Lr1BHDcQQm3xYtCBBoW4ZP7jQJZeq3C8bsg5zK0UDRfY9JeT +\unrestrict oPI4I931PspqnrLm41frIvTeGIo2VFQEZb2D02SHQuVxtMwaIccF5RyybiDxmeY diff --git a/pg-ddl/schema/public/stores.sql b/pg-ddl/schema/public/stores.sql index 264c0e1e..ea519f2e 100644 --- a/pg-ddl/schema/public/stores.sql +++ b/pg-ddl/schema/public/stores.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict UBMtpKJ1TT1C79AJeP7PIqSJyWTeqi9LslNThq56J7Pk9pGAjqOKDgiAa2OikdT +\restrict t19gING1Ec4HaHb054AO8xcLdVktFTsYNVmm2FiYccEX2OnJUtlEgQLEXGCwh6O -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -93,5 +93,5 @@ ALTER TABLE ONLY public.stores -- PostgreSQL database dump complete -- -\unrestrict UBMtpKJ1TT1C79AJeP7PIqSJyWTeqi9LslNThq56J7Pk9pGAjqOKDgiAa2OikdT +\unrestrict t19gING1Ec4HaHb054AO8xcLdVktFTsYNVmm2FiYccEX2OnJUtlEgQLEXGCwh6O diff --git a/pg-ddl/schema/public/total_count_overview__matview.sql b/pg-ddl/schema/public/total_count_overview__matview.sql index 286d3242..10b244cb 100644 --- a/pg-ddl/schema/public/total_count_overview__matview.sql +++ b/pg-ddl/schema/public/total_count_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict RTC6yR3h0KYEaxeUWlMuWUhvxGUQvcFhM9yKHSHnn9xanrY1qJeiYepPgApL1Mn +\restrict z7K2kWp9YeLUamnGRsHUXkcpGaA0SohS00Ewsq1hI5qAwTf5T6jRB0q12JcQ3Xz -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -166,5 +166,5 @@ ALTER MATERIALIZED VIEW public.total_count_overview OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict RTC6yR3h0KYEaxeUWlMuWUhvxGUQvcFhM9yKHSHnn9xanrY1qJeiYepPgApL1Mn +\unrestrict z7K2kWp9YeLUamnGRsHUXkcpGaA0SohS00Ewsq1hI5qAwTf5T6jRB0q12JcQ3Xz diff --git a/pg-ddl/schema/public/version_code_api_scan_results.sql b/pg-ddl/schema/public/version_code_api_scan_results.sql index 1016e943..18ef92dc 100644 --- a/pg-ddl/schema/public/version_code_api_scan_results.sql +++ b/pg-ddl/schema/public/version_code_api_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict tBxpv5x8qPaZznBlqU8nhZimUvm8d3bRfhJNzyUVwM2rj52lkrYpkzdXZ6rFzXr +\restrict 5uHjaasaH4C0SX95sMBjed9u6x3a7UfWn5hxdbgTl6JYSMPXNCpazOgaVC729Mw -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -87,5 +87,5 @@ ALTER TABLE ONLY public.version_code_api_scan_results -- PostgreSQL database dump complete -- -\unrestrict tBxpv5x8qPaZznBlqU8nhZimUvm8d3bRfhJNzyUVwM2rj52lkrYpkzdXZ6rFzXr +\unrestrict 5uHjaasaH4C0SX95sMBjed9u6x3a7UfWn5hxdbgTl6JYSMPXNCpazOgaVC729Mw diff --git a/pg-ddl/schema/public/version_code_sdk_scan_results.sql b/pg-ddl/schema/public/version_code_sdk_scan_results.sql index 10c255c4..bceb5126 100644 --- a/pg-ddl/schema/public/version_code_sdk_scan_results.sql +++ b/pg-ddl/schema/public/version_code_sdk_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict JCO2J2ze0vieEuFYnSTBDOS3htkmCxrsbSerKMzxThGBulIXMjJCrKRYoWLcRCK +\restrict LjGLbcldSprv7TLfqpco5dc4CQOXt0yHDf03wxxkMD0XK0aEoWFtNXoRwwa1ZYw -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.version_code_sdk_scan_results -- PostgreSQL database dump complete -- -\unrestrict JCO2J2ze0vieEuFYnSTBDOS3htkmCxrsbSerKMzxThGBulIXMjJCrKRYoWLcRCK +\unrestrict LjGLbcldSprv7TLfqpco5dc4CQOXt0yHDf03wxxkMD0XK0aEoWFtNXoRwwa1ZYw diff --git a/pg-ddl/schema/public/version_codes.sql b/pg-ddl/schema/public/version_codes.sql index f92ecf6c..4c93d1f2 100644 --- a/pg-ddl/schema/public/version_codes.sql +++ b/pg-ddl/schema/public/version_codes.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1l2zqjEQk44hWvTnBmvHPVQFObQwOwotoF3Me19zFG6WP8RumnC2mcA2p754ZWD +\restrict ASPwxokjxiKuiDGWtsvoD4dsvbVQttUOsiAQfh6kc6fl8nrov0ahmWay7Xvwnz4 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -89,5 +89,5 @@ ALTER TABLE ONLY public.version_codes -- PostgreSQL database dump complete -- -\unrestrict 1l2zqjEQk44hWvTnBmvHPVQFObQwOwotoF3Me19zFG6WP8RumnC2mcA2p754ZWD +\unrestrict ASPwxokjxiKuiDGWtsvoD4dsvbVQttUOsiAQfh6kc6fl8nrov0ahmWay7Xvwnz4 diff --git a/pg-ddl/schema/public/version_details_map.sql b/pg-ddl/schema/public/version_details_map.sql index 7b43383b..333e45dc 100644 --- a/pg-ddl/schema/public/version_details_map.sql +++ b/pg-ddl/schema/public/version_details_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 8LzdC2FJ8oRO9yeIrCKR8SkQGiaw2ayBrukTnHhOquzpKg1PuJ6OgP2zhb09TBW +\restrict Sx5ukaOBQ4sQlHkmc8G5EKgS9gaapDzZMcYiJmPOv6F6x6AifTuei5CKkspDzam -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_details_map -- PostgreSQL database dump complete -- -\unrestrict 8LzdC2FJ8oRO9yeIrCKR8SkQGiaw2ayBrukTnHhOquzpKg1PuJ6OgP2zhb09TBW +\unrestrict Sx5ukaOBQ4sQlHkmc8G5EKgS9gaapDzZMcYiJmPOv6F6x6AifTuei5CKkspDzam diff --git a/pg-ddl/schema/public/version_manifests.sql b/pg-ddl/schema/public/version_manifests.sql index 0b93f534..47125dc3 100644 --- a/pg-ddl/schema/public/version_manifests.sql +++ b/pg-ddl/schema/public/version_manifests.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict FRfHNh1l2ZaWVCA1VqC1cbuJVrFv1JEahhh4jONdiY42DvV6vKaGBzKGtcJAYHZ +\restrict babGPeOSGxSOt89YsfKoGWxfpP2YQolFYc64IQQf6TeZCuLo0rYCa8Dqw3U8s4T -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_manifests -- PostgreSQL database dump complete -- -\unrestrict FRfHNh1l2ZaWVCA1VqC1cbuJVrFv1JEahhh4jONdiY42DvV6vKaGBzKGtcJAYHZ +\unrestrict babGPeOSGxSOt89YsfKoGWxfpP2YQolFYc64IQQf6TeZCuLo0rYCa8Dqw3U8s4T diff --git a/pg-ddl/schema/public/version_strings.sql b/pg-ddl/schema/public/version_strings.sql index a0fd0cfa..567360f9 100644 --- a/pg-ddl/schema/public/version_strings.sql +++ b/pg-ddl/schema/public/version_strings.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict NQW0dnSNpDPYOaRO9dhfEOLNvseQ74pF8OHqocjc3lmolchfaMCvase78ytsFyj +\restrict fggl9waxUZwOeqTQLZwa1969tDX9OgOqkHQ58DpCFCBU5hgXvS8mDNEX5DmDxaC -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -106,5 +106,5 @@ CREATE INDEX version_strings_xml_path_trgm_idx ON public.version_strings USING g -- PostgreSQL database dump complete -- -\unrestrict NQW0dnSNpDPYOaRO9dhfEOLNvseQ74pF8OHqocjc3lmolchfaMCvase78ytsFyj +\unrestrict fggl9waxUZwOeqTQLZwa1969tDX9OgOqkHQ58DpCFCBU5hgXvS8mDNEX5DmDxaC From d139beda6a7e6815ac231badf16d557ce43c520a Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Fri, 6 Feb 2026 14:21:35 +0800 Subject: [PATCH 63/81] Scrape apple HTML for ad supported and in apps --- adscrawler/app_stores/apple.py | 89 ++++---------------------- adscrawler/app_stores/scrape_stores.py | 9 ++- 2 files changed, 22 insertions(+), 76 deletions(-) diff --git a/adscrawler/app_stores/apple.py b/adscrawler/app_stores/apple.py index bac0210d..63cf8653 100644 --- a/adscrawler/app_stores/apple.py +++ b/adscrawler/app_stores/apple.py @@ -183,25 +183,25 @@ def scrape_store_html(store_id: str, country: str) -> dict: headers = {"User-Agent": "Mozilla/5.0"} response = requests.get(url, headers=headers) - html = response.text - if response.status_code != 200: logger.error(f"Failed to retrieve the page: {response.status_code}") return {} soup = BeautifulSoup(response.text, "html.parser") + in_app_purchase_element = soup.find( - "li", class_="inline-list__item--bulleted", string="Offers In-App Purchases" - ) - has_in_app_purchases = in_app_purchase_element is not None + "p", + class_=["attributes"], + string=re.compile(r"Purchases", re.I) +) - try: - privacy_details = get_privacy_details(html, country, store_id) - except Exception as e: - logger.error(f"Failed to get privacy details for {store_id=} {country=} {e}") - privacy_details = None + has_in_app_purchases = in_app_purchase_element is not None - has_third_party_advertising = "THIRD_PARTY_ADVERTISING" in str(privacy_details) + purpose_section = soup.find( + "section", + class_=lambda classes: classes and "purpose-section" in classes + ) + has_third_party_advertising = 'third-party advertising' in purpose_section.get_text(strip=True).lower() urls = get_urls_from_html(soup) @@ -229,69 +229,6 @@ def get_urls_from_html(soup: BeautifulSoup) -> dict: return urls -def get_privacy_details(html: str, country: str, store_id: str) -> dict: - """ - Get privacy details for an iOS app from the App Store. - - Args: - html: HTML of the App Store page - country: Country code (default: 'US') - store_id: App Store ID of the app - - Returns: - True if the app has third-party advertising, False otherwise - """ - - # Extract the token using regex - reg_exp = r"token%22%3A%22([^%]+)%22%7D" - match = re.search(reg_exp, html) - if not match: - raise ValueError("Could not extract token from App Store page") - - token = match.group(1) - - # Make request to the API for privacy details - api_url = f"https://amp-api-edge.apps.apple.com/v1/catalog/{country}/apps/{store_id}?platform=web&fields=privacyDetails" - api_headers = { - "Origin": "https://apps.apple.com", - "Authorization": f"Bearer {token}", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36", - } - - response = requests.get(api_url, headers=api_headers) - response.raise_for_status() - - data = response.json() - - if not data.get("data") or len(data["data"]) == 0: - raise ValueError("App not found (404)") - privacy_details: dict = data["data"][0]["attributes"]["privacyDetails"] - return privacy_details - - -def find_privacy_policy_id(soup: BeautifulSoup) -> str | None: - privacy_learn_more = soup.find("p", class_="app-privacy__learn-more") - - if privacy_learn_more: - # Get the anchor tag inside the paragraph - link = privacy_learn_more.find("a") - - if link: - # Extract the full URL - url = link.get("href") - print(f"URL: {url}") - - # Extract the ID from the URL - # The URL format is https://apps.apple.com/story/id1538632801 - if "id" in url: - # Find the position where "id" starts and extract everything after it - id_position = url.find("id") - if id_position != -1: - id_value: str = url[id_position + 2 :] # +2 to skip the "id" prefix - print(f"ID: {id_value}") # This will print: 1538632801 - return id_value - return None - def get_developer_url(result: dict, urls: dict) -> str: """ @@ -328,7 +265,7 @@ def get_developer_url(result: dict, urls: dict) -> str: return final_url -def scrape_app_ios(store_id: str, country: str, language: str) -> dict: +def scrape_app_ios(store_id: str, country: str, language: str, scrape_html: bool = False) -> dict: """Scrape iOS app details from the App Store. yt_us = scrape_app_ios("544007664", "us", language="en") yt_de = scrape_app_ios("544007664", "de", language="en") @@ -355,6 +292,8 @@ def scrape_app_ios(store_id: str, country: str, language: str) -> dict: result_dict: dict = scraper.get_app_details( store_id, country=country, add_ratings=True, timeout=10, lang=language ) + if scrape_html: + result_dict = scrape_itunes_additional_html(result_dict, store_id, country) logger.debug(f"store=2 {country=} {language=} {store_id=} ios store scraped") return result_dict diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index e90efb58..4ec73132 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -84,6 +84,7 @@ def _scrape_single_app( store_id=row["store_id"], country=row["country_code"].lower(), language=row["language"].lower(), + html_last_scraped_at=row['html_last_scraped_at'], ) result["store_app_db_id"] = row["store_app"] if process_icon: @@ -726,11 +727,15 @@ def scrape_from_store( store_id: str, country: str, language: str, + html_last_scraped_at: datetime.datetime | None = None, ) -> dict: if store == 1: result_dict = scrape_app_gp(store_id, country=country, language=language) elif store == 2: - result_dict = scrape_app_ios(store_id, country=country, language=language) + scrape_html = False + if country == "us" and (html_last_scraped_at is None or html_last_scraped_at < datetime.datetime.now(tz=datetime.UTC) - datetime.timedelta(days=30)): + scrape_html = True + result_dict = scrape_app_ios(store_id, country=country, language=language, scrape_html=scrape_html) else: logger.error(f"Store not supported {store=}") return result_dict @@ -749,6 +754,7 @@ def scrape_app( store_id: str, country: str, language: str, + html_last_scraped_at: datetime.datetime | None = None, ) -> dict: scrape_info = f"{store=}, {country=}, {language=}, {store_id=} scrape_app" max_retries = 2 @@ -765,6 +771,7 @@ def scrape_app( store_id=store_id, country=country, language=language, + html_last_scraped_at=html_last_scraped_at, ) crawl_result = 1 break # If successful, break out of the retry loop From a02e2702d4af3a88cd5859a9706af79281b8880e Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Fri, 6 Feb 2026 14:27:34 +0800 Subject: [PATCH 64/81] default to none --- adscrawler/app_stores/apple.py | 20 +++++++++---------- adscrawler/app_stores/scrape_stores.py | 12 ++++++++--- .../sql/query_apps_to_update_primary.sql | 2 +- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/adscrawler/app_stores/apple.py b/adscrawler/app_stores/apple.py index 63cf8653..b2acf04f 100644 --- a/adscrawler/app_stores/apple.py +++ b/adscrawler/app_stores/apple.py @@ -190,18 +190,17 @@ def scrape_store_html(store_id: str, country: str) -> dict: soup = BeautifulSoup(response.text, "html.parser") in_app_purchase_element = soup.find( - "p", - class_=["attributes"], - string=re.compile(r"Purchases", re.I) -) + "p", class_=["attributes"], string=re.compile(r"Purchases", re.I) + ) has_in_app_purchases = in_app_purchase_element is not None purpose_section = soup.find( - "section", - class_=lambda classes: classes and "purpose-section" in classes + "section", class_=lambda classes: classes and "purpose-section" in classes + ) + has_third_party_advertising = ( + "third-party advertising" in purpose_section.get_text(strip=True).lower() ) - has_third_party_advertising = 'third-party advertising' in purpose_section.get_text(strip=True).lower() urls = get_urls_from_html(soup) @@ -229,7 +228,6 @@ def get_urls_from_html(soup: BeautifulSoup) -> dict: return urls - def get_developer_url(result: dict, urls: dict) -> str: """ Decide if we should crawl the store html for the developer url. @@ -265,7 +263,9 @@ def get_developer_url(result: dict, urls: dict) -> str: return final_url -def scrape_app_ios(store_id: str, country: str, language: str, scrape_html: bool = False) -> dict: +def scrape_app_ios( + store_id: str, country: str, language: str, scrape_html: bool = False +) -> dict: """Scrape iOS app details from the App Store. yt_us = scrape_app_ios("544007664", "us", language="en") yt_de = scrape_app_ios("544007664", "de", language="en") @@ -305,9 +305,9 @@ def scrape_itunes_additional_html(result: dict, store_id: str, country: str) -> result["in_app_purchases"] = html_res["in_app_purchases"] result["ad_supported"] = html_res["ad_supported"] result["sellerUrl"] = get_developer_url(result, html_res["urls"]) + result["additional_html_scraped_at"] = datetime.datetime.now(tz=datetime.UTC) except Exception as e: logger.warning(f"Failed to get developer url for {store_id=} {country=} {e}") - result["additional_html_scraped_at"] = datetime.datetime.now(tz=datetime.UTC) return result diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index 4ec73132..adc9f3e4 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -84,7 +84,7 @@ def _scrape_single_app( store_id=row["store_id"], country=row["country_code"].lower(), language=row["language"].lower(), - html_last_scraped_at=row['html_last_scraped_at'], + html_last_scraped_at=row.get("html_last_scraped_at", None), ) result["store_app_db_id"] = row["store_app"] if process_icon: @@ -733,9 +733,15 @@ def scrape_from_store( result_dict = scrape_app_gp(store_id, country=country, language=language) elif store == 2: scrape_html = False - if country == "us" and (html_last_scraped_at is None or html_last_scraped_at < datetime.datetime.now(tz=datetime.UTC) - datetime.timedelta(days=30)): + if country == "us" and ( + html_last_scraped_at is None + or html_last_scraped_at + < datetime.datetime.now(tz=datetime.UTC) - datetime.timedelta(days=30) + ): scrape_html = True - result_dict = scrape_app_ios(store_id, country=country, language=language, scrape_html=scrape_html) + result_dict = scrape_app_ios( + store_id, country=country, language=language, scrape_html=scrape_html + ) else: logger.error(f"Store not supported {store=}") return result_dict diff --git a/adscrawler/dbcon/sql/query_apps_to_update_primary.sql b/adscrawler/dbcon/sql/query_apps_to_update_primary.sql index ed513a44..614a2426 100644 --- a/adscrawler/dbcon/sql/query_apps_to_update_primary.sql +++ b/adscrawler/dbcon/sql/query_apps_to_update_primary.sql @@ -41,7 +41,7 @@ SELECT ctc.alpha2 AS country_code, ctc.priority, sa.icon_url_100, - sa.additional_html_scraped_at, + sa.additional_html_scraped_at AS html_last_scraped_at, sa.updated_at AS app_updated_at, lc.crawled_at AS country_crawled_at FROM From 6cdfffdce47d27695a6ad8618020bf0b6c4e5a26 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Fri, 6 Feb 2026 14:28:29 +0800 Subject: [PATCH 65/81] Remove unused columns --- adscrawler/dbcon/sql/query_apps_to_update_any_new.sql | 1 - adscrawler/dbcon/sql/query_apps_to_update_secondary.sql | 2 -- 2 files changed, 3 deletions(-) diff --git a/adscrawler/dbcon/sql/query_apps_to_update_any_new.sql b/adscrawler/dbcon/sql/query_apps_to_update_any_new.sql index fa004f65..97b68667 100644 --- a/adscrawler/dbcon/sql/query_apps_to_update_any_new.sql +++ b/adscrawler/dbcon/sql/query_apps_to_update_any_new.sql @@ -4,7 +4,6 @@ SELECT sa.store_id, 'US' AS country_code, sa.icon_url_100, - sa.additional_html_scraped_at, sa.updated_at AS app_updated_at FROM public.store_apps AS sa diff --git a/adscrawler/dbcon/sql/query_apps_to_update_secondary.sql b/adscrawler/dbcon/sql/query_apps_to_update_secondary.sql index db7115d9..6e1fd61e 100644 --- a/adscrawler/dbcon/sql/query_apps_to_update_secondary.sql +++ b/adscrawler/dbcon/sql/query_apps_to_update_secondary.sql @@ -4,7 +4,6 @@ WITH target_apps AS ( sa.id AS store_app, sa.store_id, sa.icon_url_100, - sa.additional_html_scraped_at, sa.updated_at, sa.store_last_updated, agm.installs, @@ -102,7 +101,6 @@ SELECT ctc.alpha2 AS country_code, ctc.priority, sa.icon_url_100, - sa.additional_html_scraped_at, sa.updated_at AS app_updated_at, lc.crawled_at AS country_crawled_at FROM From db9912f596ef2ecd41556167d59a13db32370571 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Wed, 11 Feb 2026 23:13:13 +0800 Subject: [PATCH 66/81] Fix apple global metrics by querying historical country data and combining for global metrics --- adscrawler/app_stores/process_from_s3.py | 54 +++++++++++++++--------- adscrawler/dbcon/queries.py | 41 ++++++++++++++++++ 2 files changed, 74 insertions(+), 21 deletions(-) diff --git a/adscrawler/app_stores/process_from_s3.py b/adscrawler/app_stores/process_from_s3.py index 92ecc06c..0706bcc2 100644 --- a/adscrawler/app_stores/process_from_s3.py +++ b/adscrawler/app_stores/process_from_s3.py @@ -17,6 +17,7 @@ from adscrawler.dbcon.queries import ( clean_app_ranks_weekly_table, delete_and_insert, + get_ios_app_country_history, query_categories, query_collections, query_countries, @@ -158,18 +159,6 @@ def get_s3_rank_parquet_paths( return all_parquet_paths -def get_s3_app_details_parquet_paths( - snapshot_date: pd.DatetimeIndex, - store: int, -) -> list[str]: - bucket = CONFIG["s3"]["bucket"] - all_parquet_paths = [] - ddt_str = snapshot_date.strftime("%Y-%m-%d") - prefix = f"raw-data/app_details/store={store}/crawled_date={ddt_str}/country=" - all_parquet_paths += get_parquet_paths_by_prefix(bucket, prefix) - return all_parquet_paths - - def get_s3_agg_app_snapshots_parquet_paths( bucket: str, start_date: pd.DatetimeIndex, @@ -230,17 +219,18 @@ def check_for_duplicates(df: pd.DataFrame, key_columns: list[str]) -> None: def make_s3_app_country_metrics_history( store: int, snapshot_date: pd.DatetimeIndex ) -> None: - app_detail_parquets = get_s3_app_details_parquet_paths( - snapshot_date=snapshot_date, - store=store, - ) + s3_config_key = "s3" + bucket = CONFIG[s3_config_key]["bucket"] snapshot_date_str = snapshot_date.strftime("%Y-%m-%d") + prefix = ( + f"raw-data/app_details/store={store}/crawled_date={snapshot_date_str}/country=" + ) + app_detail_parquets = get_parquet_paths_by_prefix(bucket, prefix) if len(app_detail_parquets) == 0: logger.error( f"No app detail parquet files found for store={store} snapshot_date={snapshot_date_str}" ) return - s3_config_key = "s3" query = app_details_country_history_query( store=store, app_detail_parquets=app_detail_parquets, @@ -265,8 +255,13 @@ def prep_app_metrics_history( unit="s", ) if store == 2: - ratings_str = df["user_ratings"].str.extractall(r"(\d+)").unstack() - ratings_str = ratings_str.reindex(df.index, fill_value=0) + ratings_str = ( + df["user_ratings"] + .str.extractall(r"(\d+)") + .unstack() + .astype("Int64") + .reindex(df.index, fill_value=0) + ) df[STAR_COLS] = ratings_str.iloc[:, 1::2].astype(int).to_numpy() df["store_last_updated"] = pd.to_datetime( df["store_last_updated"], format="ISO8601", utc=True @@ -298,7 +293,8 @@ def manual_import_app_metrics_from_s3( use_ssh_tunnel=use_tunnel, config_key="madrone" ) - start_date = datetime.datetime.fromisoformat("2025-10-01").date() + start_date = datetime.datetime.fromisoformat("2025-12-15").date() + end_date = datetime.datetime.today().date() for snapshot_date in pd.date_range(start_date, end_date, freq="D"): snapshot_date = snapshot_date.date() for store in [1, 2]: @@ -339,7 +335,7 @@ def process_app_metrics_to_db( problem_rows = df["store_id"].str.contains(".0") if problem_rows.any(): logger.warning( - f'Apple App IDs: Found {problem_rows.sum()} store_id with ".0" suffix, fixing' + f'Apple App IDs: Found {problem_rows.sum()}/{df.shape[0]} store_id with ".0" suffix, fixing' ) df.loc[problem_rows, "store_id"] = ( df.loc[problem_rows, "store_id"].str.split(".").str[0] @@ -378,6 +374,21 @@ def process_app_metrics_to_db( df = df[df["country"] == "US"] df[STAR_COLS] = df["histogram"].apply(pd.Series) if store == 2: + ios_app_country_history = get_ios_app_country_history( + database_connection, snapshot_date=snapshot_date, days_back=90 + ) + ios_app_country_history = ios_app_country_history[ + ios_app_country_history["store_app"].isin(df["store_app"]) + ] + ios_app_country_history["crawled_date"] = pd.to_datetime( + ios_app_country_history["snapshot_date"] + ) + # For the group by this will need to be the snapshot_date from start + ios_app_country_history["snapshot_date"] = snapshot_date + df = pd.concat([ios_app_country_history, df], axis=0) + df = df.sort_values(by=["crawled_date"], ascending=True).drop_duplicates( + subset=["store_app", "country_id"], keep="last" + ) weighted_sum = ( (df["rating"] * df["rating_count"]) .groupby([df[k] for k in GLOBAL_HISTORY_KEYS]) @@ -394,6 +405,7 @@ def process_app_metrics_to_db( df["rating"] = weighted_sum / weight_total df["rating"] = df["rating"].astype("float64") df = df.reset_index() + check_for_duplicates( df=df, key_columns=GLOBAL_HISTORY_KEYS, diff --git a/adscrawler/dbcon/queries.py b/adscrawler/dbcon/queries.py index d749e209..5957e8ce 100644 --- a/adscrawler/dbcon/queries.py +++ b/adscrawler/dbcon/queries.py @@ -1466,3 +1466,44 @@ def get_all_mmp_tlds(database_connection: PostgresCon) -> pd.DataFrame: """ df = pd.read_sql(sel_query, con=database_connection.engine) return df + + +def get_ios_app_country_history( + database_connection: PostgresCon, snapshot_date: datetime.date, days_back: int +) -> pd.DataFrame: + start_date = (snapshot_date - datetime.timedelta(days=days_back)).strftime( + "%Y-%m-%d" + ) + end_date = snapshot_date.strftime("%Y-%m-%d") + sel_query = f"""SELECT + DISTINCT ON + ( + store_app, + country_id + ) + acmh.store_app, + acmh.snapshot_date, + acmh.country_id, + review_count, + rating, + rating_count, + one_star, + two_star, + three_star, + four_star, + five_star + FROM + app_country_metrics_history acmh + LEFT JOIN store_apps sa ON + acmh.store_app = sa.id + WHERE + snapshot_date >= '{start_date}' + AND snapshot_date <= '{end_date}' + AND sa.store = 2 + ORDER BY + store_app, + country_id, + snapshot_date DESC + """ + df = pd.read_sql(sel_query, con=database_connection.engine) + return df From f7c23b84b179ef0b75c8fe6f2333ae29fd423ffa Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Thu, 12 Feb 2026 09:20:20 +0800 Subject: [PATCH 67/81] Fixes for pulling apple data --- adscrawler/app_stores/process_from_s3.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/adscrawler/app_stores/process_from_s3.py b/adscrawler/app_stores/process_from_s3.py index 0706bcc2..b623c23b 100644 --- a/adscrawler/app_stores/process_from_s3.py +++ b/adscrawler/app_stores/process_from_s3.py @@ -293,11 +293,12 @@ def manual_import_app_metrics_from_s3( use_ssh_tunnel=use_tunnel, config_key="madrone" ) - start_date = datetime.datetime.fromisoformat("2025-12-15").date() + start_date = datetime.datetime.fromisoformat("2026-01-21").date() end_date = datetime.datetime.today().date() for snapshot_date in pd.date_range(start_date, end_date, freq="D"): snapshot_date = snapshot_date.date() - for store in [1, 2]: + # for store in [1, 2]: + for store in [2]: try: process_app_metrics_to_db(database_connection, store, snapshot_date) except: @@ -383,8 +384,8 @@ def process_app_metrics_to_db( ios_app_country_history["crawled_date"] = pd.to_datetime( ios_app_country_history["snapshot_date"] ) - # For the group by this will need to be the snapshot_date from start - ios_app_country_history["snapshot_date"] = snapshot_date + # For the group by this will need to be the snapshot_date being calculated for + ios_app_country_history["snapshot_date"] = pd.to_datetime(snapshot_date) df = pd.concat([ios_app_country_history, df], axis=0) df = df.sort_values(by=["crawled_date"], ascending=True).drop_duplicates( subset=["store_app", "country_id"], keep="last" From 72c9864e1e1943506e8d1f53ecbe1b5c8557642c Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Thu, 12 Feb 2026 09:26:04 +0800 Subject: [PATCH 68/81] Dump recent MV changes --- pg-ddl/schema/adtech/api_call_urls.sql | 4 +- pg-ddl/schema/adtech/categories.sql | 4 +- ..._store_apps_companies_2025_h1__matview.sql | 4 +- ..._store_apps_companies_2025_h2__matview.sql | 4 +- ...combined_store_apps_companies__matview.sql | 4 +- ...d_store_apps_parent_companies__matview.sql | 4 +- pg-ddl/schema/adtech/companies.sql | 4 +- .../adtech/company_categories__matview.sql | 4 +- pg-ddl/schema/adtech/company_developers.sql | 4 +- .../schema/adtech/company_domain_mapping.sql | 4 +- .../adtech/company_mediation_adapters.sql | 4 +- .../company_share_change_2025__matview.sql | 4 +- .../company_shares_2025_common__matview.sql | 4 +- pg-ddl/schema/adtech/sdk_categories.sql | 4 +- .../schema/adtech/sdk_mediation_patterns.sql | 4 +- pg-ddl/schema/adtech/sdk_packages.sql | 4 +- pg-ddl/schema/adtech/sdk_paths.sql | 4 +- pg-ddl/schema/adtech/sdks.sql | 4 +- ...store_app_sdk_strings_2025_h1__matview.sql | 4 +- ...store_app_sdk_strings_2025_h2__matview.sql | 4 +- .../adtech/store_app_sdk_strings__matview.sql | 4 +- pg-ddl/schema/adtech/url_redirect_chains.sql | 4 +- pg-ddl/schema/adtech/urls.sql | 4 +- .../adstxt_ad_domain_overview__matview.sql | 4 +- .../adstxt_entries_store_apps__matview.sql | 4 +- .../adstxt_publishers_overview__matview.sql | 4 +- .../advertiser_creative_rankings__matview.sql | 4 +- ...reative_rankings_recent_month__matview.sql | 4 +- .../advertiser_creatives__matview.sql | 4 +- .../frontend/api_call_countries__matview.sql | 4 +- .../app_keyword_rank_stats__matview.sql | 4 +- .../frontend/app_keyword_ranks_daily.sql | 4 +- .../frontend/apps_new_monthly__matview.sql | 4 +- .../frontend/apps_new_weekly__matview.sql | 4 +- .../frontend/apps_new_yearly__matview.sql | 4 +- .../frontend/category_tag_stats__matview.sql | 38 +- .../companies_apps_overview__matview.sql | 4 +- .../companies_category_stats__matview.sql | 46 +-- .../companies_category_tag_stats__matview.sql | 37 +- ...anies_category_tag_type_stats__matview.sql | 46 +-- .../companies_creative_rankings__matview.sql | 4 +- ...companies_open_source_percent__matview.sql | 4 +- ...mpanies_parent_category_stats__matview.sql | 40 +- ...ies_parent_category_tag_stats__matview.sql | 36 +- .../companies_sdks_overview__matview.sql | 4 +- .../company_domain_country__matview.sql | 4 +- .../company_domains_top_apps__matview.sql | 4 +- .../company_parent_top_apps__matview.sql | 4 +- .../frontend/company_top_apps__matview.sql | 4 +- .../frontend/keyword_scores__matview.sql | 4 +- .../latest_sdk_scanned_apps__matview.sql | 4 +- .../mediation_adapter_app_counts__matview.sql | 4 +- .../store_app_api_companies__matview.sql | 4 +- .../store_app_ranks_best_monthly__matview.sql | 4 +- .../schema/frontend/store_app_ranks_daily.sql | 4 +- .../store_app_ranks_latest__matview.sql | 4 +- .../frontend/store_app_ranks_weekly.sql | 4 +- .../frontend/store_apps_overview__matview.sql | 29 +- .../frontend/store_apps_z_scores__matview.sql | 4 +- .../total_categories_app_counts__matview.sql | 57 --- pg-ddl/schema/full_db_dump.sql | 364 +++++++++--------- pg-ddl/schema/logging/app_country_crawls.sql | 4 +- .../app_description_keywords_extracted.sql | 4 +- .../schema/logging/creative_scan_results.sql | 4 +- .../schema/logging/developers_crawled_at.sql | 4 +- pg-ddl/schema/logging/keywords_crawled_at.sql | 4 +- .../schema/logging/snapshot_pub_domains.sql | 4 +- pg-ddl/schema/logging/store_app_downloads.sql | 4 +- .../schema/logging/store_app_no_creatives.sql | 4 +- pg-ddl/schema/logging/store_app_sources.sql | 4 +- .../logging/store_app_waydroid_crawled_at.sql | 4 +- pg-ddl/schema/logging/store_apps_snapshot.sql | 4 +- .../logging/version_code_api_scan_results.sql | 4 +- .../public/ad_network_sdk_keys__matview.sql | 4 +- pg-ddl/schema/public/adstxt_crawl_results.sql | 4 +- pg-ddl/schema/public/api_calls.sql | 4 +- pg-ddl/schema/public/app_ads_entrys.sql | 4 +- pg-ddl/schema/public/app_ads_map.sql | 4 +- .../public/app_country_metrics_history.sql | 4 +- .../app_country_metrics_latest__matview.sql | 4 +- .../public/app_global_metrics_history.sql | 4 +- .../app_global_metrics_latest__matview.sql | 4 +- ...p_global_metrics_weekly_diffs__matview.sql | 4 +- .../schema/public/app_keywords_extracted.sql | 4 +- pg-ddl/schema/public/app_urls_map.sql | 4 +- .../public/category_mapping__matview.sql | 4 +- pg-ddl/schema/public/countries.sql | 4 +- pg-ddl/schema/public/crawl_results.sql | 4 +- .../public/crawl_scenario_country_config.sql | 4 +- pg-ddl/schema/public/crawl_scenarios.sql | 4 +- pg-ddl/schema/public/creative_assets.sql | 4 +- pg-ddl/schema/public/creative_records.sql | 4 +- .../public/developer_store_apps__matview.sql | 4 +- pg-ddl/schema/public/developers.sql | 4 +- pg-ddl/schema/public/domains.sql | 4 +- pg-ddl/schema/public/ip_geo_snapshots.sql | 4 +- pg-ddl/schema/public/keywords.sql | 4 +- pg-ddl/schema/public/keywords_base.sql | 4 +- pg-ddl/schema/public/languages.sql | 4 +- .../public/mv_app_categories__matview.sql | 4 +- .../public/pg_stat_statements__view.sql | 4 +- .../public/pg_stat_statements_info__view.sql | 4 +- pg-ddl/schema/public/platforms.sql | 4 +- .../public/store_app_z_scores__matview.sql | 4 +- .../public/store_app_z_scores_history.sql | 4 +- pg-ddl/schema/public/store_apps.sql | 11 +- .../schema/public/store_apps_descriptions.sql | 4 +- ...store_apps_in_latest_rankings__matview.sql | 4 +- pg-ddl/schema/public/store_categories.sql | 4 +- pg-ddl/schema/public/store_collections.sql | 4 +- pg-ddl/schema/public/stores.sql | 4 +- .../public/total_count_overview__matview.sql | 4 +- .../public/version_code_api_scan_results.sql | 4 +- .../public/version_code_sdk_scan_results.sql | 4 +- pg-ddl/schema/public/version_codes.sql | 4 +- pg-ddl/schema/public/version_details_map.sql | 4 +- pg-ddl/schema/public/version_manifests.sql | 4 +- pg-ddl/schema/public/version_strings.sql | 4 +- 118 files changed, 513 insertions(+), 623 deletions(-) delete mode 100644 pg-ddl/schema/frontend/total_categories_app_counts__matview.sql diff --git a/pg-ddl/schema/adtech/api_call_urls.sql b/pg-ddl/schema/adtech/api_call_urls.sql index 3e5bb4f5..2918c074 100644 --- a/pg-ddl/schema/adtech/api_call_urls.sql +++ b/pg-ddl/schema/adtech/api_call_urls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict UmUo4mP1z9zqv7IwCZjdaiTYUNdARQppqr3wurxtPylIaaCD1auBaoyd7hEbjvA +\restrict qLfJFer9aFoEwKRjbeQrvsQo8xvRWuxPGyfkTWzaygfgN4v1hveMPMKzMMzfmCi -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -118,5 +118,5 @@ ALTER TABLE ONLY adtech.api_call_urls -- PostgreSQL database dump complete -- -\unrestrict UmUo4mP1z9zqv7IwCZjdaiTYUNdARQppqr3wurxtPylIaaCD1auBaoyd7hEbjvA +\unrestrict qLfJFer9aFoEwKRjbeQrvsQo8xvRWuxPGyfkTWzaygfgN4v1hveMPMKzMMzfmCi diff --git a/pg-ddl/schema/adtech/categories.sql b/pg-ddl/schema/adtech/categories.sql index 151698f0..38c04d1a 100644 --- a/pg-ddl/schema/adtech/categories.sql +++ b/pg-ddl/schema/adtech/categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict k69V3DPP9IPgBQo7dqGmIzjkZvnmpLLgHKcVWU8OJ15C5Tk4t3RMfBZModzj7A1 +\restrict V76Auu7Z1kiEHG1QvSr2jlRDdbYeMU4zHrQ3hnvSA260c1stvjXKhvRMfuA31g6 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -62,5 +62,5 @@ ALTER TABLE ONLY adtech.categories -- PostgreSQL database dump complete -- -\unrestrict k69V3DPP9IPgBQo7dqGmIzjkZvnmpLLgHKcVWU8OJ15C5Tk4t3RMfBZModzj7A1 +\unrestrict V76Auu7Z1kiEHG1QvSr2jlRDdbYeMU4zHrQ3hnvSA260c1stvjXKhvRMfuA31g6 diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql index 0202da45..f43c742e 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 8qzBLCAbuz5LtwtGuVGvo0HemUnHlvpFc1tH74g54xG0mNHadM2v7RCZTyoGBjX +\restrict fiTO2DTsb8nR8x0vfmXIUvfNWwSV5pAABO2TAthEm4rpt8f4vqSO1vVuwsCLpHH -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -124,5 +124,5 @@ ALTER MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h1 OWNER TO po -- PostgreSQL database dump complete -- -\unrestrict 8qzBLCAbuz5LtwtGuVGvo0HemUnHlvpFc1tH74g54xG0mNHadM2v7RCZTyoGBjX +\unrestrict fiTO2DTsb8nR8x0vfmXIUvfNWwSV5pAABO2TAthEm4rpt8f4vqSO1vVuwsCLpHH diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql index 2d9b3080..b66ed8d2 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 9hheZ0eKBh3rrrlcOMdm3QfCLnirYw1mwrGBBeZu25Xw5Brm4fPER17ROVt171C +\restrict hTYVTy2tZOPz6cvQT4oJeqKqZTzdEbvLcYmeYH9Wgurphbati35OvTRS4hVnCXj -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -124,5 +124,5 @@ ALTER MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h2 OWNER TO po -- PostgreSQL database dump complete -- -\unrestrict 9hheZ0eKBh3rrrlcOMdm3QfCLnirYw1mwrGBBeZu25Xw5Brm4fPER17ROVt171C +\unrestrict hTYVTy2tZOPz6cvQT4oJeqKqZTzdEbvLcYmeYH9Wgurphbati35OvTRS4hVnCXj diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql index 496ce046..a178fb17 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict xegnZ3NcuI3LFknzKbwaxF0e9ELISSFT9Oh2Pd7B1oY69sqQIj2F4NwsSgXRa3h +\restrict lgba4mJG8ggwNvbUgpwAfq4u5XPKLo3zFXAuJXsGAAMcgi2CEAA0gqgjppHHC5r -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -165,5 +165,5 @@ CREATE UNIQUE INDEX combined_store_app_companies_idx ON adtech.combined_store_ap -- PostgreSQL database dump complete -- -\unrestrict xegnZ3NcuI3LFknzKbwaxF0e9ELISSFT9Oh2Pd7B1oY69sqQIj2F4NwsSgXRa3h +\unrestrict lgba4mJG8ggwNvbUgpwAfq4u5XPKLo3zFXAuJXsGAAMcgi2CEAA0gqgjppHHC5r diff --git a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql index d22ff58d..f0e16f19 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict GWhItbzU9mf2chvxXlDPXzjpZpeFHpB3K4qjd6ApdR3OeM6VI7tUD6XK3xQRVod +\restrict JAgFj67VlwvQ6i8qGJayfQduSwxbAWpug4mIovy78BelfGGE3MSm4GS29zr1smo -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -59,5 +59,5 @@ CREATE UNIQUE INDEX idx_combined_store_apps_parent_companies_idx ON adtech.combi -- PostgreSQL database dump complete -- -\unrestrict GWhItbzU9mf2chvxXlDPXzjpZpeFHpB3K4qjd6ApdR3OeM6VI7tUD6XK3xQRVod +\unrestrict JAgFj67VlwvQ6i8qGJayfQduSwxbAWpug4mIovy78BelfGGE3MSm4GS29zr1smo diff --git a/pg-ddl/schema/adtech/companies.sql b/pg-ddl/schema/adtech/companies.sql index 9e1a390c..856f2aaa 100644 --- a/pg-ddl/schema/adtech/companies.sql +++ b/pg-ddl/schema/adtech/companies.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 9NmOY9FjFDiPFp1ja1ARfwzy4CIIPutli17grBnake49xKMtB5Mjs8le6KHsmY1 +\restrict boH7dCtn8IZmUFLgZsJRduaUtU83Bwogkg9vMZH44n1rD5iwzBMPRZd2N04k2qe -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -98,5 +98,5 @@ ALTER TABLE ONLY adtech.companies -- PostgreSQL database dump complete -- -\unrestrict 9NmOY9FjFDiPFp1ja1ARfwzy4CIIPutli17grBnake49xKMtB5Mjs8le6KHsmY1 +\unrestrict boH7dCtn8IZmUFLgZsJRduaUtU83Bwogkg9vMZH44n1rD5iwzBMPRZd2N04k2qe diff --git a/pg-ddl/schema/adtech/company_categories__matview.sql b/pg-ddl/schema/adtech/company_categories__matview.sql index 36fde88c..ddbb8e65 100644 --- a/pg-ddl/schema/adtech/company_categories__matview.sql +++ b/pg-ddl/schema/adtech/company_categories__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 0b5ISKikbMmzLt9FSfNCcxs56bCpKsUJd1i6FCBtCXcQ3xL3w7cZdV0VxocBmrA +\restrict rsGSEniqgIzDNzMTBL4OGVCrFU9Eh1DlQi2EdDq0xoRjmewOdISYaZfUJKqFaha -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -42,5 +42,5 @@ ALTER MATERIALIZED VIEW adtech.company_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 0b5ISKikbMmzLt9FSfNCcxs56bCpKsUJd1i6FCBtCXcQ3xL3w7cZdV0VxocBmrA +\unrestrict rsGSEniqgIzDNzMTBL4OGVCrFU9Eh1DlQi2EdDq0xoRjmewOdISYaZfUJKqFaha diff --git a/pg-ddl/schema/adtech/company_developers.sql b/pg-ddl/schema/adtech/company_developers.sql index aacee08f..3b33caca 100644 --- a/pg-ddl/schema/adtech/company_developers.sql +++ b/pg-ddl/schema/adtech/company_developers.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict HoCXvH0rXrHCpq2nA8xWNHuk5LxZh7GBPfgiVRPv8nuaRd10hb3O436iwiZc0of +\restrict qlVlFkGI5LZkpNdMPvEQyQukyWR7886ouNwQtwELfujGlrXkKOa3omCkWVjYr8c -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.company_developers -- PostgreSQL database dump complete -- -\unrestrict HoCXvH0rXrHCpq2nA8xWNHuk5LxZh7GBPfgiVRPv8nuaRd10hb3O436iwiZc0of +\unrestrict qlVlFkGI5LZkpNdMPvEQyQukyWR7886ouNwQtwELfujGlrXkKOa3omCkWVjYr8c diff --git a/pg-ddl/schema/adtech/company_domain_mapping.sql b/pg-ddl/schema/adtech/company_domain_mapping.sql index d2126986..dd82f7b7 100644 --- a/pg-ddl/schema/adtech/company_domain_mapping.sql +++ b/pg-ddl/schema/adtech/company_domain_mapping.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict eTmF6hfpNJkHy0T602WEEokupDL7Zvmq5rgC32ueSoeLdWi3V74OkmjdlQgMgp6 +\restrict GzFSdJUeNA0vdPKi8YHmztSj5SzeLPubZmdFmqu3DO9ma3rpzgdHyR9hseit9z6 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.company_domain_mapping -- PostgreSQL database dump complete -- -\unrestrict eTmF6hfpNJkHy0T602WEEokupDL7Zvmq5rgC32ueSoeLdWi3V74OkmjdlQgMgp6 +\unrestrict GzFSdJUeNA0vdPKi8YHmztSj5SzeLPubZmdFmqu3DO9ma3rpzgdHyR9hseit9z6 diff --git a/pg-ddl/schema/adtech/company_mediation_adapters.sql b/pg-ddl/schema/adtech/company_mediation_adapters.sql index 9d6ef05e..4f61d16c 100644 --- a/pg-ddl/schema/adtech/company_mediation_adapters.sql +++ b/pg-ddl/schema/adtech/company_mediation_adapters.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict yeNAuFyXScGjEzftklgR1CEyYdr0N9SV5Xpd6bOJipDbruzTfiJVbWUW6hf1FXw +\restrict hclZLeMAJEHMdggaGM6eAeLXcIaKvGHDQqP8dbxbh8g6vQyaLHga8IR1hCQ9js4 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.company_mediation_adapters -- PostgreSQL database dump complete -- -\unrestrict yeNAuFyXScGjEzftklgR1CEyYdr0N9SV5Xpd6bOJipDbruzTfiJVbWUW6hf1FXw +\unrestrict hclZLeMAJEHMdggaGM6eAeLXcIaKvGHDQqP8dbxbh8g6vQyaLHga8IR1hCQ9js4 diff --git a/pg-ddl/schema/adtech/company_share_change_2025__matview.sql b/pg-ddl/schema/adtech/company_share_change_2025__matview.sql index 4f23feac..08275632 100644 --- a/pg-ddl/schema/adtech/company_share_change_2025__matview.sql +++ b/pg-ddl/schema/adtech/company_share_change_2025__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 34U9cvlStARwwLVbQrFumP6t6ulSwHpbhtkT7puzHNYbPMvBgku1sRpPxNZJCp8 +\restrict Hi17klqQ6f2M2E467XT5K4pImivG0MVmtPEOSUtnTvrhLmhV9gw4gBFzjDUYfEl -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -110,5 +110,5 @@ ALTER MATERIALIZED VIEW adtech.company_share_change_2025 OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 34U9cvlStARwwLVbQrFumP6t6ulSwHpbhtkT7puzHNYbPMvBgku1sRpPxNZJCp8 +\unrestrict Hi17klqQ6f2M2E467XT5K4pImivG0MVmtPEOSUtnTvrhLmhV9gw4gBFzjDUYfEl diff --git a/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql b/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql index 86c1d99e..440d25ae 100644 --- a/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql +++ b/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict GShBBbFFaWCJmx6rxbK24hIG8YCiekAGWGHEOebIxemOY8WsqBvvO4VnWmlAgUr +\restrict 9Kvw2hCjwhr1qMveafR8yWv6DmORZledQC3PAYe02ijDyVpaGIqbTkbNV3mDBqb -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW adtech.company_shares_2025_common OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict GShBBbFFaWCJmx6rxbK24hIG8YCiekAGWGHEOebIxemOY8WsqBvvO4VnWmlAgUr +\unrestrict 9Kvw2hCjwhr1qMveafR8yWv6DmORZledQC3PAYe02ijDyVpaGIqbTkbNV3mDBqb diff --git a/pg-ddl/schema/adtech/sdk_categories.sql b/pg-ddl/schema/adtech/sdk_categories.sql index b2764412..7747986d 100644 --- a/pg-ddl/schema/adtech/sdk_categories.sql +++ b/pg-ddl/schema/adtech/sdk_categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 7tejdUsvOhPtbItDnwFMi6YKnozfaMEo5NBgAUjN93EbslYABDbvQVd4vwWCS5w +\restrict bw6tZX2Eg9497YQpaxF7byAcdVq4sFuOP6eJgv61OGh7ReakJRoEKZlB768p1Zr -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.sdk_categories -- PostgreSQL database dump complete -- -\unrestrict 7tejdUsvOhPtbItDnwFMi6YKnozfaMEo5NBgAUjN93EbslYABDbvQVd4vwWCS5w +\unrestrict bw6tZX2Eg9497YQpaxF7byAcdVq4sFuOP6eJgv61OGh7ReakJRoEKZlB768p1Zr diff --git a/pg-ddl/schema/adtech/sdk_mediation_patterns.sql b/pg-ddl/schema/adtech/sdk_mediation_patterns.sql index 9f955142..59d86e64 100644 --- a/pg-ddl/schema/adtech/sdk_mediation_patterns.sql +++ b/pg-ddl/schema/adtech/sdk_mediation_patterns.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict RgpZuAcEIgghgTuIDUNn8WOkqDULoMMjQWuvrkKFFImkxVd1Kf2GnS4TNs8atL0 +\restrict wXjc6MNvBklHEGN8oCnmgnfTsd5bzgL30XO95uityi4nrXvpviGaXqQSIh5Atft -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.sdk_mediation_patterns -- PostgreSQL database dump complete -- -\unrestrict RgpZuAcEIgghgTuIDUNn8WOkqDULoMMjQWuvrkKFFImkxVd1Kf2GnS4TNs8atL0 +\unrestrict wXjc6MNvBklHEGN8oCnmgnfTsd5bzgL30XO95uityi4nrXvpviGaXqQSIh5Atft diff --git a/pg-ddl/schema/adtech/sdk_packages.sql b/pg-ddl/schema/adtech/sdk_packages.sql index 744afaee..378e4a25 100644 --- a/pg-ddl/schema/adtech/sdk_packages.sql +++ b/pg-ddl/schema/adtech/sdk_packages.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict aYpWDr39EDP69ff7Rw8jweBZBvmUAZByuezJVNh2dgBmgVbefYA3fZjwJc2qFX4 +\restrict 4J05zVaKnlBmlwH7SsWx1vDxK7eNgFa5GQwShjcS3a8MuqaaOYKvVyqDqYbvPSW -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -99,5 +99,5 @@ ALTER TABLE ONLY adtech.sdk_packages -- PostgreSQL database dump complete -- -\unrestrict aYpWDr39EDP69ff7Rw8jweBZBvmUAZByuezJVNh2dgBmgVbefYA3fZjwJc2qFX4 +\unrestrict 4J05zVaKnlBmlwH7SsWx1vDxK7eNgFa5GQwShjcS3a8MuqaaOYKvVyqDqYbvPSW diff --git a/pg-ddl/schema/adtech/sdk_paths.sql b/pg-ddl/schema/adtech/sdk_paths.sql index 176b44eb..a8136122 100644 --- a/pg-ddl/schema/adtech/sdk_paths.sql +++ b/pg-ddl/schema/adtech/sdk_paths.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 9a7BdfpY296FE94IATyPCRldqDruz912MFgcm8mNWHZW3mMz4pE0S7QXHHJyoXn +\restrict kcr4PEbthDKTc1SjTga9ysaeyUbd76J74Pod45fs2nDjnxZvX59qySHLgxfDA6J -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdk_paths -- PostgreSQL database dump complete -- -\unrestrict 9a7BdfpY296FE94IATyPCRldqDruz912MFgcm8mNWHZW3mMz4pE0S7QXHHJyoXn +\unrestrict kcr4PEbthDKTc1SjTga9ysaeyUbd76J74Pod45fs2nDjnxZvX59qySHLgxfDA6J diff --git a/pg-ddl/schema/adtech/sdks.sql b/pg-ddl/schema/adtech/sdks.sql index ba99513e..5adcbcc5 100644 --- a/pg-ddl/schema/adtech/sdks.sql +++ b/pg-ddl/schema/adtech/sdks.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict pdKCTTrDY8MlLobmHhIG2SMMUs5dyvcw8Nue1MwJM3TojfmDTZV9T8jTp2bzQk7 +\restrict EmYgpHg1MThytEswQHaICa6Sq2YVmxDcf8MpceMFzIjnMY5pa0Deq493G6ezuUH -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdks -- PostgreSQL database dump complete -- -\unrestrict pdKCTTrDY8MlLobmHhIG2SMMUs5dyvcw8Nue1MwJM3TojfmDTZV9T8jTp2bzQk7 +\unrestrict EmYgpHg1MThytEswQHaICa6Sq2YVmxDcf8MpceMFzIjnMY5pa0Deq493G6ezuUH diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql index ac8a18c3..c454fe84 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict POJ1y8KYjaZOfl2Qr6qrXUdCTaNqPOJ0Q2FFzYqZcQwRlek7i0BakaJX6xwgqlf +\restrict CTPRxGosjM7Z0B1rzUsodUqHiXAumeQaWykWJq9FmNgbxC3EcvhQLHEVcNjS4AS -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h1 OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict POJ1y8KYjaZOfl2Qr6qrXUdCTaNqPOJ0Q2FFzYqZcQwRlek7i0BakaJX6xwgqlf +\unrestrict CTPRxGosjM7Z0B1rzUsodUqHiXAumeQaWykWJq9FmNgbxC3EcvhQLHEVcNjS4AS diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql index a7e05a1e..b1181ef7 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict KhhYYUCmupGU26e2U5fHBwPUUSQfKWCSlBywaBhDBd9T7RIPlTaVWTG59wg96AX +\restrict CXTOczIsCvuQBqcTLVFxKn3Tgbi5kjWmg6m1lrIYBe34zbnHngj8xjweKj7hQDk -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h2 OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict KhhYYUCmupGU26e2U5fHBwPUUSQfKWCSlBywaBhDBd9T7RIPlTaVWTG59wg96AX +\unrestrict CXTOczIsCvuQBqcTLVFxKn3Tgbi5kjWmg6m1lrIYBe34zbnHngj8xjweKj7hQDk diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql index 14d91bd2..bdaec98d 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict YoOZ7isY2dKenx2Qg06nmyiSGhLSP963Zr4nCcTjZQS2mcXRaE89A2P1qBPdTo8 +\restrict qQcGFLvVdXmGQJ2fUq01KhctXca6VThG886ZANLjRdsWNLh6VDqaaYdjSGc3yxp -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -61,5 +61,5 @@ CREATE UNIQUE INDEX store_app_sdk_strings_idx ON adtech.store_app_sdk_strings US -- PostgreSQL database dump complete -- -\unrestrict YoOZ7isY2dKenx2Qg06nmyiSGhLSP963Zr4nCcTjZQS2mcXRaE89A2P1qBPdTo8 +\unrestrict qQcGFLvVdXmGQJ2fUq01KhctXca6VThG886ZANLjRdsWNLh6VDqaaYdjSGc3yxp diff --git a/pg-ddl/schema/adtech/url_redirect_chains.sql b/pg-ddl/schema/adtech/url_redirect_chains.sql index 1848a685..95d19352 100644 --- a/pg-ddl/schema/adtech/url_redirect_chains.sql +++ b/pg-ddl/schema/adtech/url_redirect_chains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict bX27k77Gc6c9hM5dBbeHjgdCXDL21nzLYW2VA3EF5AYpFxLDH9aSqJt8rpo1amP +\restrict ccp1xrdddSs2r4eIkWTTgjjzA12nBIwZ107fcPtiL3fAv7qs81Lr6TzSTljamIj -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -122,5 +122,5 @@ ALTER TABLE ONLY adtech.url_redirect_chains -- PostgreSQL database dump complete -- -\unrestrict bX27k77Gc6c9hM5dBbeHjgdCXDL21nzLYW2VA3EF5AYpFxLDH9aSqJt8rpo1amP +\unrestrict ccp1xrdddSs2r4eIkWTTgjjzA12nBIwZ107fcPtiL3fAv7qs81Lr6TzSTljamIj diff --git a/pg-ddl/schema/adtech/urls.sql b/pg-ddl/schema/adtech/urls.sql index 51d0678a..61d31710 100644 --- a/pg-ddl/schema/adtech/urls.sql +++ b/pg-ddl/schema/adtech/urls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict daDb9zHScvRNnCXGBB8YEEK265hc88LcORIOsIlEPCM3hdEkeYyF3Qlz2LcZL1X +\restrict KQIMIG6VhsbGBntyGMimRUmI5W8ZJZTeNGp4xSZ88g7fF8e9i0e2wSJMebljxAm -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -111,5 +111,5 @@ ALTER TABLE ONLY adtech.urls -- PostgreSQL database dump complete -- -\unrestrict daDb9zHScvRNnCXGBB8YEEK265hc88LcORIOsIlEPCM3hdEkeYyF3Qlz2LcZL1X +\unrestrict KQIMIG6VhsbGBntyGMimRUmI5W8ZJZTeNGp4xSZ88g7fF8e9i0e2wSJMebljxAm diff --git a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql index 43d096ef..b2d26fa8 100644 --- a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fag6Wb4A9pQQjdQDN7O4pKe8aB8Gq3obAnlQZqP6R2xdQZVcxQLoAshOredMIcO +\restrict aLJLMUC8x6lCcGLKBL53uGqZo8ZSeTbnKUhVePq7bmvdu1p4QMM9eKpJwdjzo4C -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX adstxt_ad_domain_overview_unique_idx ON frontend.adstxt_ad_d -- PostgreSQL database dump complete -- -\unrestrict fag6Wb4A9pQQjdQDN7O4pKe8aB8Gq3obAnlQZqP6R2xdQZVcxQLoAshOredMIcO +\unrestrict aLJLMUC8x6lCcGLKBL53uGqZo8ZSeTbnKUhVePq7bmvdu1p4QMM9eKpJwdjzo4C diff --git a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql index 8de581e3..e17196ad 100644 --- a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 16z9nqAA4FoYknjrSVsnrWpEIH8esI5DyUQW3xWXbgVrULFzmZ2suwDuEBH46VD +\restrict 7aTz8K5be4pikQbTFEMfBzaebAOYMwWMPr6Ve51gtK9DOf50jg1DZFOP5zKRfGW -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -81,5 +81,5 @@ CREATE UNIQUE INDEX adstxt_entries_store_apps_unique_idx ON frontend.adstxt_entr -- PostgreSQL database dump complete -- -\unrestrict 16z9nqAA4FoYknjrSVsnrWpEIH8esI5DyUQW3xWXbgVrULFzmZ2suwDuEBH46VD +\unrestrict 7aTz8K5be4pikQbTFEMfBzaebAOYMwWMPr6Ve51gtK9DOf50jg1DZFOP5zKRfGW diff --git a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql index ba064b9a..7932c2a5 100644 --- a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ZwugeoWQ46lKEWdAUWB5pjkMAZEazWHyR8bu6PhHtN2p6C96g73eRWCVeHu78kf +\restrict yopxddEN1qx2bNDul8mNy7czDh4LkEBWTtroFQeJnOBZevpyyFgr3XLEAg0Gekr -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -74,5 +74,5 @@ CREATE UNIQUE INDEX adstxt_publishers_overview_ad_domain_unique_idx ON frontend. -- PostgreSQL database dump complete -- -\unrestrict ZwugeoWQ46lKEWdAUWB5pjkMAZEazWHyR8bu6PhHtN2p6C96g73eRWCVeHu78kf +\unrestrict yopxddEN1qx2bNDul8mNy7czDh4LkEBWTtroFQeJnOBZevpyyFgr3XLEAg0Gekr diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql index a470c1ed..e94546b4 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict QEx7gZaQskYiSwMphVHvwUgFPRXc7VdTvQvX79wE46sbppmFVTJ1mkrddjKPg4x +\restrict MVKVuugOt9NCPdFXhhIYB433VKeYRmo7zlMhgV74qFQHeckPBEHXQ72iJOzwuQc -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -107,5 +107,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict QEx7gZaQskYiSwMphVHvwUgFPRXc7VdTvQvX79wE46sbppmFVTJ1mkrddjKPg4x +\unrestrict MVKVuugOt9NCPdFXhhIYB433VKeYRmo7zlMhgV74qFQHeckPBEHXQ72iJOzwuQc diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql index 5ad569eb..2758412b 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict jYpXy0t1XDRKT9dtpiUuex4ayJWa4c9659wNGJRalRMa8bPc5d5yv2KnQ4FkDzd +\restrict F4vvXku52nyi0d6mBUhP0QbYWqbE8XTgdEaD93phvbvgEUofLY76Ia5bnoiTipg -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -114,5 +114,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings_recent_month OWNER -- PostgreSQL database dump complete -- -\unrestrict jYpXy0t1XDRKT9dtpiUuex4ayJWa4c9659wNGJRalRMa8bPc5d5yv2KnQ4FkDzd +\unrestrict F4vvXku52nyi0d6mBUhP0QbYWqbE8XTgdEaD93phvbvgEUofLY76Ia5bnoiTipg diff --git a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql index 6a12c0b3..dcf5a85d 100644 --- a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ixzgatL2Cng2I8vDVS1uWbd6V8GjuKMAdngQa5tfLdAYtNfyMKtukbXe1z6oTiD +\restrict MObNBbhhpvFx8TnPpN1LerKRXd0W1po0rLalHTAlIg4vKqk7NFYmdEvZoPIe5DX -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict ixzgatL2Cng2I8vDVS1uWbd6V8GjuKMAdngQa5tfLdAYtNfyMKtukbXe1z6oTiD +\unrestrict MObNBbhhpvFx8TnPpN1LerKRXd0W1po0rLalHTAlIg4vKqk7NFYmdEvZoPIe5DX diff --git a/pg-ddl/schema/frontend/api_call_countries__matview.sql b/pg-ddl/schema/frontend/api_call_countries__matview.sql index 4c6338c4..b9e0650a 100644 --- a/pg-ddl/schema/frontend/api_call_countries__matview.sql +++ b/pg-ddl/schema/frontend/api_call_countries__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict aMyrTsW6NgyD4X2L8WGVAtXAgxbNHbxbH9VFfiBYkci11qTcfyk8ArL24iwnsf5 +\restrict IqWvBB9C0jmT7iH0Zt7YRV1NnBb8hgxDIvfMHNZnGPV2zz8lZaLYkGz2UcZQ8nk -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -87,5 +87,5 @@ CREATE UNIQUE INDEX api_call_countries_unique ON frontend.api_call_countries USI -- PostgreSQL database dump complete -- -\unrestrict aMyrTsW6NgyD4X2L8WGVAtXAgxbNHbxbH9VFfiBYkci11qTcfyk8ArL24iwnsf5 +\unrestrict IqWvBB9C0jmT7iH0Zt7YRV1NnBb8hgxDIvfMHNZnGPV2zz8lZaLYkGz2UcZQ8nk diff --git a/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql index d2093680..925229b9 100644 --- a/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql +++ b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict cDnsoaaayr4Bbu4epCEI0u90ZCRrlTfgMhR4BXImF36ltRLAm1bip5vN3epjKqE +\restrict mQkiW29NTruEqA9NxaxOsWGaGNhYL4Hyn6tZylWPcEl8dH2tHZGVJZFIm5w4y0a -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -72,5 +72,5 @@ ALTER MATERIALIZED VIEW frontend.app_keyword_rank_stats OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict cDnsoaaayr4Bbu4epCEI0u90ZCRrlTfgMhR4BXImF36ltRLAm1bip5vN3epjKqE +\unrestrict mQkiW29NTruEqA9NxaxOsWGaGNhYL4Hyn6tZylWPcEl8dH2tHZGVJZFIm5w4y0a diff --git a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql index 5a8feebd..f1b3dab2 100644 --- a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql +++ b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ZHjSJm3H746GjGfTPo8SsGYw8EFlaQoVO5MoIOueurbbDoGoOKzAqX2bVKmnm7Q +\restrict 3LW96LixBuplJkh1ogp9ccflri7SohlBARojWa1DccB0Xe9yC9Cs8zPXSQJMc8C -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -104,5 +104,5 @@ ALTER TABLE ONLY frontend.app_keyword_ranks_daily -- PostgreSQL database dump complete -- -\unrestrict ZHjSJm3H746GjGfTPo8SsGYw8EFlaQoVO5MoIOueurbbDoGoOKzAqX2bVKmnm7Q +\unrestrict 3LW96LixBuplJkh1ogp9ccflri7SohlBARojWa1DccB0Xe9yC9Cs8zPXSQJMc8C diff --git a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql index 3bd539d7..2dece973 100644 --- a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Q46cdJfD0eIIggndfBvlWbpyZhR5Rn6dOkwTbgXnbQIrdx3JfTZyX09hpfiQ4CQ +\restrict pWyl5GCUxsScCEDXg4aEaXn7rBBTPDCAq5zr0yPsWqNWwghZ3pCIv1c1HyHkOc8 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -116,5 +116,5 @@ CREATE UNIQUE INDEX idx_apps_new_monthly ON frontend.apps_new_monthly USING btre -- PostgreSQL database dump complete -- -\unrestrict Q46cdJfD0eIIggndfBvlWbpyZhR5Rn6dOkwTbgXnbQIrdx3JfTZyX09hpfiQ4CQ +\unrestrict pWyl5GCUxsScCEDXg4aEaXn7rBBTPDCAq5zr0yPsWqNWwghZ3pCIv1c1HyHkOc8 diff --git a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql index 76656e45..be04796c 100644 --- a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict CefuOttwDedaaR8JrPEdBqhAnlSQQfof9NmzAYjOHx8WUht9Eelwo5z0vdveoe4 +\restrict K6pzbMCyYMfyMjs3CcDtTxXyLOHiouQNFZec8fpg418qQ2HNNFLMA53h6KvB3uS -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -123,5 +123,5 @@ CREATE UNIQUE INDEX idx_apps_new_weekly_f ON frontend.apps_new_weekly USING btre -- PostgreSQL database dump complete -- -\unrestrict CefuOttwDedaaR8JrPEdBqhAnlSQQfof9NmzAYjOHx8WUht9Eelwo5z0vdveoe4 +\unrestrict K6pzbMCyYMfyMjs3CcDtTxXyLOHiouQNFZec8fpg418qQ2HNNFLMA53h6KvB3uS diff --git a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql index ae02bb3d..86e94067 100644 --- a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict mWzWeKFawubFA0hXGLMTFpXo1CJc3zmSCBiOrclm4UPARSOJgsFx6QjNscaDYQA +\restrict bCk0TChpBpQB5AoxEl9j8ucgQB8PSXsZKXbdHz2hb9JJ1gStwt8Y7dcGfWDkm3w -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -117,5 +117,5 @@ CREATE UNIQUE INDEX idx_apps_new_yearly ON frontend.apps_new_yearly USING btree -- PostgreSQL database dump complete -- -\unrestrict mWzWeKFawubFA0hXGLMTFpXo1CJc3zmSCBiOrclm4UPARSOJgsFx6QjNscaDYQA +\unrestrict bCk0TChpBpQB5AoxEl9j8ucgQB8PSXsZKXbdHz2hb9JJ1gStwt8Y7dcGfWDkm3w diff --git a/pg-ddl/schema/frontend/category_tag_stats__matview.sql b/pg-ddl/schema/frontend/category_tag_stats__matview.sql index d1c8d0e6..295cae8e 100644 --- a/pg-ddl/schema/frontend/category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict y3ZmnfcvTCdxyMH9h4vCe8XiiMzYQtXL43WWxluPt3oDgfrIRiTq49d94aKnV1n +\restrict pmglVKL9KsiyjAHRsLuUJEa4Yvk0cRcQBGDL7rkTmEv9hhPU2d5TJ66BeTKX96N -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -28,36 +28,22 @@ SET default_table_access_method = heap; -- CREATE MATERIALIZED VIEW frontend.category_tag_stats AS - WITH d30_counts AS ( - SELECT sahw.store_app, - sum(sahw.installs_diff) AS d30_installs, - sum(sahw.rating_count_diff) AS d30_rating_count - FROM public.app_global_metrics_weekly_diffs sahw - WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) - GROUP BY sahw.store_app - ), distinct_apps_group AS ( - SELECT sa.store, - csac.store_app, - csac.app_category, - tag.tag_source, - sa.installs, - sa.rating_count - FROM ((adtech.combined_store_apps_companies csac - LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) + WITH distinct_apps_group AS ( + SELECT DISTINCT csac.store_app, + tag.tag_source + FROM (adtech.combined_store_apps_companies csac CROSS JOIN LATERAL ( VALUES ('sdk'::text,csac.sdk), ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) WHERE (tag.present IS TRUE) ) - SELECT dag.store, - dag.app_category, + SELECT sa.store, + sa.category AS app_category, dag.tag_source, count(DISTINCT dag.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(dag.installs) AS installs_total, - sum(dag.rating_count) AS rating_count_total + sum(sa.installs_sum_4w_est) AS installs_d30, + sum(sa.installs_est) AS installs_total FROM (distinct_apps_group dag - LEFT JOIN d30_counts dc ON ((dag.store_app = dc.store_app))) - GROUP BY dag.store, dag.app_category, dag.tag_source + LEFT JOIN frontend.store_apps_overview sa ON ((dag.store_app = sa.id))) + GROUP BY sa.store, sa.category, dag.tag_source WITH NO DATA; @@ -74,5 +60,5 @@ CREATE UNIQUE INDEX idx_category_tag_stats ON frontend.category_tag_stats USING -- PostgreSQL database dump complete -- -\unrestrict y3ZmnfcvTCdxyMH9h4vCe8XiiMzYQtXL43WWxluPt3oDgfrIRiTq49d94aKnV1n +\unrestrict pmglVKL9KsiyjAHRsLuUJEa4Yvk0cRcQBGDL7rkTmEv9hhPU2d5TJ66BeTKX96N diff --git a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql index f30b0c03..58142f42 100644 --- a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict EUwPa9w6L2WfBhiKAGnjbSCbgkOnZYUS3W19VXhb1kd0lf9M9UXVjROj9igTR2w +\restrict BBYbqAp5shdaO9Zjh5R1HNm7UaHGrwwNh9YFfeXTaTa9Whk1xS5Is1ht8eAlRJt -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -69,5 +69,5 @@ CREATE UNIQUE INDEX companies_apps_overview_unique_idx ON frontend.companies_app -- PostgreSQL database dump complete -- -\unrestrict EUwPa9w6L2WfBhiKAGnjbSCbgkOnZYUS3W19VXhb1kd0lf9M9UXVjROj9igTR2w +\unrestrict BBYbqAp5shdaO9Zjh5R1HNm7UaHGrwwNh9YFfeXTaTa9Whk1xS5Is1ht8eAlRJt diff --git a/pg-ddl/schema/frontend/companies_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_stats__matview.sql index ed0e1dbc..492d7303 100644 --- a/pg-ddl/schema/frontend/companies_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict R0ZHGyY7XNgXlVeaLHL0HyX0lWUUtswiBRheflBhG4bpjyBQl9sije9iValWUKH +\restrict 6sQrv6elhgx6zAq4FEzzOklPdacJBaK8B7PwyGuivFX2MaGSwCyheydomFvT3up -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -28,37 +28,17 @@ SET default_table_access_method = heap; -- CREATE MATERIALIZED VIEW frontend.companies_category_stats AS - WITH d30_counts AS ( - SELECT sahw.store_app, - sum(sahw.installs_diff) AS d30_installs, - sum(sahw.rating_count_diff) AS d30_rating_count - FROM public.app_global_metrics_weekly_diffs sahw - WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) - GROUP BY sahw.store_app - ), distinct_apps_group AS ( - SELECT sa.store, - csac.store_app, - csac.app_category, - csac.ad_domain AS company_domain, - c.name AS company_name, - sa.installs, - sa.rating_count - FROM ((adtech.combined_store_apps_companies csac - LEFT JOIN adtech.companies c ON ((csac.company_id = c.id))) - LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) - ) - SELECT dag.store, - dag.app_category, - dag.company_domain, - dag.company_name, - count(DISTINCT dag.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(dag.installs) AS installs_total, - sum(dag.rating_count) AS rating_count_total - FROM (distinct_apps_group dag - LEFT JOIN d30_counts dc ON ((dag.store_app = dc.store_app))) - GROUP BY dag.store, dag.app_category, dag.company_domain, dag.company_name + SELECT sa.store, + sa.category AS app_category, + csac.ad_domain AS company_domain, + c.name AS company_name, + count(DISTINCT csac.store_app) AS app_count, + sum(sa.installs_est) AS installs_total, + sum(sa.installs_sum_4w_est) AS installs_d30 + FROM ((adtech.combined_store_apps_companies csac + LEFT JOIN adtech.companies c ON ((csac.company_id = c.id))) + LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) + GROUP BY sa.store, sa.category, csac.ad_domain, c.name WITH NO DATA; @@ -82,5 +62,5 @@ CREATE INDEX companies_category_stats_query_idx ON frontend.companies_category_s -- PostgreSQL database dump complete -- -\unrestrict R0ZHGyY7XNgXlVeaLHL0HyX0lWUUtswiBRheflBhG4bpjyBQl9sije9iValWUKH +\unrestrict 6sQrv6elhgx6zAq4FEzzOklPdacJBaK8B7PwyGuivFX2MaGSwCyheydomFvT3up diff --git a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql index 54badac0..22ae73e3 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict BiL4pdpTciviaUJCdV40CQZRWy5pi8p5BYKZYoOBJo4SUz6VKFV0Z5zUK6mY8C5 +\restrict sW3cQL1ceDxeLOpphJqvAlcuCzAVcZfBrdl10QxmBSGPcESGHFw8yZ6zcrXp38V -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -28,41 +28,28 @@ SET default_table_access_method = heap; -- CREATE MATERIALIZED VIEW frontend.companies_category_tag_stats AS - WITH d30_counts AS ( - SELECT sahw.store_app, - sum(sahw.installs_diff) AS d30_installs, - sum(sahw.rating_count_diff) AS d30_rating_count - FROM public.app_global_metrics_weekly_diffs sahw - WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) - GROUP BY sahw.store_app - ), distinct_apps_group AS ( - SELECT sa.store, - csac.store_app, + WITH distinct_apps_group AS ( + SELECT csac.store_app, csac.app_category, tag.tag_source, csac.ad_domain AS company_domain, - c.name AS company_name, - sa.installs, - sa.rating_count - FROM (((adtech.combined_store_apps_companies csac + c.name AS company_name + FROM ((adtech.combined_store_apps_companies csac LEFT JOIN adtech.companies c ON ((csac.company_id = c.id))) - LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) CROSS JOIN LATERAL ( VALUES ('sdk'::text,csac.sdk), ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) WHERE (tag.present IS TRUE) ) - SELECT dag.store, - dag.app_category, + SELECT sa.store, + sa.category AS app_category, dag.tag_source, dag.company_domain, dag.company_name, count(DISTINCT dag.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(dag.installs) AS installs_total, - sum(dag.rating_count) AS rating_count_total + sum(sa.installs_sum_4w_est) AS installs_d30, + sum(sa.installs_est) AS installs_total FROM (distinct_apps_group dag - LEFT JOIN d30_counts dc ON ((dag.store_app = dc.store_app))) - GROUP BY dag.store, dag.app_category, dag.tag_source, dag.company_domain, dag.company_name + LEFT JOIN frontend.store_apps_overview sa ON ((dag.store_app = sa.id))) + GROUP BY sa.store, sa.category, dag.tag_source, dag.company_domain, dag.company_name WITH NO DATA; @@ -86,5 +73,5 @@ CREATE UNIQUE INDEX companies_category_tag_stats_idx ON frontend.companies_categ -- PostgreSQL database dump complete -- -\unrestrict BiL4pdpTciviaUJCdV40CQZRWy5pi8p5BYKZYoOBJo4SUz6VKFV0Z5zUK6mY8C5 +\unrestrict sW3cQL1ceDxeLOpphJqvAlcuCzAVcZfBrdl10QxmBSGPcESGHFw8yZ6zcrXp38V diff --git a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql index cdb01387..e34a1f17 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict tGYjYA1ZLarS740jjY8C3MHq9cOpWMEOWcTtpU3wriXUQRjoc4sZHQ477YGcSFc +\restrict ezk0cgrbGp7teJKLhA5wQ8YXJ1m8O8ARP9rsrF9SOv0ae7fZ0DHEjyfNpaagKzh -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -28,14 +28,7 @@ SET default_table_access_method = heap; -- CREATE MATERIALIZED VIEW frontend.companies_category_tag_type_stats AS - WITH d30_counts AS ( - SELECT sahw.store_app, - sum(sahw.installs_diff) AS d30_installs, - sum(sahw.rating_count_diff) AS d30_rating_count - FROM public.app_global_metrics_weekly_diffs sahw - WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) - GROUP BY sahw.store_app - ), minimized_company_categories AS ( + WITH minimized_company_categories AS ( SELECT company_categories.company_id, min(company_categories.category_id) AS category_id FROM adtech.company_categories @@ -51,14 +44,11 @@ CREATE MATERIALIZED VIEW frontend.companies_category_tag_type_stats AS ELSE cats.url_slug END AS type_url_slug, count(DISTINCT csac.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(sa.installs) AS installs_total, - sum(sa.rating_count) AS rating_count_total - FROM ((((((adtech.combined_store_apps_companies csac + sum(sa.installs_sum_4w_est) AS installs_d30, + sum(sa.installs_est) AS installs_total + FROM (((((adtech.combined_store_apps_companies csac LEFT JOIN adtech.companies c ON ((csac.company_id = c.id))) LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) - LEFT JOIN d30_counts dc ON ((csac.store_app = dc.store_app))) LEFT JOIN minimized_company_categories mcc ON ((csac.company_id = mcc.company_id))) LEFT JOIN adtech.categories cats ON ((mcc.category_id = cats.id))) CROSS JOIN LATERAL ( VALUES ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) @@ -81,16 +71,13 @@ CREATE MATERIALIZED VIEW frontend.companies_category_tag_type_stats AS c.name AS company_name, cats.url_slug AS type_url_slug, count(DISTINCT sas.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(sa.installs) AS installs_total, - sum(sa.rating_count) AS rating_count_total - FROM (((((((store_app_sdks sas + sum(sa.installs_sum_4w_est) AS installs_d30, + sum(sa.installs_est) AS installs_total + FROM ((((((store_app_sdks sas LEFT JOIN adtech.sdks s ON ((sas.sdk_id = s.id))) LEFT JOIN adtech.companies c ON ((s.company_id = c.id))) LEFT JOIN public.domains d ON ((c.domain_id = d.id))) LEFT JOIN frontend.store_apps_overview sa ON ((sas.store_app = sa.id))) - LEFT JOIN d30_counts dc ON ((sas.store_app = dc.store_app))) LEFT JOIN adtech.sdk_categories sc ON ((sas.sdk_id = sc.sdk_id))) LEFT JOIN adtech.categories cats ON ((sc.category_id = cats.id))) GROUP BY sa.store, sa.category, 'sdk'::text, d.domain_name, c.name, cats.url_slug @@ -103,9 +90,7 @@ CREATE MATERIALIZED VIEW frontend.companies_category_tag_type_stats AS api_and_app_ads.type_url_slug, api_and_app_ads.app_count, api_and_app_ads.installs_d30, - api_and_app_ads.rating_count_d30, - api_and_app_ads.installs_total, - api_and_app_ads.rating_count_total + api_and_app_ads.installs_total FROM api_and_app_ads UNION ALL SELECT sdk_and_mediation.store, @@ -116,18 +101,23 @@ UNION ALL sdk_and_mediation.type_url_slug, sdk_and_mediation.app_count, sdk_and_mediation.installs_d30, - sdk_and_mediation.rating_count_d30, - sdk_and_mediation.installs_total, - sdk_and_mediation.rating_count_total + sdk_and_mediation.installs_total FROM sdk_and_mediation WITH NO DATA; ALTER MATERIALIZED VIEW frontend.companies_category_tag_type_stats OWNER TO postgres; +-- +-- Name: frontend_companies_category_tag_type_stats_unique; Type: INDEX; Schema: frontend; Owner: postgres +-- + +CREATE UNIQUE INDEX frontend_companies_category_tag_type_stats_unique ON frontend.companies_category_tag_type_stats USING btree (store, app_category, tag_source, company_domain, type_url_slug); + + -- -- PostgreSQL database dump complete -- -\unrestrict tGYjYA1ZLarS740jjY8C3MHq9cOpWMEOWcTtpU3wriXUQRjoc4sZHQ477YGcSFc +\unrestrict ezk0cgrbGp7teJKLhA5wQ8YXJ1m8O8ARP9rsrF9SOv0ae7fZ0DHEjyfNpaagKzh diff --git a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql index 266e4412..c9c4c903 100644 --- a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict gQ3jSXqT1fAjMdpn4y8bx7DEDg6YxwGKQVm2sBgPOQSccv9VpMHAAaZu91e27s6 +\restrict Wwy0elUqj33f2SRY01RngM1kZbGU9M5mqNdhtBcBAOPhHAdGdrZbsX1cYi2DE4K -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -130,5 +130,5 @@ ALTER MATERIALIZED VIEW frontend.companies_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict gQ3jSXqT1fAjMdpn4y8bx7DEDg6YxwGKQVm2sBgPOQSccv9VpMHAAaZu91e27s6 +\unrestrict Wwy0elUqj33f2SRY01RngM1kZbGU9M5mqNdhtBcBAOPhHAdGdrZbsX1cYi2DE4K diff --git a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql index 7d6eed62..668923a9 100644 --- a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql +++ b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 7fgNivDA52UZd1FyyEnUCIG3WrSm5TztUxBbz6UuafsDJdQ0hcWyv6mBQUNgoek +\restrict D3RBB1LpuT3sqSMqy36JqpTdlJuhGPwDbIfxnCmLHNwh1kDE5XZ6weaaVdPV9TT -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -54,5 +54,5 @@ CREATE UNIQUE INDEX companies_open_source_percent_unique ON frontend.companies_o -- PostgreSQL database dump complete -- -\unrestrict 7fgNivDA52UZd1FyyEnUCIG3WrSm5TztUxBbz6UuafsDJdQ0hcWyv6mBQUNgoek +\unrestrict D3RBB1LpuT3sqSMqy36JqpTdlJuhGPwDbIfxnCmLHNwh1kDE5XZ6weaaVdPV9TT diff --git a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql index 98e26642..e01ccdf0 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict XZ7AjOuTNb6rI5jRt7tPXgMmQWPtHcGq9M3jMLNGoDYdMMKUJQ1f0CJQtXB2QOy +\restrict 6aH7LrwqxrkLb4VK7TSKdcMcka8dV57deQuLuDrx4gGCf7Xa3Mw3UvfNxNNe3XK -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -28,42 +28,28 @@ SET default_table_access_method = heap; -- CREATE MATERIALIZED VIEW frontend.companies_parent_category_stats AS - WITH d30_counts AS ( - SELECT sahw.store_app, - sum(sahw.installs_diff) AS d30_installs, - sum(sahw.rating_count_diff) AS d30_rating_count - FROM public.app_global_metrics_weekly_diffs sahw - WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) - GROUP BY sahw.store_app - ), distinct_apps_group AS ( - SELECT sa.store, - csac.store_app, - csac.app_category, - c.name AS company_name, - sa.installs, - sa.rating_count, - COALESCE(ad.domain_name, csac.ad_domain) AS company_domain - FROM (((adtech.combined_store_apps_companies csac + WITH distinct_apps_group AS ( + SELECT DISTINCT csac.store_app, + COALESCE(ad.domain_name, csac.ad_domain) AS company_domain, + c.name AS company_name + FROM ((adtech.combined_store_apps_companies csac LEFT JOIN adtech.companies c ON ((csac.parent_id = c.id))) LEFT JOIN public.domains ad ON ((c.domain_id = ad.id))) - LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) WHERE (csac.parent_id IN ( SELECT DISTINCT pc.id FROM (adtech.companies pc LEFT JOIN adtech.companies c_1 ON ((pc.id = c_1.parent_company_id))) WHERE (c_1.id IS NOT NULL))) ) - SELECT dag.store, - dag.app_category, + SELECT sa.store, + sa.category AS app_category, dag.company_domain, dag.company_name, count(DISTINCT dag.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(dag.installs) AS installs_total, - sum(dag.rating_count) AS rating_count_total + sum(sa.installs_sum_4w_est) AS installs_d30, + sum(sa.installs_est) AS installs_total FROM (distinct_apps_group dag - LEFT JOIN d30_counts dc ON ((dag.store_app = dc.store_app))) - GROUP BY dag.store, dag.app_category, dag.company_domain, dag.company_name + LEFT JOIN frontend.store_apps_overview sa ON ((dag.store_app = sa.id))) + GROUP BY sa.store, sa.category, dag.company_domain, dag.company_name WITH NO DATA; @@ -87,5 +73,5 @@ CREATE INDEX companies_parent_category_stats_query_idx ON frontend.companies_par -- PostgreSQL database dump complete -- -\unrestrict XZ7AjOuTNb6rI5jRt7tPXgMmQWPtHcGq9M3jMLNGoDYdMMKUJQ1f0CJQtXB2QOy +\unrestrict 6aH7LrwqxrkLb4VK7TSKdcMcka8dV57deQuLuDrx4gGCf7Xa3Mw3UvfNxNNe3XK diff --git a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql index ce5921b2..df202b2d 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 73h1XhjJgtT0j7v5p1zildOCSU3CHKtW8oe0znWVcbiMcA0FMO73xlf590ubYRV +\restrict TPz1WGxw2BfGw0kacwqTc41fRQH5MdJamY7k6NHpiTb6D5eXenNPk1yHdN4S9Fn -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -28,45 +28,31 @@ SET default_table_access_method = heap; -- CREATE MATERIALIZED VIEW frontend.companies_parent_category_tag_stats AS - WITH d30_counts AS ( - SELECT sahw.store_app, - sum(sahw.installs_diff) AS d30_installs, - sum(sahw.rating_count_diff) AS d30_rating_count - FROM public.app_global_metrics_weekly_diffs sahw - WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) - GROUP BY sahw.store_app - ), distinct_apps_group AS ( - SELECT sa.store, - csac.store_app, - csac.app_category, + WITH distinct_apps_group AS ( + SELECT DISTINCT csac.store_app, tag.tag_source, c.name AS company_name, - sa.installs, - sa.rating_count, COALESCE(ad.domain_name, csac.ad_domain) AS company_domain - FROM ((((adtech.combined_store_apps_companies csac + FROM (((adtech.combined_store_apps_companies csac LEFT JOIN adtech.companies c ON ((csac.parent_id = c.id))) LEFT JOIN public.domains ad ON ((c.domain_id = ad.id))) - LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) CROSS JOIN LATERAL ( VALUES ('sdk'::text,csac.sdk), ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) WHERE ((tag.present IS TRUE) AND (csac.parent_id IN ( SELECT DISTINCT pc.id FROM (adtech.companies pc LEFT JOIN adtech.companies c_1 ON ((pc.id = c_1.parent_company_id))) WHERE (c_1.id IS NOT NULL)))) ) - SELECT dag.store, - dag.app_category, + SELECT sa.store, + sa.category AS app_category, dag.tag_source, dag.company_domain, dag.company_name, count(DISTINCT dag.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(dag.installs) AS installs_total, - sum(dag.rating_count) AS rating_count_total + sum(sa.installs_sum_4w_est) AS installs_d30, + sum(sa.installs_est) AS installs_total FROM (distinct_apps_group dag - LEFT JOIN d30_counts dc ON ((dag.store_app = dc.store_app))) - GROUP BY dag.store, dag.app_category, dag.tag_source, dag.company_domain, dag.company_name + LEFT JOIN frontend.store_apps_overview sa ON ((dag.store_app = sa.id))) + GROUP BY sa.store, sa.category, dag.tag_source, dag.company_domain, dag.company_name WITH NO DATA; @@ -90,5 +76,5 @@ CREATE INDEX companies_parent_category_tag_stats_query_idx ON frontend.companies -- PostgreSQL database dump complete -- -\unrestrict 73h1XhjJgtT0j7v5p1zildOCSU3CHKtW8oe0znWVcbiMcA0FMO73xlf590ubYRV +\unrestrict TPz1WGxw2BfGw0kacwqTc41fRQH5MdJamY7k6NHpiTb6D5eXenNPk1yHdN4S9Fn diff --git a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql index 61b7fd61..c8ae9e65 100644 --- a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict hYQXhIPI1KCInWwrwgnjijjopmV3QXP89sAyNfxSnpQTM0yTyTKESXtEAMf8XcX +\restrict PyfT3tcHraHHrMHf8tCoAbqmfAYfmXIko5fm99CguW266eb8ggDhtbjqgo24g6w -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX companies_sdks_overview_unique_idx ON frontend.companies_sdk -- PostgreSQL database dump complete -- -\unrestrict hYQXhIPI1KCInWwrwgnjijjopmV3QXP89sAyNfxSnpQTM0yTyTKESXtEAMf8XcX +\unrestrict PyfT3tcHraHHrMHf8tCoAbqmfAYfmXIko5fm99CguW266eb8ggDhtbjqgo24g6w diff --git a/pg-ddl/schema/frontend/company_domain_country__matview.sql b/pg-ddl/schema/frontend/company_domain_country__matview.sql index 2e3ee502..7d22c131 100644 --- a/pg-ddl/schema/frontend/company_domain_country__matview.sql +++ b/pg-ddl/schema/frontend/company_domain_country__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict X9eJlz9TGPqDaCjws4QL1HACTacnjRl6Pu4quf2e2RYNxUzfOyy9ZfOPsnledIH +\restrict qWfyJ2Ftpldsb0kZguejAgpCq1a7KA9RdSMpN90wzLddJorkmNu6uURxULddaFW -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -74,5 +74,5 @@ ALTER MATERIALIZED VIEW frontend.company_domain_country OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict X9eJlz9TGPqDaCjws4QL1HACTacnjRl6Pu4quf2e2RYNxUzfOyy9ZfOPsnledIH +\unrestrict qWfyJ2Ftpldsb0kZguejAgpCq1a7KA9RdSMpN90wzLddJorkmNu6uURxULddaFW diff --git a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql index 4f47c4b0..a61e8566 100644 --- a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict CcN1pTh0NvlgsEzep5KMKTI2MKqWeiXlDqbZE614BMEBezVb43gs6Evkq4EnzDX +\restrict wlA6gTXlAXEIYaqLUWeZ2owCvV894magVGkj6AHcxWdtc8LEjp9p26hEOZim5Lj -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -115,5 +115,5 @@ CREATE UNIQUE INDEX idx_unique_company_domains_top_apps ON frontend.company_doma -- PostgreSQL database dump complete -- -\unrestrict CcN1pTh0NvlgsEzep5KMKTI2MKqWeiXlDqbZE614BMEBezVb43gs6Evkq4EnzDX +\unrestrict wlA6gTXlAXEIYaqLUWeZ2owCvV894magVGkj6AHcxWdtc8LEjp9p26hEOZim5Lj diff --git a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql index 08e4ff57..c9255dc5 100644 --- a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict bleZdPsX8G6TD1roC5X4yBKSztAzXolj7iYQ6OpUy8dFcONsBQHJMuzyUFK3hrE +\restrict 3cutCKeI4B1txb1hnEBC0gRFBwscVnbeOpxqBKqeVxbN10hobaeJMeSILYGlYIo -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -111,5 +111,5 @@ CREATE UNIQUE INDEX idx_company_parent_top_apps_unique ON frontend.company_paren -- PostgreSQL database dump complete -- -\unrestrict bleZdPsX8G6TD1roC5X4yBKSztAzXolj7iYQ6OpUy8dFcONsBQHJMuzyUFK3hrE +\unrestrict 3cutCKeI4B1txb1hnEBC0gRFBwscVnbeOpxqBKqeVxbN10hobaeJMeSILYGlYIo diff --git a/pg-ddl/schema/frontend/company_top_apps__matview.sql b/pg-ddl/schema/frontend/company_top_apps__matview.sql index 14400dee..14227040 100644 --- a/pg-ddl/schema/frontend/company_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Fqnipgpngj6nmf3MpEwqMl2j2tcKnRTG2STP003feAKGm1uNvkQItscbrVi1KtZ +\restrict jgTWEdzbeIkFWpt4pS8GNzB7rvsnpho0jHKXX3g3bttJxIHtqahUN6nvFx8VXPf -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -118,5 +118,5 @@ CREATE UNIQUE INDEX idx_unique_company_top_apps ON frontend.company_top_apps USI -- PostgreSQL database dump complete -- -\unrestrict Fqnipgpngj6nmf3MpEwqMl2j2tcKnRTG2STP003feAKGm1uNvkQItscbrVi1KtZ +\unrestrict jgTWEdzbeIkFWpt4pS8GNzB7rvsnpho0jHKXX3g3bttJxIHtqahUN6nvFx8VXPf diff --git a/pg-ddl/schema/frontend/keyword_scores__matview.sql b/pg-ddl/schema/frontend/keyword_scores__matview.sql index f8243c7a..60b09bea 100644 --- a/pg-ddl/schema/frontend/keyword_scores__matview.sql +++ b/pg-ddl/schema/frontend/keyword_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict NsSQkMcc74bAx7RGuOxtOtz1ttybhLfVULVe5LEJdZHu5w5BRZdjKu5pU7hjJ8D +\restrict KUy4TVY022LYYaKM7CrEXxebbHwIF9zfbHhAMSs5Lypa9i8betnW30n8aUcBbqo -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -144,5 +144,5 @@ CREATE UNIQUE INDEX keyword_scores_store_keyword_id_idx ON frontend.keyword_scor -- PostgreSQL database dump complete -- -\unrestrict NsSQkMcc74bAx7RGuOxtOtz1ttybhLfVULVe5LEJdZHu5w5BRZdjKu5pU7hjJ8D +\unrestrict KUy4TVY022LYYaKM7CrEXxebbHwIF9zfbHhAMSs5Lypa9i8betnW30n8aUcBbqo diff --git a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql index 92ce3a3b..671a30f0 100644 --- a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql +++ b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 7BmCnHEcM1wvQfPW9bMjofHgQpZkC0T87zA0eLsqjtkgCPKKEa20eULzFasXugX +\restrict gnAODoMPVc7OpPFFn6eCB6ylBBUG3XKoH247QHlo9wQyTPxMTtOr1rYfEos7Vjm -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -77,5 +77,5 @@ CREATE UNIQUE INDEX latest_sdk_scanned_apps_unique_index ON frontend.latest_sdk_ -- PostgreSQL database dump complete -- -\unrestrict 7BmCnHEcM1wvQfPW9bMjofHgQpZkC0T87zA0eLsqjtkgCPKKEa20eULzFasXugX +\unrestrict gnAODoMPVc7OpPFFn6eCB6ylBBUG3XKoH247QHlo9wQyTPxMTtOr1rYfEos7Vjm diff --git a/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql b/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql index 5e447d8a..d850fb56 100644 --- a/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql +++ b/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict mbtnaIAMusKckRupWnhB4xOif0ilMG0uXXLxTDx5puDgnyX3UXnBpJxbHsb4gWz +\restrict luGg0AZP3qibbOErwv49F9CfY6KvCqONUVIZ3aEzIz04LS9Gn8bJ3FEPDn5wcbr -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER MATERIALIZED VIEW frontend.mediation_adapter_app_counts OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict mbtnaIAMusKckRupWnhB4xOif0ilMG0uXXLxTDx5puDgnyX3UXnBpJxbHsb4gWz +\unrestrict luGg0AZP3qibbOErwv49F9CfY6KvCqONUVIZ3aEzIz04LS9Gn8bJ3FEPDn5wcbr diff --git a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql index 5c2ef320..9625216b 100644 --- a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql +++ b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict q0WxVBuiu1qaeZSVznEF1hVuMzMsSrCsEQjFYPHFqKKIyIwwzjXa3aIwtoFeSmr +\restrict fTaLumVJxN8eQvd1ab3QMBwqphe5DdRdm6W2tlUM2RM8k2JJXwHYT5hhrzCrx9K -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -61,5 +61,5 @@ ALTER MATERIALIZED VIEW frontend.store_app_api_companies OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict q0WxVBuiu1qaeZSVznEF1hVuMzMsSrCsEQjFYPHFqKKIyIwwzjXa3aIwtoFeSmr +\unrestrict fTaLumVJxN8eQvd1ab3QMBwqphe5DdRdm6W2tlUM2RM8k2JJXwHYT5hhrzCrx9K diff --git a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql index 567690ff..697fd04f 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict MHihmzmR5DPmFm9Z48yoXYFO2G3qLupkzd34CMM9c4ghkaStRdaC20OT50P2xcv +\restrict KQosDDm2eCUvdZBWo5XnkHhx6IcHddJofbMz1BVdeqns8t3G5nPCQBlssPVYkXP -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -71,5 +71,5 @@ CREATE UNIQUE INDEX store_app_ranks_best_monthly_uidx ON frontend.store_app_rank -- PostgreSQL database dump complete -- -\unrestrict MHihmzmR5DPmFm9Z48yoXYFO2G3qLupkzd34CMM9c4ghkaStRdaC20OT50P2xcv +\unrestrict KQosDDm2eCUvdZBWo5XnkHhx6IcHddJofbMz1BVdeqns8t3G5nPCQBlssPVYkXP diff --git a/pg-ddl/schema/frontend/store_app_ranks_daily.sql b/pg-ddl/schema/frontend/store_app_ranks_daily.sql index dcd40701..7a51d12f 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_daily.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_daily.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict SggHufydAntkutXvpjAjE8Ys0BpWQQ7SZ1pHL9MixrGedavREwVfhVfHuv0BzTa +\restrict gcUURx2Ua3ar8wUwCRAOcTj7FXwRQgGKzyRzzRaoPlRiaAZxgDoBXayThJaf73a -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -91,5 +91,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_daily -- PostgreSQL database dump complete -- -\unrestrict SggHufydAntkutXvpjAjE8Ys0BpWQQ7SZ1pHL9MixrGedavREwVfhVfHuv0BzTa +\unrestrict gcUURx2Ua3ar8wUwCRAOcTj7FXwRQgGKzyRzzRaoPlRiaAZxgDoBXayThJaf73a diff --git a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql index 56d431bc..7162acbc 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 7ZZbn5k8htulDwGsytdzH1EQt73Q4zs3ncMzNDhYrECjKX9GRDScpcfJ5GDGSSc +\restrict kzXMy9f6rQOqzT8sim4fiKSGgg0tq3agPBnmoH34GKnubevO92jNYlcmBjfmbez -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -73,5 +73,5 @@ CREATE UNIQUE INDEX idx_store_app_ranks_latest_filter_sort ON frontend.store_app -- PostgreSQL database dump complete -- -\unrestrict 7ZZbn5k8htulDwGsytdzH1EQt73Q4zs3ncMzNDhYrECjKX9GRDScpcfJ5GDGSSc +\unrestrict kzXMy9f6rQOqzT8sim4fiKSGgg0tq3agPBnmoH34GKnubevO92jNYlcmBjfmbez diff --git a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql index c601738c..9a162091 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict caSEoXrC7biCuAKN2H9QsHKmg4XdWP6FeVPOBolCkaJcPnBVVfmPXsZqZv6bH51 +\restrict Fz09HV2ZX7hFhdPOV8nifKHGpW2g7TBQGwxGQfos6WMwptks7q7r0ZTwuzQ9AyU -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -98,5 +98,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_weekly -- PostgreSQL database dump complete -- -\unrestrict caSEoXrC7biCuAKN2H9QsHKmg4XdWP6FeVPOBolCkaJcPnBVVfmPXsZqZv6bH51 +\unrestrict Fz09HV2ZX7hFhdPOV8nifKHGpW2g7TBQGwxGQfos6WMwptks7q7r0ZTwuzQ9AyU diff --git a/pg-ddl/schema/frontend/store_apps_overview__matview.sql b/pg-ddl/schema/frontend/store_apps_overview__matview.sql index edd4d90d..438c73bd 100644 --- a/pg-ddl/schema/frontend/store_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/store_apps_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict NgGEiixDj3zCahyhffvDTaFOP43LFEol8Dm6IzQZDznsabfIK3prgk8U3m04xCs +\restrict GXRckyjgVGQ6bYbcBEMMJ5rGnBg3fsZgsgXJblNH8cAOs2Zggguhrm8JZQdeM4f -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -150,7 +150,9 @@ CREATE MATERIALIZED VIEW frontend.store_apps_overview AS lac.run_result, lsac.run_at AS api_successful_last_crawled, acr.ad_creative_count, - amc.ad_mon_creatives + amc.ad_mon_creatives, + GREATEST(COALESCE(am.installs, (0)::bigint), (COALESCE(am.rating_count, (0)::bigint) * 50)) AS installs_est, + GREATEST(COALESCE(saz.installs_sum_4w, (0)::numeric), (COALESCE(saz.ratings_sum_4w, (0)::numeric) * (50)::numeric)) AS installs_sum_4w_est FROM ((((((((((((((((public.store_apps sa LEFT JOIN public.category_mapping cm ON (((sa.category)::text = (cm.original_category)::text))) LEFT JOIN public.developers d ON ((sa.developer = d.id))) @@ -173,6 +175,27 @@ CREATE MATERIALIZED VIEW frontend.store_apps_overview AS ALTER MATERIALIZED VIEW frontend.store_apps_overview OWNER TO postgres; +-- +-- Name: store_apps_overview_installs_est_idx; Type: INDEX; Schema: frontend; Owner: postgres +-- + +CREATE INDEX store_apps_overview_installs_est_idx ON frontend.store_apps_overview USING btree (installs_est DESC); + + +-- +-- Name: store_apps_overview_installs_sum_4w_est_idx; Type: INDEX; Schema: frontend; Owner: postgres +-- + +CREATE INDEX store_apps_overview_installs_sum_4w_est_idx ON frontend.store_apps_overview USING btree (installs_sum_4w_est DESC); + + +-- +-- Name: store_apps_overview_store_last_updated_idx; Type: INDEX; Schema: frontend; Owner: postgres +-- + +CREATE INDEX store_apps_overview_store_last_updated_idx ON frontend.store_apps_overview USING btree (store_last_updated); + + -- -- Name: store_apps_overview_textsearch_idx; Type: INDEX; Schema: frontend; Owner: postgres -- @@ -205,5 +228,5 @@ CREATE UNIQUE INDEX store_apps_overview_unique_store_id_idx ON frontend.store_ap -- PostgreSQL database dump complete -- -\unrestrict NgGEiixDj3zCahyhffvDTaFOP43LFEol8Dm6IzQZDznsabfIK3prgk8U3m04xCs +\unrestrict GXRckyjgVGQ6bYbcBEMMJ5rGnBg3fsZgsgXJblNH8cAOs2Zggguhrm8JZQdeM4f diff --git a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql b/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql index 3600af8d..a891c59e 100644 --- a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql +++ b/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qgspUNQakpXt5Wbg8On0kFAc1HZWj9JfrgWBT6hYJyTInYuUN9QU1pg11R5vluW +\restrict IPlgcMBLGeYE3OZiprbhSkY7BtAUDm7Q6IPzwVfS41UThAfqIOGZ9LATHtfomjY -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -125,5 +125,5 @@ CREATE UNIQUE INDEX frontend_store_apps_z_scores_unique ON frontend.store_apps_z -- PostgreSQL database dump complete -- -\unrestrict qgspUNQakpXt5Wbg8On0kFAc1HZWj9JfrgWBT6hYJyTInYuUN9QU1pg11R5vluW +\unrestrict IPlgcMBLGeYE3OZiprbhSkY7BtAUDm7Q6IPzwVfS41UThAfqIOGZ9LATHtfomjY diff --git a/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql b/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql deleted file mode 100644 index 51e1c083..00000000 --- a/pg-ddl/schema/frontend/total_categories_app_counts__matview.sql +++ /dev/null @@ -1,57 +0,0 @@ --- --- PostgreSQL database dump --- - -\restrict 5hmNnrGVQKqTQDrELpfw1pmbT7c2JyNSJfhE9nxT5cmldWKtJy4hVnRnIwDGbM7 - --- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) --- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) - -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET transaction_timeout = 0; -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); -SET check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - -SET default_tablespace = ''; - -SET default_table_access_method = heap; - --- --- Name: total_categories_app_counts; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres --- - -CREATE MATERIALIZED VIEW frontend.total_categories_app_counts AS - SELECT sa.store, - tag.tag_source, - csac.app_category, - count(DISTINCT csac.store_app) AS app_count - FROM ((adtech.combined_store_apps_companies csac - LEFT JOIN public.store_apps sa ON ((csac.store_app = sa.id))) - CROSS JOIN LATERAL ( VALUES ('sdk'::text,csac.sdk), ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) - WHERE (tag.present IS TRUE) - GROUP BY sa.store, tag.tag_source, csac.app_category - WITH NO DATA; - - -ALTER MATERIALIZED VIEW frontend.total_categories_app_counts OWNER TO postgres; - --- --- Name: idx_total_categories_app_counts; Type: INDEX; Schema: frontend; Owner: postgres --- - -CREATE UNIQUE INDEX idx_total_categories_app_counts ON frontend.total_categories_app_counts USING btree (store, tag_source, app_category); - - --- --- PostgreSQL database dump complete --- - -\unrestrict 5hmNnrGVQKqTQDrELpfw1pmbT7c2JyNSJfhE9nxT5cmldWKtJy4hVnRnIwDGbM7 - diff --git a/pg-ddl/schema/full_db_dump.sql b/pg-ddl/schema/full_db_dump.sql index ca24a52b..4fea9947 100644 --- a/pg-ddl/schema/full_db_dump.sql +++ b/pg-ddl/schema/full_db_dump.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict H8HMtkDkYggiiYeKcTWAfeZZbH0PdPaq1xAHjMcJbSMkJcdpS7FTANjZwyfksa7 +\restrict 1jTBQd34td7kKcJ9DQSWz50m62FW5RaQzU3jrvdDu5Y76BGT9NVt5k9K9JObhCb -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -1191,7 +1191,9 @@ CREATE MATERIALIZED VIEW frontend.store_apps_overview AS lac.run_result, lsac.run_at AS api_successful_last_crawled, acr.ad_creative_count, - amc.ad_mon_creatives + amc.ad_mon_creatives, + GREATEST(COALESCE(am.installs, (0)::bigint), (COALESCE(am.rating_count, (0)::bigint) * 50)) AS installs_est, + GREATEST(COALESCE(saz.installs_sum_4w, (0)::numeric), (COALESCE(saz.ratings_sum_4w, (0)::numeric) * (50)::numeric)) AS installs_sum_4w_est FROM ((((((((((((((((public.store_apps sa LEFT JOIN public.category_mapping cm ON (((sa.category)::text = (cm.original_category)::text))) LEFT JOIN public.developers d ON ((sa.developer = d.id))) @@ -2687,41 +2689,110 @@ ALTER MATERIALIZED VIEW frontend.apps_new_yearly OWNER TO postgres; -- CREATE MATERIALIZED VIEW frontend.category_tag_stats AS - WITH d30_counts AS ( - SELECT sahw.store_app, - sum(sahw.installs_diff) AS d30_installs, - sum(sahw.rating_count_diff) AS d30_rating_count - FROM public.app_global_metrics_weekly_diffs sahw - WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) - GROUP BY sahw.store_app - ), distinct_apps_group AS ( - SELECT sa.store, - csac.store_app, - csac.app_category, - tag.tag_source, - sa.installs, - sa.rating_count - FROM ((adtech.combined_store_apps_companies csac - LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) + WITH distinct_apps_group AS ( + SELECT DISTINCT csac.store_app, + tag.tag_source + FROM (adtech.combined_store_apps_companies csac CROSS JOIN LATERAL ( VALUES ('sdk'::text,csac.sdk), ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) WHERE (tag.present IS TRUE) ) - SELECT dag.store, - dag.app_category, + SELECT sa.store, + sa.category AS app_category, dag.tag_source, count(DISTINCT dag.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(dag.installs) AS installs_total, - sum(dag.rating_count) AS rating_count_total + sum(sa.installs_sum_4w_est) AS installs_d30, + sum(sa.installs_est) AS installs_total FROM (distinct_apps_group dag - LEFT JOIN d30_counts dc ON ((dag.store_app = dc.store_app))) - GROUP BY dag.store, dag.app_category, dag.tag_source + LEFT JOIN frontend.store_apps_overview sa ON ((dag.store_app = sa.id))) + GROUP BY sa.store, sa.category, dag.tag_source WITH NO DATA; ALTER MATERIALIZED VIEW frontend.category_tag_stats OWNER TO postgres; +-- +-- Name: category_tag_type_stats; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres +-- + +CREATE MATERIALIZED VIEW frontend.category_tag_type_stats AS + WITH minimized_company_categories AS ( + SELECT company_categories.company_id, + min(company_categories.category_id) AS category_id + FROM adtech.company_categories + GROUP BY company_categories.company_id + ), api_and_app_ads AS ( + SELECT x.store, + x.app_category, + x.tag_source, + x.type_url_slug, + count(*) AS app_count, + sum(x.installs_sum_4w_est) AS installs_d30, + sum(x.installs_est) AS installs_total + FROM ( SELECT DISTINCT csac.store_app, + sa.store, + csac.app_category, + tag.tag_source, + CASE + WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying + ELSE cats.url_slug + END AS type_url_slug, + sa.installs_sum_4w_est, + sa.installs_est + FROM ((((adtech.combined_store_apps_companies csac + LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) + JOIN minimized_company_categories mcc ON ((csac.company_id = mcc.company_id))) + LEFT JOIN adtech.categories cats ON ((mcc.category_id = cats.id))) + CROSS JOIN LATERAL ( VALUES ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) + WHERE ((tag.present IS TRUE) AND (sa.id IS NOT NULL))) x + GROUP BY x.store, x.app_category, x.tag_source, x.type_url_slug + ), store_app_sdks AS ( + SELECT DISTINCT sass.store_app, + sass.sdk_id + FROM adtech.store_app_sdk_strings sass + WHERE (sass.sdk_id IS NOT NULL) + ), sdk_and_mediation AS ( + SELECT x.store, + x.app_category, + 'sdk'::text AS tag_source, + x.type_url_slug, + count(*) AS app_count, + sum(x.installs_sum_4w_est) AS installs_d30, + sum(x.installs_est) AS installs_total + FROM ( SELECT DISTINCT sas.store_app, + sa.store, + sa.category AS app_category, + cats.url_slug AS type_url_slug, + sa.installs_sum_4w_est, + sa.installs_est + FROM (((store_app_sdks sas + LEFT JOIN frontend.store_apps_overview sa ON ((sas.store_app = sa.id))) + LEFT JOIN adtech.sdk_categories sc ON ((sas.sdk_id = sc.sdk_id))) + LEFT JOIN adtech.categories cats ON ((sc.category_id = cats.id))) + WHERE (sa.id IS NOT NULL)) x + GROUP BY x.store, x.app_category, x.type_url_slug + ) + SELECT api_and_app_ads.store, + api_and_app_ads.app_category, + api_and_app_ads.tag_source, + api_and_app_ads.type_url_slug, + api_and_app_ads.app_count, + api_and_app_ads.installs_d30, + api_and_app_ads.installs_total + FROM api_and_app_ads +UNION ALL + SELECT sdk_and_mediation.store, + sdk_and_mediation.app_category, + sdk_and_mediation.tag_source, + sdk_and_mediation.type_url_slug, + sdk_and_mediation.app_count, + sdk_and_mediation.installs_d30, + sdk_and_mediation.installs_total + FROM sdk_and_mediation + WITH NO DATA; + + +ALTER MATERIALIZED VIEW frontend.category_tag_type_stats OWNER TO postgres; + -- -- Name: companies_apps_overview; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres -- @@ -2755,37 +2826,17 @@ ALTER MATERIALIZED VIEW frontend.companies_apps_overview OWNER TO postgres; -- CREATE MATERIALIZED VIEW frontend.companies_category_stats AS - WITH d30_counts AS ( - SELECT sahw.store_app, - sum(sahw.installs_diff) AS d30_installs, - sum(sahw.rating_count_diff) AS d30_rating_count - FROM public.app_global_metrics_weekly_diffs sahw - WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) - GROUP BY sahw.store_app - ), distinct_apps_group AS ( - SELECT sa.store, - csac.store_app, - csac.app_category, - csac.ad_domain AS company_domain, - c.name AS company_name, - sa.installs, - sa.rating_count - FROM ((adtech.combined_store_apps_companies csac - LEFT JOIN adtech.companies c ON ((csac.company_id = c.id))) - LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) - ) - SELECT dag.store, - dag.app_category, - dag.company_domain, - dag.company_name, - count(DISTINCT dag.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(dag.installs) AS installs_total, - sum(dag.rating_count) AS rating_count_total - FROM (distinct_apps_group dag - LEFT JOIN d30_counts dc ON ((dag.store_app = dc.store_app))) - GROUP BY dag.store, dag.app_category, dag.company_domain, dag.company_name + SELECT sa.store, + sa.category AS app_category, + csac.ad_domain AS company_domain, + c.name AS company_name, + count(DISTINCT csac.store_app) AS app_count, + sum(sa.installs_est) AS installs_total, + sum(sa.installs_sum_4w_est) AS installs_d30 + FROM ((adtech.combined_store_apps_companies csac + LEFT JOIN adtech.companies c ON ((csac.company_id = c.id))) + LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) + GROUP BY sa.store, sa.category, csac.ad_domain, c.name WITH NO DATA; @@ -2796,41 +2847,28 @@ ALTER MATERIALIZED VIEW frontend.companies_category_stats OWNER TO postgres; -- CREATE MATERIALIZED VIEW frontend.companies_category_tag_stats AS - WITH d30_counts AS ( - SELECT sahw.store_app, - sum(sahw.installs_diff) AS d30_installs, - sum(sahw.rating_count_diff) AS d30_rating_count - FROM public.app_global_metrics_weekly_diffs sahw - WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) - GROUP BY sahw.store_app - ), distinct_apps_group AS ( - SELECT sa.store, - csac.store_app, + WITH distinct_apps_group AS ( + SELECT csac.store_app, csac.app_category, tag.tag_source, csac.ad_domain AS company_domain, - c.name AS company_name, - sa.installs, - sa.rating_count - FROM (((adtech.combined_store_apps_companies csac + c.name AS company_name + FROM ((adtech.combined_store_apps_companies csac LEFT JOIN adtech.companies c ON ((csac.company_id = c.id))) - LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) CROSS JOIN LATERAL ( VALUES ('sdk'::text,csac.sdk), ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) WHERE (tag.present IS TRUE) ) - SELECT dag.store, - dag.app_category, + SELECT sa.store, + sa.category AS app_category, dag.tag_source, dag.company_domain, dag.company_name, count(DISTINCT dag.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(dag.installs) AS installs_total, - sum(dag.rating_count) AS rating_count_total + sum(sa.installs_sum_4w_est) AS installs_d30, + sum(sa.installs_est) AS installs_total FROM (distinct_apps_group dag - LEFT JOIN d30_counts dc ON ((dag.store_app = dc.store_app))) - GROUP BY dag.store, dag.app_category, dag.tag_source, dag.company_domain, dag.company_name + LEFT JOIN frontend.store_apps_overview sa ON ((dag.store_app = sa.id))) + GROUP BY sa.store, sa.category, dag.tag_source, dag.company_domain, dag.company_name WITH NO DATA; @@ -2841,14 +2879,7 @@ ALTER MATERIALIZED VIEW frontend.companies_category_tag_stats OWNER TO postgres; -- CREATE MATERIALIZED VIEW frontend.companies_category_tag_type_stats AS - WITH d30_counts AS ( - SELECT sahw.store_app, - sum(sahw.installs_diff) AS d30_installs, - sum(sahw.rating_count_diff) AS d30_rating_count - FROM public.app_global_metrics_weekly_diffs sahw - WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) - GROUP BY sahw.store_app - ), minimized_company_categories AS ( + WITH minimized_company_categories AS ( SELECT company_categories.company_id, min(company_categories.category_id) AS category_id FROM adtech.company_categories @@ -2864,14 +2895,11 @@ CREATE MATERIALIZED VIEW frontend.companies_category_tag_type_stats AS ELSE cats.url_slug END AS type_url_slug, count(DISTINCT csac.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(sa.installs) AS installs_total, - sum(sa.rating_count) AS rating_count_total - FROM ((((((adtech.combined_store_apps_companies csac + sum(sa.installs_sum_4w_est) AS installs_d30, + sum(sa.installs_est) AS installs_total + FROM (((((adtech.combined_store_apps_companies csac LEFT JOIN adtech.companies c ON ((csac.company_id = c.id))) LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) - LEFT JOIN d30_counts dc ON ((csac.store_app = dc.store_app))) LEFT JOIN minimized_company_categories mcc ON ((csac.company_id = mcc.company_id))) LEFT JOIN adtech.categories cats ON ((mcc.category_id = cats.id))) CROSS JOIN LATERAL ( VALUES ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) @@ -2894,16 +2922,13 @@ CREATE MATERIALIZED VIEW frontend.companies_category_tag_type_stats AS c.name AS company_name, cats.url_slug AS type_url_slug, count(DISTINCT sas.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(sa.installs) AS installs_total, - sum(sa.rating_count) AS rating_count_total - FROM (((((((store_app_sdks sas + sum(sa.installs_sum_4w_est) AS installs_d30, + sum(sa.installs_est) AS installs_total + FROM ((((((store_app_sdks sas LEFT JOIN adtech.sdks s ON ((sas.sdk_id = s.id))) LEFT JOIN adtech.companies c ON ((s.company_id = c.id))) LEFT JOIN public.domains d ON ((c.domain_id = d.id))) LEFT JOIN frontend.store_apps_overview sa ON ((sas.store_app = sa.id))) - LEFT JOIN d30_counts dc ON ((sas.store_app = dc.store_app))) LEFT JOIN adtech.sdk_categories sc ON ((sas.sdk_id = sc.sdk_id))) LEFT JOIN adtech.categories cats ON ((sc.category_id = cats.id))) GROUP BY sa.store, sa.category, 'sdk'::text, d.domain_name, c.name, cats.url_slug @@ -2916,9 +2941,7 @@ CREATE MATERIALIZED VIEW frontend.companies_category_tag_type_stats AS api_and_app_ads.type_url_slug, api_and_app_ads.app_count, api_and_app_ads.installs_d30, - api_and_app_ads.rating_count_d30, - api_and_app_ads.installs_total, - api_and_app_ads.rating_count_total + api_and_app_ads.installs_total FROM api_and_app_ads UNION ALL SELECT sdk_and_mediation.store, @@ -2929,9 +2952,7 @@ UNION ALL sdk_and_mediation.type_url_slug, sdk_and_mediation.app_count, sdk_and_mediation.installs_d30, - sdk_and_mediation.rating_count_d30, - sdk_and_mediation.installs_total, - sdk_and_mediation.rating_count_total + sdk_and_mediation.installs_total FROM sdk_and_mediation WITH NO DATA; @@ -3066,42 +3087,28 @@ ALTER MATERIALIZED VIEW frontend.companies_open_source_percent OWNER TO postgres -- CREATE MATERIALIZED VIEW frontend.companies_parent_category_stats AS - WITH d30_counts AS ( - SELECT sahw.store_app, - sum(sahw.installs_diff) AS d30_installs, - sum(sahw.rating_count_diff) AS d30_rating_count - FROM public.app_global_metrics_weekly_diffs sahw - WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) - GROUP BY sahw.store_app - ), distinct_apps_group AS ( - SELECT sa.store, - csac.store_app, - csac.app_category, - c.name AS company_name, - sa.installs, - sa.rating_count, - COALESCE(ad.domain_name, csac.ad_domain) AS company_domain - FROM (((adtech.combined_store_apps_companies csac + WITH distinct_apps_group AS ( + SELECT DISTINCT csac.store_app, + COALESCE(ad.domain_name, csac.ad_domain) AS company_domain, + c.name AS company_name + FROM ((adtech.combined_store_apps_companies csac LEFT JOIN adtech.companies c ON ((csac.parent_id = c.id))) LEFT JOIN public.domains ad ON ((c.domain_id = ad.id))) - LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) WHERE (csac.parent_id IN ( SELECT DISTINCT pc.id FROM (adtech.companies pc LEFT JOIN adtech.companies c_1 ON ((pc.id = c_1.parent_company_id))) WHERE (c_1.id IS NOT NULL))) ) - SELECT dag.store, - dag.app_category, + SELECT sa.store, + sa.category AS app_category, dag.company_domain, dag.company_name, count(DISTINCT dag.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(dag.installs) AS installs_total, - sum(dag.rating_count) AS rating_count_total + sum(sa.installs_sum_4w_est) AS installs_d30, + sum(sa.installs_est) AS installs_total FROM (distinct_apps_group dag - LEFT JOIN d30_counts dc ON ((dag.store_app = dc.store_app))) - GROUP BY dag.store, dag.app_category, dag.company_domain, dag.company_name + LEFT JOIN frontend.store_apps_overview sa ON ((dag.store_app = sa.id))) + GROUP BY sa.store, sa.category, dag.company_domain, dag.company_name WITH NO DATA; @@ -3112,45 +3119,31 @@ ALTER MATERIALIZED VIEW frontend.companies_parent_category_stats OWNER TO postgr -- CREATE MATERIALIZED VIEW frontend.companies_parent_category_tag_stats AS - WITH d30_counts AS ( - SELECT sahw.store_app, - sum(sahw.installs_diff) AS d30_installs, - sum(sahw.rating_count_diff) AS d30_rating_count - FROM public.app_global_metrics_weekly_diffs sahw - WHERE ((sahw.week_start > (CURRENT_DATE - '31 days'::interval)) AND ((sahw.installs_diff > (0)::numeric) OR (sahw.rating_count_diff > (0)::numeric))) - GROUP BY sahw.store_app - ), distinct_apps_group AS ( - SELECT sa.store, - csac.store_app, - csac.app_category, + WITH distinct_apps_group AS ( + SELECT DISTINCT csac.store_app, tag.tag_source, c.name AS company_name, - sa.installs, - sa.rating_count, COALESCE(ad.domain_name, csac.ad_domain) AS company_domain - FROM ((((adtech.combined_store_apps_companies csac + FROM (((adtech.combined_store_apps_companies csac LEFT JOIN adtech.companies c ON ((csac.parent_id = c.id))) LEFT JOIN public.domains ad ON ((c.domain_id = ad.id))) - LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) CROSS JOIN LATERAL ( VALUES ('sdk'::text,csac.sdk), ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) WHERE ((tag.present IS TRUE) AND (csac.parent_id IN ( SELECT DISTINCT pc.id FROM (adtech.companies pc LEFT JOIN adtech.companies c_1 ON ((pc.id = c_1.parent_company_id))) WHERE (c_1.id IS NOT NULL)))) ) - SELECT dag.store, - dag.app_category, + SELECT sa.store, + sa.category AS app_category, dag.tag_source, dag.company_domain, dag.company_name, count(DISTINCT dag.store_app) AS app_count, - sum(dc.d30_installs) AS installs_d30, - sum(dc.d30_rating_count) AS rating_count_d30, - sum(dag.installs) AS installs_total, - sum(dag.rating_count) AS rating_count_total + sum(sa.installs_sum_4w_est) AS installs_d30, + sum(sa.installs_est) AS installs_total FROM (distinct_apps_group dag - LEFT JOIN d30_counts dc ON ((dag.store_app = dc.store_app))) - GROUP BY dag.store, dag.app_category, dag.tag_source, dag.company_domain, dag.company_name + LEFT JOIN frontend.store_apps_overview sa ON ((dag.store_app = sa.id))) + GROUP BY sa.store, sa.category, dag.tag_source, dag.company_domain, dag.company_name WITH NO DATA; @@ -3880,25 +3873,6 @@ CREATE MATERIALIZED VIEW frontend.store_apps_z_scores AS ALTER MATERIALIZED VIEW frontend.store_apps_z_scores OWNER TO postgres; --- --- Name: total_categories_app_counts; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres --- - -CREATE MATERIALIZED VIEW frontend.total_categories_app_counts AS - SELECT sa.store, - tag.tag_source, - csac.app_category, - count(DISTINCT csac.store_app) AS app_count - FROM ((adtech.combined_store_apps_companies csac - LEFT JOIN public.store_apps sa ON ((csac.store_app = sa.id))) - CROSS JOIN LATERAL ( VALUES ('sdk'::text,csac.sdk), ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) - WHERE (tag.present IS TRUE) - GROUP BY sa.store, tag.tag_source, csac.app_category - WITH NO DATA; - - -ALTER MATERIALIZED VIEW frontend.total_categories_app_counts OWNER TO postgres; - -- -- Name: app_country_crawls; Type: TABLE; Schema: logging; Owner: postgres -- @@ -6058,6 +6032,13 @@ CREATE INDEX companies_parent_category_tag_stats_query_idx ON frontend.companies CREATE UNIQUE INDEX companies_sdks_overview_unique_idx ON frontend.companies_sdks_overview USING btree (company_name, company_domain, parent_company_domain, sdk_name, package_pattern, path_pattern); +-- +-- Name: frontend_companies_category_tag_type_stats_unique; Type: INDEX; Schema: frontend; Owner: postgres +-- + +CREATE UNIQUE INDEX frontend_companies_category_tag_type_stats_unique ON frontend.companies_category_tag_type_stats USING btree (store, app_category, tag_source, company_domain, type_url_slug); + + -- -- Name: frontend_store_apps_z_scores_unique; Type: INDEX; Schema: frontend; Owner: postgres -- @@ -6212,13 +6193,6 @@ CREATE INDEX idx_store_app_ranks_best_monthly_store ON frontend.store_app_ranks_ CREATE UNIQUE INDEX idx_store_app_ranks_latest_filter_sort ON frontend.store_app_ranks_latest USING btree (store_collection, store_category, country, rank); --- --- Name: idx_total_categories_app_counts; Type: INDEX; Schema: frontend; Owner: postgres --- - -CREATE UNIQUE INDEX idx_total_categories_app_counts ON frontend.total_categories_app_counts USING btree (store, tag_source, app_category); - - -- -- Name: idx_unique_company_domains_top_apps; Type: INDEX; Schema: frontend; Owner: postgres -- @@ -6261,6 +6235,27 @@ CREATE INDEX sarw_crawled_store_collection_category_country_idx ON frontend.stor CREATE UNIQUE INDEX store_app_ranks_best_monthly_uidx ON frontend.store_app_ranks_best_monthly USING btree (store_id, country, collection, category); +-- +-- Name: store_apps_overview_installs_est_idx; Type: INDEX; Schema: frontend; Owner: postgres +-- + +CREATE INDEX store_apps_overview_installs_est_idx ON frontend.store_apps_overview USING btree (installs_est DESC); + + +-- +-- Name: store_apps_overview_installs_sum_4w_est_idx; Type: INDEX; Schema: frontend; Owner: postgres +-- + +CREATE INDEX store_apps_overview_installs_sum_4w_est_idx ON frontend.store_apps_overview USING btree (installs_sum_4w_est DESC); + + +-- +-- Name: store_apps_overview_store_last_updated_idx; Type: INDEX; Schema: frontend; Owner: postgres +-- + +CREATE INDEX store_apps_overview_store_last_updated_idx ON frontend.store_apps_overview USING btree (store_last_updated); + + -- -- Name: store_apps_overview_textsearch_idx; Type: INDEX; Schema: frontend; Owner: postgres -- @@ -6506,6 +6501,13 @@ CREATE INDEX store_apps_developer_idx ON public.store_apps USING btree (develope CREATE INDEX store_apps_name_idx ON public.store_apps USING gin (to_tsvector('simple'::regconfig, (name)::text)); +-- +-- Name: store_apps_store_and_id_idx; Type: INDEX; Schema: public; Owner: james +-- + +CREATE INDEX store_apps_store_and_id_idx ON public.store_apps USING btree (store, id); + + -- -- Name: store_apps_store_id_idx; Type: INDEX; Schema: public; Owner: james -- @@ -7248,5 +7250,5 @@ GRANT ALL ON SCHEMA public TO PUBLIC; -- PostgreSQL database dump complete -- -\unrestrict H8HMtkDkYggiiYeKcTWAfeZZbH0PdPaq1xAHjMcJbSMkJcdpS7FTANjZwyfksa7 +\unrestrict 1jTBQd34td7kKcJ9DQSWz50m62FW5RaQzU3jrvdDu5Y76BGT9NVt5k9K9JObhCb diff --git a/pg-ddl/schema/logging/app_country_crawls.sql b/pg-ddl/schema/logging/app_country_crawls.sql index 3147d54d..bfe3b9af 100644 --- a/pg-ddl/schema/logging/app_country_crawls.sql +++ b/pg-ddl/schema/logging/app_country_crawls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict y2ATfZwO8k6eOpD6jYUuc9g2tfT4xh2hssXhQ5cWoau3PSwdPinDFZZNV2XMuVs +\restrict EYGbLjhaZQMatR8czx87p3ZVlr7Ax089TcZ62MZk53ntZfGI3os6mYPGh6pvIBy -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -57,5 +57,5 @@ ALTER TABLE ONLY logging.app_country_crawls -- PostgreSQL database dump complete -- -\unrestrict y2ATfZwO8k6eOpD6jYUuc9g2tfT4xh2hssXhQ5cWoau3PSwdPinDFZZNV2XMuVs +\unrestrict EYGbLjhaZQMatR8czx87p3ZVlr7Ax089TcZ62MZk53ntZfGI3os6mYPGh6pvIBy diff --git a/pg-ddl/schema/logging/app_description_keywords_extracted.sql b/pg-ddl/schema/logging/app_description_keywords_extracted.sql index 242a8bab..08fea6bf 100644 --- a/pg-ddl/schema/logging/app_description_keywords_extracted.sql +++ b/pg-ddl/schema/logging/app_description_keywords_extracted.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict xLSnoL7U5qehY4YpuFXBVoMwFaqZRKMjcWzDhqpbd7vPdnkUBUUUAprDiehPHsu +\restrict Ne3VlrceI2bg5sUQMqdi88cX32uV0OOBNfm03smIFAej6uoIsdfJBFvIHGz2VLh -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ CREATE INDEX app_description_keywords_extrac_description_id_extracted_at_idx ON -- PostgreSQL database dump complete -- -\unrestrict xLSnoL7U5qehY4YpuFXBVoMwFaqZRKMjcWzDhqpbd7vPdnkUBUUUAprDiehPHsu +\unrestrict Ne3VlrceI2bg5sUQMqdi88cX32uV0OOBNfm03smIFAej6uoIsdfJBFvIHGz2VLh diff --git a/pg-ddl/schema/logging/creative_scan_results.sql b/pg-ddl/schema/logging/creative_scan_results.sql index 6700844c..8445662d 100644 --- a/pg-ddl/schema/logging/creative_scan_results.sql +++ b/pg-ddl/schema/logging/creative_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 9bHVlhp1e7SEftLcVSFoq763LETwlaOdS7Mhi5Stm7UFw99HfRw3HhQjpfg77Mb +\restrict ruEBqMMdppd1q5AE8TFnqMenkjXbzgo88ClvWy8hkQTTek6OGiBNpr9Chvtq3FB -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -47,5 +47,5 @@ ALTER TABLE logging.creative_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 9bHVlhp1e7SEftLcVSFoq763LETwlaOdS7Mhi5Stm7UFw99HfRw3HhQjpfg77Mb +\unrestrict ruEBqMMdppd1q5AE8TFnqMenkjXbzgo88ClvWy8hkQTTek6OGiBNpr9Chvtq3FB diff --git a/pg-ddl/schema/logging/developers_crawled_at.sql b/pg-ddl/schema/logging/developers_crawled_at.sql index 7e0c1be7..96ebba2b 100644 --- a/pg-ddl/schema/logging/developers_crawled_at.sql +++ b/pg-ddl/schema/logging/developers_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict l45kq1ZedJuRUkdVcXbGLU9wjGWQsmoFFZea8CVyS9xdMhxEbfMJjCpVWRdUgms +\restrict Jgs0VazXunTc5lZSRZQ1a9m4d7PSYfURMwmLMHipeoq12hKfLZqtFWHzMqB9GUD -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.developers_crawled_at -- PostgreSQL database dump complete -- -\unrestrict l45kq1ZedJuRUkdVcXbGLU9wjGWQsmoFFZea8CVyS9xdMhxEbfMJjCpVWRdUgms +\unrestrict Jgs0VazXunTc5lZSRZQ1a9m4d7PSYfURMwmLMHipeoq12hKfLZqtFWHzMqB9GUD diff --git a/pg-ddl/schema/logging/keywords_crawled_at.sql b/pg-ddl/schema/logging/keywords_crawled_at.sql index 7d06ab7c..49f46408 100644 --- a/pg-ddl/schema/logging/keywords_crawled_at.sql +++ b/pg-ddl/schema/logging/keywords_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 6xlKoai7dtktdqeQbEbkoqkJ4t0ww6i93deIUCDPtwstv6PDdVHYehkIhW6nM2r +\restrict sjfLuF7OL7YovV9bHFblDkI7O7mu65Z840lg03WruMY9ULgZ25NyDilPofdfr1u -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.keywords_crawled_at -- PostgreSQL database dump complete -- -\unrestrict 6xlKoai7dtktdqeQbEbkoqkJ4t0ww6i93deIUCDPtwstv6PDdVHYehkIhW6nM2r +\unrestrict sjfLuF7OL7YovV9bHFblDkI7O7mu65Z840lg03WruMY9ULgZ25NyDilPofdfr1u diff --git a/pg-ddl/schema/logging/snapshot_pub_domains.sql b/pg-ddl/schema/logging/snapshot_pub_domains.sql index c1e6ac94..c60d0a9e 100644 --- a/pg-ddl/schema/logging/snapshot_pub_domains.sql +++ b/pg-ddl/schema/logging/snapshot_pub_domains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 4IgYu2dGGu49A5uNvteoHcgtKKNf3hb4ulGsWqLfbCuvmKJETM5316K0hHGBGQ7 +\restrict ARxlu3Ph78ShOOpxm5gwac2KbxzzDD2bSgXOLHNUBeqsxOxzuyhqVeFoZIB3Lax -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -43,5 +43,5 @@ ALTER TABLE logging.snapshot_pub_domains OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 4IgYu2dGGu49A5uNvteoHcgtKKNf3hb4ulGsWqLfbCuvmKJETM5316K0hHGBGQ7 +\unrestrict ARxlu3Ph78ShOOpxm5gwac2KbxzzDD2bSgXOLHNUBeqsxOxzuyhqVeFoZIB3Lax diff --git a/pg-ddl/schema/logging/store_app_downloads.sql b/pg-ddl/schema/logging/store_app_downloads.sql index 23130d26..cc673d9e 100644 --- a/pg-ddl/schema/logging/store_app_downloads.sql +++ b/pg-ddl/schema/logging/store_app_downloads.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict TBGApHJFei7TlHpg3d8ogIvVWa7S1bVIdntMRv5Iv5vjMeM2Z1VL7XrBeOozZet +\restrict H0riuJYqURVZGqbWwrouoNkUIXz0nUnK3WJy40PLmAmxcLSgmDXfMf11WFFAjo7 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -49,5 +49,5 @@ ALTER TABLE ONLY logging.store_app_downloads -- PostgreSQL database dump complete -- -\unrestrict TBGApHJFei7TlHpg3d8ogIvVWa7S1bVIdntMRv5Iv5vjMeM2Z1VL7XrBeOozZet +\unrestrict H0riuJYqURVZGqbWwrouoNkUIXz0nUnK3WJy40PLmAmxcLSgmDXfMf11WFFAjo7 diff --git a/pg-ddl/schema/logging/store_app_no_creatives.sql b/pg-ddl/schema/logging/store_app_no_creatives.sql index 499c5794..ae33e427 100644 --- a/pg-ddl/schema/logging/store_app_no_creatives.sql +++ b/pg-ddl/schema/logging/store_app_no_creatives.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict BxHkiiPShTbMFNneBayjGAYbsPeEoxtskhLdbKHP8Kc0VoZcMfUfk00ksu9ABOj +\restrict fOzrfavHz1Q8BTj8g5tBZnVRc5rbEMANGbjhvHUpS98QWhus6fM8fi6GpI82qGc -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -40,5 +40,5 @@ ALTER TABLE logging.store_app_no_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict BxHkiiPShTbMFNneBayjGAYbsPeEoxtskhLdbKHP8Kc0VoZcMfUfk00ksu9ABOj +\unrestrict fOzrfavHz1Q8BTj8g5tBZnVRc5rbEMANGbjhvHUpS98QWhus6fM8fi6GpI82qGc diff --git a/pg-ddl/schema/logging/store_app_sources.sql b/pg-ddl/schema/logging/store_app_sources.sql index 6c760b88..cea10dcd 100644 --- a/pg-ddl/schema/logging/store_app_sources.sql +++ b/pg-ddl/schema/logging/store_app_sources.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5mLG36lrWRAuiFdOXSRnlTfjf21IEhwR1gPJERbcDunlqfSTrgzpTI23Cv3fiCN +\restrict iTxm3YtK3KHl7cWFQr0Efw27YPNNxwedXvZed8m6ICehoOUHSZ7bH8NmmrgNLcj -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -64,5 +64,5 @@ ALTER TABLE ONLY logging.store_app_sources -- PostgreSQL database dump complete -- -\unrestrict 5mLG36lrWRAuiFdOXSRnlTfjf21IEhwR1gPJERbcDunlqfSTrgzpTI23Cv3fiCN +\unrestrict iTxm3YtK3KHl7cWFQr0Efw27YPNNxwedXvZed8m6ICehoOUHSZ7bH8NmmrgNLcj diff --git a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql index 51805033..a5ac42c3 100644 --- a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql +++ b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict QRoH0crvJDivGDV08GpCtCpuwqG3rlLJnxmtbw8SGey1wO8VxxbIJ5nAipadyYQ +\restrict KI5hNnTnFQSHdPYc0NuwjiMeOGJR33kPxI5Mj1Fs7y39hio4P0rLbVAAnwWYsav -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -63,5 +63,5 @@ ALTER TABLE ONLY logging.store_app_waydroid_crawled_at -- PostgreSQL database dump complete -- -\unrestrict QRoH0crvJDivGDV08GpCtCpuwqG3rlLJnxmtbw8SGey1wO8VxxbIJ5nAipadyYQ +\unrestrict KI5hNnTnFQSHdPYc0NuwjiMeOGJR33kPxI5Mj1Fs7y39hio4P0rLbVAAnwWYsav diff --git a/pg-ddl/schema/logging/store_apps_snapshot.sql b/pg-ddl/schema/logging/store_apps_snapshot.sql index e56affe2..1bca5033 100644 --- a/pg-ddl/schema/logging/store_apps_snapshot.sql +++ b/pg-ddl/schema/logging/store_apps_snapshot.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict clObeJua0hbeQOfCfDBIVqWIa7r55RqjmrqY4R32LtgBejxnJfaEkYJnoQhLvDT +\restrict SECJm6T0bcEI7cnSMGGuX5CuuaEii0GKx5ozsQWx2I0I9a5TuNTaaj8hRJfuKwa -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -44,5 +44,5 @@ ALTER TABLE logging.store_apps_snapshot OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict clObeJua0hbeQOfCfDBIVqWIa7r55RqjmrqY4R32LtgBejxnJfaEkYJnoQhLvDT +\unrestrict SECJm6T0bcEI7cnSMGGuX5CuuaEii0GKx5ozsQWx2I0I9a5TuNTaaj8hRJfuKwa diff --git a/pg-ddl/schema/logging/version_code_api_scan_results.sql b/pg-ddl/schema/logging/version_code_api_scan_results.sql index e5aa21ab..309d7688 100644 --- a/pg-ddl/schema/logging/version_code_api_scan_results.sql +++ b/pg-ddl/schema/logging/version_code_api_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict nTyArWm7oynveMB5Xw35nvXWI881SP6VgLogiUb9zsWOIqOtbDpQUZWMnKhz0yg +\restrict 5YPdfcTa1yApkgdTazGpNKQ4kRuorRA7NeXabPNPTcM2SxB4vvp832v0TbSqCEa -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -42,5 +42,5 @@ ALTER TABLE logging.version_code_api_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict nTyArWm7oynveMB5Xw35nvXWI881SP6VgLogiUb9zsWOIqOtbDpQUZWMnKhz0yg +\unrestrict 5YPdfcTa1yApkgdTazGpNKQ4kRuorRA7NeXabPNPTcM2SxB4vvp832v0TbSqCEa diff --git a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql index 2ed9f145..70205e99 100644 --- a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql +++ b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict PB1W9S0nJjOpD7Xz51w2nyT11ExbS86s1ePVjepEHrYo4lyaXDr41AtIUlPAwlJ +\restrict cDkioI9C1xgMjQwGD5OE2d01hSM62Ts8jFwsJxRCG3masrQkBdzwtpHCNJ0kixd -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -60,5 +60,5 @@ ALTER MATERIALIZED VIEW public.ad_network_sdk_keys OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict PB1W9S0nJjOpD7Xz51w2nyT11ExbS86s1ePVjepEHrYo4lyaXDr41AtIUlPAwlJ +\unrestrict cDkioI9C1xgMjQwGD5OE2d01hSM62Ts8jFwsJxRCG3masrQkBdzwtpHCNJ0kixd diff --git a/pg-ddl/schema/public/adstxt_crawl_results.sql b/pg-ddl/schema/public/adstxt_crawl_results.sql index 3cb8c8a3..0dc82b0c 100644 --- a/pg-ddl/schema/public/adstxt_crawl_results.sql +++ b/pg-ddl/schema/public/adstxt_crawl_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Qnia9kbGghz5ZHtgLq8t4ACUJHnwA3cKJS20RcXfqtxrmjCrPs6zT0VfJ3JAGob +\restrict FW0TbCAHpP3sxAF7V9gHd5O6dooFlsA1VDLyNo6bG7qxWWyIBM0CZLpbgnlLoB9 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -96,5 +96,5 @@ ALTER TABLE ONLY public.adstxt_crawl_results -- PostgreSQL database dump complete -- -\unrestrict Qnia9kbGghz5ZHtgLq8t4ACUJHnwA3cKJS20RcXfqtxrmjCrPs6zT0VfJ3JAGob +\unrestrict FW0TbCAHpP3sxAF7V9gHd5O6dooFlsA1VDLyNo6bG7qxWWyIBM0CZLpbgnlLoB9 diff --git a/pg-ddl/schema/public/api_calls.sql b/pg-ddl/schema/public/api_calls.sql index 28e08438..b43b7729 100644 --- a/pg-ddl/schema/public/api_calls.sql +++ b/pg-ddl/schema/public/api_calls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 0zAka3pFsAdAYRVJi2BveqeWb7wT2DAWYM8T9UXRMhQRYOi2dKLRUX1zE0Ecpb7 +\restrict SAvCvBwtGqT0k7yLmqgspw0q2Wd1d0dy7wqZIVhyxK5WnheHvzOcqbLtuQfNSX1 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -135,5 +135,5 @@ ALTER TABLE ONLY public.api_calls -- PostgreSQL database dump complete -- -\unrestrict 0zAka3pFsAdAYRVJi2BveqeWb7wT2DAWYM8T9UXRMhQRYOi2dKLRUX1zE0Ecpb7 +\unrestrict SAvCvBwtGqT0k7yLmqgspw0q2Wd1d0dy7wqZIVhyxK5WnheHvzOcqbLtuQfNSX1 diff --git a/pg-ddl/schema/public/app_ads_entrys.sql b/pg-ddl/schema/public/app_ads_entrys.sql index 4cf8c749..5b12e1bc 100644 --- a/pg-ddl/schema/public/app_ads_entrys.sql +++ b/pg-ddl/schema/public/app_ads_entrys.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict STCRgnBebf2K50tpakkYzPPc2ebxMhfuWK14Wf3IaVBh7FsGqguEVORis9rwWf5 +\restrict 1Pcr7pXxf4t5jwRYD361GF9CjC5YzLl5wfbJ8vgZJKhQ6yhMOIWCWSTKN2xP5Ak -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -90,5 +90,5 @@ ALTER TABLE ONLY public.app_ads_entrys -- PostgreSQL database dump complete -- -\unrestrict STCRgnBebf2K50tpakkYzPPc2ebxMhfuWK14Wf3IaVBh7FsGqguEVORis9rwWf5 +\unrestrict 1Pcr7pXxf4t5jwRYD361GF9CjC5YzLl5wfbJ8vgZJKhQ6yhMOIWCWSTKN2xP5Ak diff --git a/pg-ddl/schema/public/app_ads_map.sql b/pg-ddl/schema/public/app_ads_map.sql index 24702b56..1e198da5 100644 --- a/pg-ddl/schema/public/app_ads_map.sql +++ b/pg-ddl/schema/public/app_ads_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict srXGn3hfV7gu7lvDgRiFIXDxr9vePvuWcZPeSTyZSHTMfgL92eqSQCVcyc5TCp2 +\restrict 1IszHkKaXgYvqj8yYVBqPrtomfnHQhHXKPhxcYrUwK8exhdp5WarUvh5Z5GAlbF -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_ads_map -- PostgreSQL database dump complete -- -\unrestrict srXGn3hfV7gu7lvDgRiFIXDxr9vePvuWcZPeSTyZSHTMfgL92eqSQCVcyc5TCp2 +\unrestrict 1IszHkKaXgYvqj8yYVBqPrtomfnHQhHXKPhxcYrUwK8exhdp5WarUvh5Z5GAlbF diff --git a/pg-ddl/schema/public/app_country_metrics_history.sql b/pg-ddl/schema/public/app_country_metrics_history.sql index 2de018bd..c0387197 100644 --- a/pg-ddl/schema/public/app_country_metrics_history.sql +++ b/pg-ddl/schema/public/app_country_metrics_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict b08dgFVgpT5BjfFT1EidDL2hJSamGVrcZnLkZtwfvd86gPURvXJCPie3nYpHnFd +\restrict J2csH15l5j28yyxDoMIcHofvvQeQH6pVkeARplSO5Q0d3kxT1L3vWyVsUXHHk3b -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.app_country_metrics_history -- PostgreSQL database dump complete -- -\unrestrict b08dgFVgpT5BjfFT1EidDL2hJSamGVrcZnLkZtwfvd86gPURvXJCPie3nYpHnFd +\unrestrict J2csH15l5j28yyxDoMIcHofvvQeQH6pVkeARplSO5Q0d3kxT1L3vWyVsUXHHk3b diff --git a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql index aeddc5e3..57cef58e 100644 --- a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict sO7xVHGxYEl8rb98eybOR5UnXtSH1E6VsKc73b7UuyxwkxRU1JJhsrNazO3vMGa +\restrict AO390YDhbrRVDRwmAmeuHYQEBSYE3MLww1nEb1Ue2gM87VtYV8bcbBIDuK429Zq -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -57,5 +57,5 @@ CREATE UNIQUE INDEX app_country_metrics_latest_idx ON public.app_country_metrics -- PostgreSQL database dump complete -- -\unrestrict sO7xVHGxYEl8rb98eybOR5UnXtSH1E6VsKc73b7UuyxwkxRU1JJhsrNazO3vMGa +\unrestrict AO390YDhbrRVDRwmAmeuHYQEBSYE3MLww1nEb1Ue2gM87VtYV8bcbBIDuK429Zq diff --git a/pg-ddl/schema/public/app_global_metrics_history.sql b/pg-ddl/schema/public/app_global_metrics_history.sql index 325c6d80..036bb61a 100644 --- a/pg-ddl/schema/public/app_global_metrics_history.sql +++ b/pg-ddl/schema/public/app_global_metrics_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1hmKdZRNhqTEJoppKw2sFPbjXOeJtEi66hgaObDuvoePGa68uinpNEOff2nljAy +\restrict 5zjPpDQfO089Bd3A7AeicDqFE0ePhx8QqJ0C0HHQ5A2cckJ16G8t1FMQch6fYGH -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.app_global_metrics_history -- PostgreSQL database dump complete -- -\unrestrict 1hmKdZRNhqTEJoppKw2sFPbjXOeJtEi66hgaObDuvoePGa68uinpNEOff2nljAy +\unrestrict 5zjPpDQfO089Bd3A7AeicDqFE0ePhx8QqJ0C0HHQ5A2cckJ16G8t1FMQch6fYGH diff --git a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql index 85e6f7e1..d70725d8 100644 --- a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict pAMjTORVUDZF7McI8ZyNlSYW3b0cdPg6JNw1119YE5Ob1DGBFJpJ4AAZCK6gOmS +\restrict 8eTdPTqm26mjvW96LwgptvzLc9UHn3bXFPd5rMMDzVtkStzEO0Lr7OrzdjElhxP -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX app_global_metrics_latest_idx ON public.app_global_metrics_l -- PostgreSQL database dump complete -- -\unrestrict pAMjTORVUDZF7McI8ZyNlSYW3b0cdPg6JNw1119YE5Ob1DGBFJpJ4AAZCK6gOmS +\unrestrict 8eTdPTqm26mjvW96LwgptvzLc9UHn3bXFPd5rMMDzVtkStzEO0Lr7OrzdjElhxP diff --git a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql index 1a63e72d..db22474c 100644 --- a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict NFhzpApjoHkbj98bTesQk37MRjJpe7PfJCZjHnqVax3hsrjeDXUtBPgYdaUwolp +\restrict aejrESSn3sKuyUax5Tj1Pcm44UFJltFrwziFfzze7fU6YZYGebTfKo5TLYfzhzk -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX app_global_metrics_weekly_diffs_week_start_store_app_idx ON -- PostgreSQL database dump complete -- -\unrestrict NFhzpApjoHkbj98bTesQk37MRjJpe7PfJCZjHnqVax3hsrjeDXUtBPgYdaUwolp +\unrestrict aejrESSn3sKuyUax5Tj1Pcm44UFJltFrwziFfzze7fU6YZYGebTfKo5TLYfzhzk diff --git a/pg-ddl/schema/public/app_keywords_extracted.sql b/pg-ddl/schema/public/app_keywords_extracted.sql index 6b710f72..be8baa64 100644 --- a/pg-ddl/schema/public/app_keywords_extracted.sql +++ b/pg-ddl/schema/public/app_keywords_extracted.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict IonETirA5sahNq0Oa4mvKbz62cOldagQfyIcSazi73ZOpntCAEKOgvk27S8iDfe +\restrict xJsKa01ZTjSPJXkOzQfOQFU1ezOFqcmUK3ElqvUVbqJkFan6Jn3iWO3e3uZ44SM -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -79,5 +79,5 @@ ALTER TABLE ONLY public.app_keywords_extracted -- PostgreSQL database dump complete -- -\unrestrict IonETirA5sahNq0Oa4mvKbz62cOldagQfyIcSazi73ZOpntCAEKOgvk27S8iDfe +\unrestrict xJsKa01ZTjSPJXkOzQfOQFU1ezOFqcmUK3ElqvUVbqJkFan6Jn3iWO3e3uZ44SM diff --git a/pg-ddl/schema/public/app_urls_map.sql b/pg-ddl/schema/public/app_urls_map.sql index 4ae886dc..42008b62 100644 --- a/pg-ddl/schema/public/app_urls_map.sql +++ b/pg-ddl/schema/public/app_urls_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict SLsOB06Cf2VdY6lSxiPlWWZde6aJVJaet6dUzL628hUx47HbqhhJogxH2vCcdq4 +\restrict M2bzGRCM5UxceTTekmRI1m99F5ppXAa3CrHcGj5sHldC3fdvh1Uanzfs6NhQvO2 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_urls_map -- PostgreSQL database dump complete -- -\unrestrict SLsOB06Cf2VdY6lSxiPlWWZde6aJVJaet6dUzL628hUx47HbqhhJogxH2vCcdq4 +\unrestrict M2bzGRCM5UxceTTekmRI1m99F5ppXAa3CrHcGj5sHldC3fdvh1Uanzfs6NhQvO2 diff --git a/pg-ddl/schema/public/category_mapping__matview.sql b/pg-ddl/schema/public/category_mapping__matview.sql index 51259766..d6c88af4 100644 --- a/pg-ddl/schema/public/category_mapping__matview.sql +++ b/pg-ddl/schema/public/category_mapping__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict xK0PvE89JbZtm0UWrLpaToquGFHoMDgKXT9qewWo5lf1RbDduKUfFz6cGMAFqP2 +\restrict jFlNsQfIN9LL3J7mlx8x1cmxiUz14Kik3NXn3PnXvhq43RwG2e8BJJbKj1RbYel -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -67,5 +67,5 @@ CREATE UNIQUE INDEX category_mapping_idx ON public.category_mapping USING btree -- PostgreSQL database dump complete -- -\unrestrict xK0PvE89JbZtm0UWrLpaToquGFHoMDgKXT9qewWo5lf1RbDduKUfFz6cGMAFqP2 +\unrestrict jFlNsQfIN9LL3J7mlx8x1cmxiUz14Kik3NXn3PnXvhq43RwG2e8BJJbKj1RbYel diff --git a/pg-ddl/schema/public/countries.sql b/pg-ddl/schema/public/countries.sql index 0f3df0ca..adc9a56e 100644 --- a/pg-ddl/schema/public/countries.sql +++ b/pg-ddl/schema/public/countries.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict DZ5WI7S9RJaFBDkq2j9eMwhg2zOHIFOGfuLvQ6VG8R5sny53AZB1cSOSMHT6aTP +\restrict WrbgJ7KPPWhgQP8767Fv3jUPSeZv0hGf5K1cQVK7aGxOf8PaKQDdiwBgTzbJZFa -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -71,5 +71,5 @@ ALTER TABLE ONLY public.countries -- PostgreSQL database dump complete -- -\unrestrict DZ5WI7S9RJaFBDkq2j9eMwhg2zOHIFOGfuLvQ6VG8R5sny53AZB1cSOSMHT6aTP +\unrestrict WrbgJ7KPPWhgQP8767Fv3jUPSeZv0hGf5K1cQVK7aGxOf8PaKQDdiwBgTzbJZFa diff --git a/pg-ddl/schema/public/crawl_results.sql b/pg-ddl/schema/public/crawl_results.sql index ec876e84..5362f76a 100644 --- a/pg-ddl/schema/public/crawl_results.sql +++ b/pg-ddl/schema/public/crawl_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Zi6hsrB6FIybenY1lOZH6FL35iIsGE7wwC9lgp5P1y9ID8cHIixrfiWyjGubJsL +\restrict fTyMH6jLulBBCJU4rYRU4boO5XncaEhKGhKGbQiaHc9hohp2sGYJT9LROBu2JTZ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -61,5 +61,5 @@ ALTER TABLE ONLY public.crawl_results -- PostgreSQL database dump complete -- -\unrestrict Zi6hsrB6FIybenY1lOZH6FL35iIsGE7wwC9lgp5P1y9ID8cHIixrfiWyjGubJsL +\unrestrict fTyMH6jLulBBCJU4rYRU4boO5XncaEhKGhKGbQiaHc9hohp2sGYJT9LROBu2JTZ diff --git a/pg-ddl/schema/public/crawl_scenario_country_config.sql b/pg-ddl/schema/public/crawl_scenario_country_config.sql index 3aec3619..dfd0b153 100644 --- a/pg-ddl/schema/public/crawl_scenario_country_config.sql +++ b/pg-ddl/schema/public/crawl_scenario_country_config.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Ot3ZxfmhsnvZkBP4WapntWo9oHYJcE7iiyOsDkw9wB3ZFUtbcApbJ4ou3CYsrIK +\restrict YNRJXQep6NNxN8QQYBphcD9Cy6MeOE5JUIhBK9lBIwCUu6qtVLZdxvZbmlh7Owx -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.crawl_scenario_country_config -- PostgreSQL database dump complete -- -\unrestrict Ot3ZxfmhsnvZkBP4WapntWo9oHYJcE7iiyOsDkw9wB3ZFUtbcApbJ4ou3CYsrIK +\unrestrict YNRJXQep6NNxN8QQYBphcD9Cy6MeOE5JUIhBK9lBIwCUu6qtVLZdxvZbmlh7Owx diff --git a/pg-ddl/schema/public/crawl_scenarios.sql b/pg-ddl/schema/public/crawl_scenarios.sql index c4baeffb..840b165c 100644 --- a/pg-ddl/schema/public/crawl_scenarios.sql +++ b/pg-ddl/schema/public/crawl_scenarios.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict WcQeLgb9z1ZI1OHsyyw8gdZeOjqGrOVjT6HgXvaXbGwJQAdNgYugXhkxmz189CB +\restrict RVrTu04xFc9aRAu4T0NYp8bx5NhhO7Cvi5UtILuNOnJ4VIML5cL995ZNZT3aKfm -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.crawl_scenarios -- PostgreSQL database dump complete -- -\unrestrict WcQeLgb9z1ZI1OHsyyw8gdZeOjqGrOVjT6HgXvaXbGwJQAdNgYugXhkxmz189CB +\unrestrict RVrTu04xFc9aRAu4T0NYp8bx5NhhO7Cvi5UtILuNOnJ4VIML5cL995ZNZT3aKfm diff --git a/pg-ddl/schema/public/creative_assets.sql b/pg-ddl/schema/public/creative_assets.sql index 338b1804..91479a75 100644 --- a/pg-ddl/schema/public/creative_assets.sql +++ b/pg-ddl/schema/public/creative_assets.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ULf7R8Pgc8mWKeerQNNtfmbcynFGLwDJPchcEz5qZoceJIJee1ndXnYc4x0Rowv +\restrict lfMu7H2vqoqN2T6XCsgqx4adrJMHRNN6pqEBTohWfrEybyV4rhdY7kfECI5KArG -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -94,5 +94,5 @@ CREATE INDEX idx_creative_assets_phash ON public.creative_assets USING btree (ph -- PostgreSQL database dump complete -- -\unrestrict ULf7R8Pgc8mWKeerQNNtfmbcynFGLwDJPchcEz5qZoceJIJee1ndXnYc4x0Rowv +\unrestrict lfMu7H2vqoqN2T6XCsgqx4adrJMHRNN6pqEBTohWfrEybyV4rhdY7kfECI5KArG diff --git a/pg-ddl/schema/public/creative_records.sql b/pg-ddl/schema/public/creative_records.sql index fed723a7..9f013a5e 100644 --- a/pg-ddl/schema/public/creative_records.sql +++ b/pg-ddl/schema/public/creative_records.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict dYHZ1lF8UjbMDn8D2nM5gsVgG0DydOWDUtdumKfGuoc9boqTmOnpLtmddczhbPd +\restrict nJMlBCRzqWrNNoghUfQsbzrNzXxeJzUuv72YiAn1NRhG8MDgScxs1Ka3ySVYPXA -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -153,5 +153,5 @@ ALTER TABLE ONLY public.creative_records -- PostgreSQL database dump complete -- -\unrestrict dYHZ1lF8UjbMDn8D2nM5gsVgG0DydOWDUtdumKfGuoc9boqTmOnpLtmddczhbPd +\unrestrict nJMlBCRzqWrNNoghUfQsbzrNzXxeJzUuv72YiAn1NRhG8MDgScxs1Ka3ySVYPXA diff --git a/pg-ddl/schema/public/developer_store_apps__matview.sql b/pg-ddl/schema/public/developer_store_apps__matview.sql index 3c12b64f..cc08d02a 100644 --- a/pg-ddl/schema/public/developer_store_apps__matview.sql +++ b/pg-ddl/schema/public/developer_store_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ntQDyekUDYB4K55R8QSefdOgiWEVjkz2JkYDZRu4sx4WlbaB6uu7W9oaD2PGhsA +\restrict 5wIn6A0K4Inbw76cPQ8itMDm6K4Awh33g0baPjro5bK8IkN9fhI783ZBPS4KEOJ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -83,5 +83,5 @@ CREATE UNIQUE INDEX idx_developer_store_apps_unique ON public.developer_store_ap -- PostgreSQL database dump complete -- -\unrestrict ntQDyekUDYB4K55R8QSefdOgiWEVjkz2JkYDZRu4sx4WlbaB6uu7W9oaD2PGhsA +\unrestrict 5wIn6A0K4Inbw76cPQ8itMDm6K4Awh33g0baPjro5bK8IkN9fhI783ZBPS4KEOJ diff --git a/pg-ddl/schema/public/developers.sql b/pg-ddl/schema/public/developers.sql index 9717afd9..fe18e770 100644 --- a/pg-ddl/schema/public/developers.sql +++ b/pg-ddl/schema/public/developers.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict QWtyIVB4ji0FfM1DsFKYvEWk47bmA0v1oKhdtxYfV5jbYe9P7oQwKJ4IfbokAYP +\restrict LeuDhBdTHxIE6nzcjy7mCXZuK6qZR8R8DuFJkhloF0XCgsaGTFFPMKum9HfbnCL -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -110,5 +110,5 @@ ALTER TABLE ONLY public.developers -- PostgreSQL database dump complete -- -\unrestrict QWtyIVB4ji0FfM1DsFKYvEWk47bmA0v1oKhdtxYfV5jbYe9P7oQwKJ4IfbokAYP +\unrestrict LeuDhBdTHxIE6nzcjy7mCXZuK6qZR8R8DuFJkhloF0XCgsaGTFFPMKum9HfbnCL diff --git a/pg-ddl/schema/public/domains.sql b/pg-ddl/schema/public/domains.sql index b7a078da..747a100c 100644 --- a/pg-ddl/schema/public/domains.sql +++ b/pg-ddl/schema/public/domains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict aXgsPLdyVvLIL5gp9ami4n4hH7RFbcvCnsrb9GwNUoI7eIvybfvcQhKkC542ZKm +\restrict e7YxoYVWo60uXjJ8V62LCaelvDjdcGvflkRAaEIggGcfeGaHaWr2iqn9Gpi67dD -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.domains -- PostgreSQL database dump complete -- -\unrestrict aXgsPLdyVvLIL5gp9ami4n4hH7RFbcvCnsrb9GwNUoI7eIvybfvcQhKkC542ZKm +\unrestrict e7YxoYVWo60uXjJ8V62LCaelvDjdcGvflkRAaEIggGcfeGaHaWr2iqn9Gpi67dD diff --git a/pg-ddl/schema/public/ip_geo_snapshots.sql b/pg-ddl/schema/public/ip_geo_snapshots.sql index 1e679ab8..9a941bea 100644 --- a/pg-ddl/schema/public/ip_geo_snapshots.sql +++ b/pg-ddl/schema/public/ip_geo_snapshots.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Zi8ViBzMY2q60o7E9AHCHT8tcoJ5Ri9R0MiCSZ9m82gbPss23VDhLjvj9TQMScZ +\restrict dcicygFBhT9r1pbiBabWAKqrKP7UrFW878mzqepWz4IaeI7o7cJR5bxOhs3LE0m -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.ip_geo_snapshots -- PostgreSQL database dump complete -- -\unrestrict Zi8ViBzMY2q60o7E9AHCHT8tcoJ5Ri9R0MiCSZ9m82gbPss23VDhLjvj9TQMScZ +\unrestrict dcicygFBhT9r1pbiBabWAKqrKP7UrFW878mzqepWz4IaeI7o7cJR5bxOhs3LE0m diff --git a/pg-ddl/schema/public/keywords.sql b/pg-ddl/schema/public/keywords.sql index 54c7dbe1..9f6571fa 100644 --- a/pg-ddl/schema/public/keywords.sql +++ b/pg-ddl/schema/public/keywords.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict taXKJFrnhImvbucvsoTqrunXQY74mJo43EjdsfTYlrDv2od5SluzQySfAB0nfdk +\restrict hEl5r6BthAQQILz7UXsSlRKNFUXLjP7fp5ncYzJlYty2iEebeL2sGkNQg7JLFBq -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.keywords -- PostgreSQL database dump complete -- -\unrestrict taXKJFrnhImvbucvsoTqrunXQY74mJo43EjdsfTYlrDv2od5SluzQySfAB0nfdk +\unrestrict hEl5r6BthAQQILz7UXsSlRKNFUXLjP7fp5ncYzJlYty2iEebeL2sGkNQg7JLFBq diff --git a/pg-ddl/schema/public/keywords_base.sql b/pg-ddl/schema/public/keywords_base.sql index 21bedf7c..746bdeb7 100644 --- a/pg-ddl/schema/public/keywords_base.sql +++ b/pg-ddl/schema/public/keywords_base.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qxi4IsRbuWd2D20yREz9btsoIqedaVNpCqYoOCICb4Ts6jfeOfKxvQHaAbHamFY +\restrict bFCbTgEtFv8rTH6TLwPlQf78MCp6ce5cFWi6mk8YgMCZ6Q5bar9F6N7kLsEVV2e -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -38,5 +38,5 @@ ALTER TABLE public.keywords_base OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict qxi4IsRbuWd2D20yREz9btsoIqedaVNpCqYoOCICb4Ts6jfeOfKxvQHaAbHamFY +\unrestrict bFCbTgEtFv8rTH6TLwPlQf78MCp6ce5cFWi6mk8YgMCZ6Q5bar9F6N7kLsEVV2e diff --git a/pg-ddl/schema/public/languages.sql b/pg-ddl/schema/public/languages.sql index 6b51f08c..8298d409 100644 --- a/pg-ddl/schema/public/languages.sql +++ b/pg-ddl/schema/public/languages.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict byfuraspGILseySZSKvP9OqtsUO9B4gXeBtXv0LZnvm7mPaU0ja34wCsaE6Jbmf +\restrict VINRhZcAYpGt4E6tlZXVNuXLqpUs5nlnvzj9cOTY25dgTP4GH1ZgKh4oWZTwZge -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.languages -- PostgreSQL database dump complete -- -\unrestrict byfuraspGILseySZSKvP9OqtsUO9B4gXeBtXv0LZnvm7mPaU0ja34wCsaE6Jbmf +\unrestrict VINRhZcAYpGt4E6tlZXVNuXLqpUs5nlnvzj9cOTY25dgTP4GH1ZgKh4oWZTwZge diff --git a/pg-ddl/schema/public/mv_app_categories__matview.sql b/pg-ddl/schema/public/mv_app_categories__matview.sql index 4c98881e..25b9ae2b 100644 --- a/pg-ddl/schema/public/mv_app_categories__matview.sql +++ b/pg-ddl/schema/public/mv_app_categories__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict UlKKGZf69Jxei7bDJKB00Ug2sdt3iI5searFXeUHZWzG6ozOIxHRDRmnw3JdXEO +\restrict OvUvDxy8lPscEpi9NdVjrG37fBqt6ADwBNjTioigWHdOVMcqOXxyNlfzRIZnuBi -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -45,5 +45,5 @@ ALTER MATERIALIZED VIEW public.mv_app_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict UlKKGZf69Jxei7bDJKB00Ug2sdt3iI5searFXeUHZWzG6ozOIxHRDRmnw3JdXEO +\unrestrict OvUvDxy8lPscEpi9NdVjrG37fBqt6ADwBNjTioigWHdOVMcqOXxyNlfzRIZnuBi diff --git a/pg-ddl/schema/public/pg_stat_statements__view.sql b/pg-ddl/schema/public/pg_stat_statements__view.sql index 2f985223..cfc1a0fa 100644 --- a/pg-ddl/schema/public/pg_stat_statements__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements__view.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict tZ9ul4Q0iWrwsGXfAWsE5sS5eEMwxl2RcQSpZTg5SutxZ4XTscZZS9iXjke4L1g +\restrict HSsW8niOTXoNseIDeZb6VnTdZXR1EVpl87DglVbZfgX07eyn3K8f2FygaM3YnVa -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict tZ9ul4Q0iWrwsGXfAWsE5sS5eEMwxl2RcQSpZTg5SutxZ4XTscZZS9iXjke4L1g +\unrestrict HSsW8niOTXoNseIDeZb6VnTdZXR1EVpl87DglVbZfgX07eyn3K8f2FygaM3YnVa diff --git a/pg-ddl/schema/public/pg_stat_statements_info__view.sql b/pg-ddl/schema/public/pg_stat_statements_info__view.sql index c3cf6eef..5b1194a2 100644 --- a/pg-ddl/schema/public/pg_stat_statements_info__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements_info__view.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict GDJZfR93PuYI7Q5L1I4OASujllCzXvirVRMWt5WdchmYZ0Hlfe5i4476qxKOZXs +\restrict emSXiMI0W2mcvAp6PlPl6S9qISV3umNa7W6f6jIFx8gxdAX96TZwEmSbSYjabEY -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict GDJZfR93PuYI7Q5L1I4OASujllCzXvirVRMWt5WdchmYZ0Hlfe5i4476qxKOZXs +\unrestrict emSXiMI0W2mcvAp6PlPl6S9qISV3umNa7W6f6jIFx8gxdAX96TZwEmSbSYjabEY diff --git a/pg-ddl/schema/public/platforms.sql b/pg-ddl/schema/public/platforms.sql index 0f303883..c6d4e00b 100644 --- a/pg-ddl/schema/public/platforms.sql +++ b/pg-ddl/schema/public/platforms.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict dDJfiXXrT3ORlfGRPnwzbcblzKoqfshKdfSPZ3tyQRdt0dddjdUGqp7lWQZlO1r +\restrict MaKPSaLMgKw0KNJqKm3kkBANLjOCT8AcpKeifV8aVspB8gAgYVUBY3uZMqhjMpH -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.platforms -- PostgreSQL database dump complete -- -\unrestrict dDJfiXXrT3ORlfGRPnwzbcblzKoqfshKdfSPZ3tyQRdt0dddjdUGqp7lWQZlO1r +\unrestrict MaKPSaLMgKw0KNJqKm3kkBANLjOCT8AcpKeifV8aVspB8gAgYVUBY3uZMqhjMpH diff --git a/pg-ddl/schema/public/store_app_z_scores__matview.sql b/pg-ddl/schema/public/store_app_z_scores__matview.sql index 3e7ef582..d95ec568 100644 --- a/pg-ddl/schema/public/store_app_z_scores__matview.sql +++ b/pg-ddl/schema/public/store_app_z_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict DL5tynvvJy5Nl7VNZGBBBU3kOjIQYgy4eigzfXbTRhAW6tzJ9BNNY4LsCXKzb0A +\restrict jtnEzDtwGvbtgiWeYpTf9LqkhOZ2H5zSBdD0r89tEp5huZDVPfq4ahwmIsEPKX3 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -155,5 +155,5 @@ ALTER MATERIALIZED VIEW public.store_app_z_scores OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict DL5tynvvJy5Nl7VNZGBBBU3kOjIQYgy4eigzfXbTRhAW6tzJ9BNNY4LsCXKzb0A +\unrestrict jtnEzDtwGvbtgiWeYpTf9LqkhOZ2H5zSBdD0r89tEp5huZDVPfq4ahwmIsEPKX3 diff --git a/pg-ddl/schema/public/store_app_z_scores_history.sql b/pg-ddl/schema/public/store_app_z_scores_history.sql index abda1fc6..5679edd1 100644 --- a/pg-ddl/schema/public/store_app_z_scores_history.sql +++ b/pg-ddl/schema/public/store_app_z_scores_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict i6T84Wkeg8xmriGsJ9LsqBrVx5KNpYXQqFc8wvLLaL7gyjoZJKuOayb0W0qDKh1 +\restrict cijwV3Glck7EBY3xjNFyXTVE0QxwygE197tQPr51oNqJ9EpJDlCOQfYDohlbykx -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -64,5 +64,5 @@ ALTER TABLE ONLY public.store_app_z_scores_history -- PostgreSQL database dump complete -- -\unrestrict i6T84Wkeg8xmriGsJ9LsqBrVx5KNpYXQqFc8wvLLaL7gyjoZJKuOayb0W0qDKh1 +\unrestrict cijwV3Glck7EBY3xjNFyXTVE0QxwygE197tQPr51oNqJ9EpJDlCOQfYDohlbykx diff --git a/pg-ddl/schema/public/store_apps.sql b/pg-ddl/schema/public/store_apps.sql index f3de5c2e..4b06b708 100644 --- a/pg-ddl/schema/public/store_apps.sql +++ b/pg-ddl/schema/public/store_apps.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 2lswl9uWBr6tPsrv3n5EsY4EUSxp7mX1d3irQ5ezrmd2LIIAmoRlVttfghLpvyb +\restrict iNCFqr2y3Zo7loWUkicSYhyMmcb1Z1ZnX4U8Bn3Te46K0rFibwtYsNIiW40hFsn -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -107,6 +107,13 @@ CREATE INDEX store_apps_developer_idx ON public.store_apps USING btree (develope CREATE INDEX store_apps_name_idx ON public.store_apps USING gin (to_tsvector('simple'::regconfig, (name)::text)); +-- +-- Name: store_apps_store_and_id_idx; Type: INDEX; Schema: public; Owner: james +-- + +CREATE INDEX store_apps_store_and_id_idx ON public.store_apps USING btree (store, id); + + -- -- Name: store_apps_store_id_idx; Type: INDEX; Schema: public; Owner: james -- @@ -163,5 +170,5 @@ ALTER TABLE ONLY public.store_apps -- PostgreSQL database dump complete -- -\unrestrict 2lswl9uWBr6tPsrv3n5EsY4EUSxp7mX1d3irQ5ezrmd2LIIAmoRlVttfghLpvyb +\unrestrict iNCFqr2y3Zo7loWUkicSYhyMmcb1Z1ZnX4U8Bn3Te46K0rFibwtYsNIiW40hFsn diff --git a/pg-ddl/schema/public/store_apps_descriptions.sql b/pg-ddl/schema/public/store_apps_descriptions.sql index 98df13b8..4e55812b 100644 --- a/pg-ddl/schema/public/store_apps_descriptions.sql +++ b/pg-ddl/schema/public/store_apps_descriptions.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 6A8HbqcHtrdvoU0JMdmzkTK7wqItWRdCnis8KMZeOoMx2CIAydplIdAkOJptcct +\restrict UXfZjf1cHqLDaYN0MDhc8foKJ9NIIb3PsjoCBhgQVb1VNrnbiBHfXY7uHMfujCd -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.store_apps_descriptions -- PostgreSQL database dump complete -- -\unrestrict 6A8HbqcHtrdvoU0JMdmzkTK7wqItWRdCnis8KMZeOoMx2CIAydplIdAkOJptcct +\unrestrict UXfZjf1cHqLDaYN0MDhc8foKJ9NIIb3PsjoCBhgQVb1VNrnbiBHfXY7uHMfujCd diff --git a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql index f57a1355..56584e88 100644 --- a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql +++ b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 8WO4DlhK2VwCgNy8WK3ObWKgGF974Z89aHulpxoOBqfYr0pyihQbtJHyPXi5NAw +\restrict xtypUOmTqHbEbD9NRcMqlj9N27i24SNfccvtGV8QiTU6pwlVIn2Jibi0GwlmtIp -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW public.store_apps_in_latest_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 8WO4DlhK2VwCgNy8WK3ObWKgGF974Z89aHulpxoOBqfYr0pyihQbtJHyPXi5NAw +\unrestrict xtypUOmTqHbEbD9NRcMqlj9N27i24SNfccvtGV8QiTU6pwlVIn2Jibi0GwlmtIp diff --git a/pg-ddl/schema/public/store_categories.sql b/pg-ddl/schema/public/store_categories.sql index 50309ae2..96c07b62 100644 --- a/pg-ddl/schema/public/store_categories.sql +++ b/pg-ddl/schema/public/store_categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict jS5tEiZMEuLV8Jp9JAMvHQ3eKTg0N7lbeFRelLEA44kMw8EAobDRUprDvMikUcF +\restrict Z01RdcE7Rdhm1dgCDlyyamZvEyI9RWzbeRwyYz2sngMZHcXBi5IZfDdNhiIK0zr -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_categories -- PostgreSQL database dump complete -- -\unrestrict jS5tEiZMEuLV8Jp9JAMvHQ3eKTg0N7lbeFRelLEA44kMw8EAobDRUprDvMikUcF +\unrestrict Z01RdcE7Rdhm1dgCDlyyamZvEyI9RWzbeRwyYz2sngMZHcXBi5IZfDdNhiIK0zr diff --git a/pg-ddl/schema/public/store_collections.sql b/pg-ddl/schema/public/store_collections.sql index a83fef01..703d626f 100644 --- a/pg-ddl/schema/public/store_collections.sql +++ b/pg-ddl/schema/public/store_collections.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict oPI4I931PspqnrLm41frIvTeGIo2VFQEZb2D02SHQuVxtMwaIccF5RyybiDxmeY +\restrict KbUCc6TT3GXdAGUXfFIbRTtkPCQhQcfa6qUjZaybTbyX5kV44dc58pqztKpNedg -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_collections -- PostgreSQL database dump complete -- -\unrestrict oPI4I931PspqnrLm41frIvTeGIo2VFQEZb2D02SHQuVxtMwaIccF5RyybiDxmeY +\unrestrict KbUCc6TT3GXdAGUXfFIbRTtkPCQhQcfa6qUjZaybTbyX5kV44dc58pqztKpNedg diff --git a/pg-ddl/schema/public/stores.sql b/pg-ddl/schema/public/stores.sql index ea519f2e..e57f723d 100644 --- a/pg-ddl/schema/public/stores.sql +++ b/pg-ddl/schema/public/stores.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict t19gING1Ec4HaHb054AO8xcLdVktFTsYNVmm2FiYccEX2OnJUtlEgQLEXGCwh6O +\restrict rTzoimGlGiEeYec7ncOnNvEXieqKU93NTJ5sOgsIzGul68EEtPKizc9bxtRysV3 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -93,5 +93,5 @@ ALTER TABLE ONLY public.stores -- PostgreSQL database dump complete -- -\unrestrict t19gING1Ec4HaHb054AO8xcLdVktFTsYNVmm2FiYccEX2OnJUtlEgQLEXGCwh6O +\unrestrict rTzoimGlGiEeYec7ncOnNvEXieqKU93NTJ5sOgsIzGul68EEtPKizc9bxtRysV3 diff --git a/pg-ddl/schema/public/total_count_overview__matview.sql b/pg-ddl/schema/public/total_count_overview__matview.sql index 10b244cb..ae59855b 100644 --- a/pg-ddl/schema/public/total_count_overview__matview.sql +++ b/pg-ddl/schema/public/total_count_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict z7K2kWp9YeLUamnGRsHUXkcpGaA0SohS00Ewsq1hI5qAwTf5T6jRB0q12JcQ3Xz +\restrict 2LAQeMB2Lxa8tHVD8MACVlpiiswUUCuWgFShEg5rqDCnoRaAHbZcv2r7j9LelqY -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -166,5 +166,5 @@ ALTER MATERIALIZED VIEW public.total_count_overview OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict z7K2kWp9YeLUamnGRsHUXkcpGaA0SohS00Ewsq1hI5qAwTf5T6jRB0q12JcQ3Xz +\unrestrict 2LAQeMB2Lxa8tHVD8MACVlpiiswUUCuWgFShEg5rqDCnoRaAHbZcv2r7j9LelqY diff --git a/pg-ddl/schema/public/version_code_api_scan_results.sql b/pg-ddl/schema/public/version_code_api_scan_results.sql index 18ef92dc..6ff992df 100644 --- a/pg-ddl/schema/public/version_code_api_scan_results.sql +++ b/pg-ddl/schema/public/version_code_api_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5uHjaasaH4C0SX95sMBjed9u6x3a7UfWn5hxdbgTl6JYSMPXNCpazOgaVC729Mw +\restrict vnZaR5hqam9NboGr2p0I1bzxPFCqd1EznI5Y1O894oMk7AlrWLPp8PK1whzIO9p -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -87,5 +87,5 @@ ALTER TABLE ONLY public.version_code_api_scan_results -- PostgreSQL database dump complete -- -\unrestrict 5uHjaasaH4C0SX95sMBjed9u6x3a7UfWn5hxdbgTl6JYSMPXNCpazOgaVC729Mw +\unrestrict vnZaR5hqam9NboGr2p0I1bzxPFCqd1EznI5Y1O894oMk7AlrWLPp8PK1whzIO9p diff --git a/pg-ddl/schema/public/version_code_sdk_scan_results.sql b/pg-ddl/schema/public/version_code_sdk_scan_results.sql index bceb5126..a77f1633 100644 --- a/pg-ddl/schema/public/version_code_sdk_scan_results.sql +++ b/pg-ddl/schema/public/version_code_sdk_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict LjGLbcldSprv7TLfqpco5dc4CQOXt0yHDf03wxxkMD0XK0aEoWFtNXoRwwa1ZYw +\restrict uwXJXBpbQwho1fCwbLh9a84KbIt3j1FmafOeKd07AZub9JZSqlebHi7CVFuULq9 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.version_code_sdk_scan_results -- PostgreSQL database dump complete -- -\unrestrict LjGLbcldSprv7TLfqpco5dc4CQOXt0yHDf03wxxkMD0XK0aEoWFtNXoRwwa1ZYw +\unrestrict uwXJXBpbQwho1fCwbLh9a84KbIt3j1FmafOeKd07AZub9JZSqlebHi7CVFuULq9 diff --git a/pg-ddl/schema/public/version_codes.sql b/pg-ddl/schema/public/version_codes.sql index 4c93d1f2..d96c3ec7 100644 --- a/pg-ddl/schema/public/version_codes.sql +++ b/pg-ddl/schema/public/version_codes.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ASPwxokjxiKuiDGWtsvoD4dsvbVQttUOsiAQfh6kc6fl8nrov0ahmWay7Xvwnz4 +\restrict uAE1R6YBcdUTjVUOg5ixJMVQ1cblgQBxyaLVsaZDwvyyOZT4bdLsy7xDE8irtYy -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -89,5 +89,5 @@ ALTER TABLE ONLY public.version_codes -- PostgreSQL database dump complete -- -\unrestrict ASPwxokjxiKuiDGWtsvoD4dsvbVQttUOsiAQfh6kc6fl8nrov0ahmWay7Xvwnz4 +\unrestrict uAE1R6YBcdUTjVUOg5ixJMVQ1cblgQBxyaLVsaZDwvyyOZT4bdLsy7xDE8irtYy diff --git a/pg-ddl/schema/public/version_details_map.sql b/pg-ddl/schema/public/version_details_map.sql index 333e45dc..dd75d043 100644 --- a/pg-ddl/schema/public/version_details_map.sql +++ b/pg-ddl/schema/public/version_details_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Sx5ukaOBQ4sQlHkmc8G5EKgS9gaapDzZMcYiJmPOv6F6x6AifTuei5CKkspDzam +\restrict 55u6ebpTlccKN9pVJG9o1YLo6NrCNExeu4y37sI2AT7myfTwSLuwdpvdoTXwecv -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_details_map -- PostgreSQL database dump complete -- -\unrestrict Sx5ukaOBQ4sQlHkmc8G5EKgS9gaapDzZMcYiJmPOv6F6x6AifTuei5CKkspDzam +\unrestrict 55u6ebpTlccKN9pVJG9o1YLo6NrCNExeu4y37sI2AT7myfTwSLuwdpvdoTXwecv diff --git a/pg-ddl/schema/public/version_manifests.sql b/pg-ddl/schema/public/version_manifests.sql index 47125dc3..dba3faf7 100644 --- a/pg-ddl/schema/public/version_manifests.sql +++ b/pg-ddl/schema/public/version_manifests.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict babGPeOSGxSOt89YsfKoGWxfpP2YQolFYc64IQQf6TeZCuLo0rYCa8Dqw3U8s4T +\restrict 5u4fVDlAwn2Ca7CozjgElNFMqdFmhA8DyOXk2ndVEdedkCQbWAa4FfBuYsZfOW8 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_manifests -- PostgreSQL database dump complete -- -\unrestrict babGPeOSGxSOt89YsfKoGWxfpP2YQolFYc64IQQf6TeZCuLo0rYCa8Dqw3U8s4T +\unrestrict 5u4fVDlAwn2Ca7CozjgElNFMqdFmhA8DyOXk2ndVEdedkCQbWAa4FfBuYsZfOW8 diff --git a/pg-ddl/schema/public/version_strings.sql b/pg-ddl/schema/public/version_strings.sql index 567360f9..2e722d02 100644 --- a/pg-ddl/schema/public/version_strings.sql +++ b/pg-ddl/schema/public/version_strings.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fggl9waxUZwOeqTQLZwa1969tDX9OgOqkHQ58DpCFCBU5hgXvS8mDNEX5DmDxaC +\restrict 3MnskNDVyds1WZoBJvrC54fTDM0gH5uoWFpeJ01AbUg05iCsGPuda12bthw2HaW -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -106,5 +106,5 @@ CREATE INDEX version_strings_xml_path_trgm_idx ON public.version_strings USING g -- PostgreSQL database dump complete -- -\unrestrict fggl9waxUZwOeqTQLZwa1969tDX9OgOqkHQ58DpCFCBU5hgXvS8mDNEX5DmDxaC +\unrestrict 3MnskNDVyds1WZoBJvrC54fTDM0gH5uoWFpeJ01AbUg05iCsGPuda12bthw2HaW From 72297e1eb832458ef2b3bd55e766c33ab75b4c75 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Thu, 12 Feb 2026 09:26:26 +0800 Subject: [PATCH 69/81] Dump recent MV changes --- pg-ddl/schema/adtech/sdk_strings__matview.sql | 79 ++++++++++++ .../category_tag_type_stats__matview.sql | 114 ++++++++++++++++++ 2 files changed, 193 insertions(+) create mode 100644 pg-ddl/schema/adtech/sdk_strings__matview.sql create mode 100644 pg-ddl/schema/frontend/category_tag_type_stats__matview.sql diff --git a/pg-ddl/schema/adtech/sdk_strings__matview.sql b/pg-ddl/schema/adtech/sdk_strings__matview.sql new file mode 100644 index 00000000..4ca176bd --- /dev/null +++ b/pg-ddl/schema/adtech/sdk_strings__matview.sql @@ -0,0 +1,79 @@ +-- +-- PostgreSQL database dump +-- + +\restrict E4YTdmXdAi6WIhXV5wk4aZBLmN0J0KWamsnFzamgHSE1QNhojLr1FkitnrnGrGE + +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: sdk_strings; Type: MATERIALIZED VIEW; Schema: adtech; Owner: postgres +-- + +CREATE MATERIALIZED VIEW adtech.sdk_strings AS + WITH matched_value_patterns AS ( + SELECT DISTINCT lower(vd.value_name) AS value_name_lower, + sp.sdk_id + FROM (public.version_strings vd + JOIN adtech.sdk_packages sp ON ((lower(vd.value_name) ~~ (lower((sp.package_pattern)::text) || '%'::text)))) + ), matched_path_patterns AS ( + SELECT DISTINCT lower(vd.xml_path) AS xml_path_lower, + ptm.sdk_id + FROM (public.version_strings vd + JOIN adtech.sdk_paths ptm ON ((lower(vd.xml_path) = lower((ptm.path_pattern)::text)))) + ), mediation_strings AS ( + SELECT vs.id AS version_string_id, + cmp.sdk_id, + lower(vs.value_name) AS value_name_lower + FROM (public.version_strings vs + JOIN adtech.sdk_mediation_patterns cmp ON ((lower(vs.value_name) ~~ (lower(concat((cmp.mediation_pattern)::text, '.')) || '%'::text)))) + ) + SELECT vs.id AS version_string_id, + mp.sdk_id + FROM (matched_value_patterns mp + JOIN public.version_strings vs ON ((lower(vs.value_name) = mp.value_name_lower))) +UNION + SELECT vs.id AS version_string_id, + mp.sdk_id + FROM (matched_path_patterns mp + JOIN public.version_strings vs ON ((lower(vs.xml_path) = mp.xml_path_lower))) +UNION + SELECT vs.id AS version_string_id, + ms.sdk_id + FROM (mediation_strings ms + JOIN public.version_strings vs ON ((lower(vs.value_name) = ms.value_name_lower))) + WITH NO DATA; + + +ALTER MATERIALIZED VIEW adtech.sdk_strings OWNER TO postgres; + +-- +-- Name: sdk_strings_version_string_id_sdk_id_idx; Type: INDEX; Schema: adtech; Owner: postgres +-- + +CREATE UNIQUE INDEX sdk_strings_version_string_id_sdk_id_idx ON adtech.sdk_strings USING btree (version_string_id, sdk_id); + + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict E4YTdmXdAi6WIhXV5wk4aZBLmN0J0KWamsnFzamgHSE1QNhojLr1FkitnrnGrGE + diff --git a/pg-ddl/schema/frontend/category_tag_type_stats__matview.sql b/pg-ddl/schema/frontend/category_tag_type_stats__matview.sql new file mode 100644 index 00000000..e297d180 --- /dev/null +++ b/pg-ddl/schema/frontend/category_tag_type_stats__matview.sql @@ -0,0 +1,114 @@ +-- +-- PostgreSQL database dump +-- + +\restrict 8MJubzaSn3MyQiDnT2rVXeDoVQX5hdWxogr50FgYfv2XwrUKi2aFPJ3aKRT6iBC + +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: category_tag_type_stats; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres +-- + +CREATE MATERIALIZED VIEW frontend.category_tag_type_stats AS + WITH minimized_company_categories AS ( + SELECT company_categories.company_id, + min(company_categories.category_id) AS category_id + FROM adtech.company_categories + GROUP BY company_categories.company_id + ), api_and_app_ads AS ( + SELECT x.store, + x.app_category, + x.tag_source, + x.type_url_slug, + count(*) AS app_count, + sum(x.installs_sum_4w_est) AS installs_d30, + sum(x.installs_est) AS installs_total + FROM ( SELECT DISTINCT csac.store_app, + sa.store, + csac.app_category, + tag.tag_source, + CASE + WHEN (tag.tag_source ~~ 'app_ads%'::text) THEN 'ad-networks'::character varying + ELSE cats.url_slug + END AS type_url_slug, + sa.installs_sum_4w_est, + sa.installs_est + FROM ((((adtech.combined_store_apps_companies csac + LEFT JOIN frontend.store_apps_overview sa ON ((csac.store_app = sa.id))) + JOIN minimized_company_categories mcc ON ((csac.company_id = mcc.company_id))) + LEFT JOIN adtech.categories cats ON ((mcc.category_id = cats.id))) + CROSS JOIN LATERAL ( VALUES ('api_call'::text,csac.api_call), ('app_ads_direct'::text,csac.app_ads_direct), ('app_ads_reseller'::text,csac.app_ads_reseller)) tag(tag_source, present)) + WHERE ((tag.present IS TRUE) AND (sa.id IS NOT NULL))) x + GROUP BY x.store, x.app_category, x.tag_source, x.type_url_slug + ), store_app_sdks AS ( + SELECT DISTINCT sass.store_app, + sass.sdk_id + FROM adtech.store_app_sdk_strings sass + WHERE (sass.sdk_id IS NOT NULL) + ), sdk_and_mediation AS ( + SELECT x.store, + x.app_category, + 'sdk'::text AS tag_source, + x.type_url_slug, + count(*) AS app_count, + sum(x.installs_sum_4w_est) AS installs_d30, + sum(x.installs_est) AS installs_total + FROM ( SELECT DISTINCT sas.store_app, + sa.store, + sa.category AS app_category, + cats.url_slug AS type_url_slug, + sa.installs_sum_4w_est, + sa.installs_est + FROM (((store_app_sdks sas + LEFT JOIN frontend.store_apps_overview sa ON ((sas.store_app = sa.id))) + LEFT JOIN adtech.sdk_categories sc ON ((sas.sdk_id = sc.sdk_id))) + LEFT JOIN adtech.categories cats ON ((sc.category_id = cats.id))) + WHERE (sa.id IS NOT NULL)) x + GROUP BY x.store, x.app_category, x.type_url_slug + ) + SELECT api_and_app_ads.store, + api_and_app_ads.app_category, + api_and_app_ads.tag_source, + api_and_app_ads.type_url_slug, + api_and_app_ads.app_count, + api_and_app_ads.installs_d30, + api_and_app_ads.installs_total + FROM api_and_app_ads +UNION ALL + SELECT sdk_and_mediation.store, + sdk_and_mediation.app_category, + sdk_and_mediation.tag_source, + sdk_and_mediation.type_url_slug, + sdk_and_mediation.app_count, + sdk_and_mediation.installs_d30, + sdk_and_mediation.installs_total + FROM sdk_and_mediation + WITH NO DATA; + + +ALTER MATERIALIZED VIEW frontend.category_tag_type_stats OWNER TO postgres; + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict 8MJubzaSn3MyQiDnT2rVXeDoVQX5hdWxogr50FgYfv2XwrUKi2aFPJ3aKRT6iBC + From 4d1c4a45de4d09d3604058116ace270911206cf0 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Thu, 12 Feb 2026 14:46:37 +0800 Subject: [PATCH 70/81] Fix incorrect passing of args --- adscrawler/app_stores/scrape_stores.py | 12 ++++++------ adscrawler/dbcon/queries.py | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/adscrawler/app_stores/scrape_stores.py b/adscrawler/app_stores/scrape_stores.py index adc9f3e4..1936f8ec 100644 --- a/adscrawler/app_stores/scrape_stores.py +++ b/adscrawler/app_stores/scrape_stores.py @@ -286,12 +286,12 @@ def update_app_details( for idx, df_chunk in enumerate(chunks): future = executor.submit( process_scrape_apps_and_save, - df_chunk, - store, - use_ssh_tunnel, - process_icon, - total_rows, - thread_workers, + df_chunk=df_chunk, + store=store, + use_ssh_tunnel=use_ssh_tunnel, + process_icon=process_icon, + total_rows=total_rows, + thread_workers=thread_workers, ) future_to_idx[future] = idx # Only stagger the initial batch to avoid simultaneous API burst diff --git a/adscrawler/dbcon/queries.py b/adscrawler/dbcon/queries.py index 5957e8ce..75c5bc6a 100644 --- a/adscrawler/dbcon/queries.py +++ b/adscrawler/dbcon/queries.py @@ -127,6 +127,7 @@ def prepare_for_psycopg(df: pd.DataFrame) -> pd.DataFrame: df = df.copy() for col in df.select_dtypes(include=["datetimetz", "datetime64[ns]"]): # Convert to object dtype first so it can hold None + # Note: This may be breaking in pandas3.0 df[col] = ( df[col] .apply(lambda x: x.to_pydatetime() if pd.notna(x) else None) From a4c49f186e544e4f692524f48c76fe2b9cbe337b Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Thu, 12 Feb 2026 23:59:42 +0800 Subject: [PATCH 71/81] Use search queries top priority for keyword searches --- .../dbcon/sql/query_keywords_to_crawl.sql | 67 +++++++++++++------ 1 file changed, 48 insertions(+), 19 deletions(-) diff --git a/adscrawler/dbcon/sql/query_keywords_to_crawl.sql b/adscrawler/dbcon/sql/query_keywords_to_crawl.sql index 8bf8171a..408969f3 100644 --- a/adscrawler/dbcon/sql/query_keywords_to_crawl.sql +++ b/adscrawler/dbcon/sql/query_keywords_to_crawl.sql @@ -1,7 +1,5 @@ WITH rank_crawled_keywords AS ( - SELECT DISTINCT - akr.store, - akr.keyword_id + SELECT DISTINCT akr.keyword_id FROM frontend.app_keyword_ranks_daily AS akr WHERE @@ -13,28 +11,59 @@ log_crawled_keywords AS ( logging.keywords_crawled_at WHERE crawled_at > CURRENT_DATE - INTERVAL '7 days' +), +scheduled_keywords AS ( + SELECT + keyword_id, + keyword_text, + app_count, + total_apps + FROM + frontend.keyword_scores + WHERE + keyword_id NOT IN ( + SELECT rck.keyword_id + FROM + rank_crawled_keywords AS rck + ) + OR keyword_id NOT IN ( + SELECT lck.keyword + FROM + log_crawled_keywords AS lck + ) + ORDER BY + competitiveness_score + DESC +), +distinct_sq AS ( + SELECT DISTINCT search_term + FROM + agadmin.search_queries ) SELECT - store, - keyword_id, - keyword_text, - app_count, - total_apps, - competitiveness_score + k.id AS keyword_id, + k.keyword_text, + 'user' AS priority, + 0 AS app_count, + 0 AS total_apps FROM - frontend.keyword_scores + distinct_sq AS sq +LEFT JOIN keywords AS k + ON + sq.search_term = k.keyword_text WHERE - keyword_id NOT IN ( - SELECT rck.keyword_id - FROM - rank_crawled_keywords AS rck - ) - OR keyword_id NOT IN ( + k.id NOT IN ( SELECT lck.keyword FROM log_crawled_keywords AS lck ) -ORDER BY - competitiveness_score - DESC +UNION ALL +SELECT + keyword_id, + keyword_text, + 'scheduled' AS priority, + app_count, + total_apps +FROM + scheduled_keywords LIMIT :mylimit; From 35545e1261cff51892579bc8a5ba263e1171c78e Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Fri, 13 Feb 2026 00:04:46 +0800 Subject: [PATCH 72/81] Use search queries top priority for keyword searches --- .../dbcon/sql/query_keywords_to_crawl.sql | 44 ++++++++++--------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/adscrawler/dbcon/sql/query_keywords_to_crawl.sql b/adscrawler/dbcon/sql/query_keywords_to_crawl.sql index 408969f3..74335f99 100644 --- a/adscrawler/dbcon/sql/query_keywords_to_crawl.sql +++ b/adscrawler/dbcon/sql/query_keywords_to_crawl.sql @@ -14,25 +14,29 @@ log_crawled_keywords AS ( ), scheduled_keywords AS ( SELECT - keyword_id, - keyword_text, - app_count, - total_apps + ks.keyword_id, + ks.keyword_text, + ks.app_count, + ks.total_apps FROM - frontend.keyword_scores + frontend.keyword_scores AS ks WHERE - keyword_id NOT IN ( - SELECT rck.keyword_id - FROM - rank_crawled_keywords AS rck - ) - OR keyword_id NOT IN ( - SELECT lck.keyword - FROM - log_crawled_keywords AS lck + ks.keyword_id IN (SELECT kb.keyword_id FROM keywords_base AS kb) + AND + ( + ks.keyword_id NOT IN ( + SELECT rck.keyword_id + FROM + rank_crawled_keywords AS rck + ) + OR ks.keyword_id NOT IN ( + SELECT lck.keyword + FROM + log_crawled_keywords AS lck + ) ) ORDER BY - competitiveness_score + ks.competitiveness_score DESC ), distinct_sq AS ( @@ -59,11 +63,11 @@ WHERE ) UNION ALL SELECT - keyword_id, - keyword_text, + sk.keyword_id, + sk.keyword_text, 'scheduled' AS priority, - app_count, - total_apps + sk.app_count, + sk.total_apps FROM - scheduled_keywords + scheduled_keywords AS sk LIMIT :mylimit; From 9a8641fbe3eb1d1ef64b15e5dcb289e116591dc2 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Fri, 13 Feb 2026 16:18:28 +0800 Subject: [PATCH 73/81] Schema checkin --- .../dbcon/sql/query_apps_to_download.sql | 2 +- adscrawler/tools/example_contab.txt | 1 - pg-ddl/schema/adtech/api_call_urls.sql | 4 +- pg-ddl/schema/adtech/categories.sql | 4 +- ..._store_apps_companies_2025_h1__matview.sql | 4 +- ..._store_apps_companies_2025_h2__matview.sql | 4 +- ...combined_store_apps_companies__matview.sql | 4 +- ...d_store_apps_parent_companies__matview.sql | 4 +- pg-ddl/schema/adtech/companies.sql | 4 +- .../adtech/company_categories__matview.sql | 4 +- pg-ddl/schema/adtech/company_developers.sql | 4 +- .../schema/adtech/company_domain_mapping.sql | 4 +- .../adtech/company_mediation_adapters.sql | 4 +- .../company_share_change_2025__matview.sql | 4 +- .../company_shares_2025_common__matview.sql | 4 +- pg-ddl/schema/adtech/sdk_categories.sql | 4 +- .../schema/adtech/sdk_mediation_patterns.sql | 4 +- pg-ddl/schema/adtech/sdk_packages.sql | 4 +- pg-ddl/schema/adtech/sdk_paths.sql | 4 +- pg-ddl/schema/adtech/sdk_strings__matview.sql | 4 +- pg-ddl/schema/adtech/sdks.sql | 4 +- ...store_app_sdk_strings_2025_h1__matview.sql | 4 +- ...store_app_sdk_strings_2025_h2__matview.sql | 4 +- .../adtech/store_app_sdk_strings__matview.sql | 4 +- pg-ddl/schema/adtech/url_redirect_chains.sql | 4 +- pg-ddl/schema/adtech/urls.sql | 4 +- .../adstxt_ad_domain_overview__matview.sql | 4 +- .../adstxt_entries_store_apps__matview.sql | 4 +- .../adstxt_publishers_overview__matview.sql | 4 +- .../advertiser_creative_rankings__matview.sql | 4 +- ...reative_rankings_recent_month__matview.sql | 4 +- .../advertiser_creatives__matview.sql | 4 +- .../frontend/api_call_countries__matview.sql | 4 +- .../app_keyword_rank_stats__matview.sql | 4 +- .../frontend/app_keyword_ranks_daily.sql | 4 +- .../frontend/apps_new_monthly__matview.sql | 4 +- .../frontend/apps_new_weekly__matview.sql | 4 +- .../frontend/apps_new_yearly__matview.sql | 4 +- .../frontend/category_tag_stats__matview.sql | 4 +- .../category_tag_type_stats__matview.sql | 4 +- .../companies_apps_overview__matview.sql | 17 +-- .../companies_category_stats__matview.sql | 4 +- .../companies_category_tag_stats__matview.sql | 4 +- ...anies_category_tag_type_stats__matview.sql | 4 +- .../companies_creative_rankings__matview.sql | 4 +- ...companies_open_source_percent__matview.sql | 4 +- ...mpanies_parent_category_stats__matview.sql | 4 +- ...ies_parent_category_tag_stats__matview.sql | 4 +- .../companies_sdks_overview__matview.sql | 4 +- .../company_domain_country__matview.sql | 4 +- .../company_domains_top_apps__matview.sql | 4 +- .../company_parent_top_apps__matview.sql | 4 +- .../frontend/company_top_apps__matview.sql | 4 +- .../frontend/keyword_scores__matview.sql | 4 +- .../latest_sdk_scanned_apps__matview.sql | 4 +- .../mediation_adapter_app_counts__matview.sql | 4 +- .../store_app_api_companies__matview.sql | 4 +- .../store_app_ranks_best_monthly__matview.sql | 4 +- .../schema/frontend/store_app_ranks_daily.sql | 4 +- .../store_app_ranks_latest__matview.sql | 4 +- .../frontend/store_app_ranks_weekly.sql | 4 +- .../frontend/store_apps_overview__matview.sql | 4 +- .../frontend/store_apps_z_scores__matview.sql | 129 ------------------ pg-ddl/schema/full_db_dump.sql | 79 +++++++---- pg-ddl/schema/logging/app_country_crawls.sql | 4 +- .../app_description_keywords_extracted.sql | 4 +- .../schema/logging/creative_scan_results.sql | 4 +- .../schema/logging/developers_crawled_at.sql | 4 +- pg-ddl/schema/logging/keywords_crawled_at.sql | 4 +- .../schema/logging/snapshot_pub_domains.sql | 4 +- pg-ddl/schema/logging/store_app_downloads.sql | 4 +- .../schema/logging/store_app_no_creatives.sql | 4 +- pg-ddl/schema/logging/store_app_sources.sql | 4 +- .../logging/store_app_waydroid_crawled_at.sql | 4 +- pg-ddl/schema/logging/store_apps_snapshot.sql | 4 +- .../logging/version_code_api_scan_results.sql | 4 +- .../public/ad_network_sdk_keys__matview.sql | 4 +- pg-ddl/schema/public/adstxt_crawl_results.sql | 4 +- pg-ddl/schema/public/api_calls.sql | 4 +- pg-ddl/schema/public/app_ads_entrys.sql | 4 +- pg-ddl/schema/public/app_ads_map.sql | 4 +- .../public/app_country_metrics_history.sql | 4 +- .../app_country_metrics_latest__matview.sql | 4 +- .../public/app_global_metrics_history.sql | 4 +- .../app_global_metrics_latest__matview.sql | 4 +- ...p_global_metrics_weekly_diffs__matview.sql | 4 +- .../schema/public/app_keywords_extracted.sql | 4 +- pg-ddl/schema/public/app_urls_map.sql | 4 +- .../public/category_mapping__matview.sql | 4 +- pg-ddl/schema/public/countries.sql | 4 +- pg-ddl/schema/public/crawl_results.sql | 4 +- .../public/crawl_scenario_country_config.sql | 4 +- pg-ddl/schema/public/crawl_scenarios.sql | 4 +- pg-ddl/schema/public/creative_assets.sql | 4 +- pg-ddl/schema/public/creative_records.sql | 4 +- .../public/developer_store_apps__matview.sql | 4 +- pg-ddl/schema/public/developers.sql | 4 +- pg-ddl/schema/public/domains.sql | 4 +- pg-ddl/schema/public/ip_geo_snapshots.sql | 4 +- pg-ddl/schema/public/keywords.sql | 4 +- pg-ddl/schema/public/keywords_base.sql | 4 +- pg-ddl/schema/public/languages.sql | 4 +- .../public/mv_app_categories__matview.sql | 4 +- .../public/pg_stat_statements__view.sql | 4 +- .../public/pg_stat_statements_info__view.sql | 4 +- pg-ddl/schema/public/platforms.sql | 4 +- .../public/store_app_z_scores__matview.sql | 4 +- .../public/store_app_z_scores_history.sql | 4 +- pg-ddl/schema/public/store_apps.sql | 4 +- .../schema/public/store_apps_descriptions.sql | 4 +- ...store_apps_in_latest_rankings__matview.sql | 6 +- pg-ddl/schema/public/store_categories.sql | 4 +- pg-ddl/schema/public/store_collections.sql | 4 +- pg-ddl/schema/public/stores.sql | 4 +- .../public/total_count_overview__matview.sql | 4 +- .../public/version_code_api_scan_results.sql | 4 +- .../public/version_code_sdk_scan_results.sql | 4 +- pg-ddl/schema/public/version_codes.sql | 4 +- pg-ddl/schema/public/version_details_map.sql | 4 +- pg-ddl/schema/public/version_manifests.sql | 4 +- pg-ddl/schema/public/version_strings.sql | 4 +- 121 files changed, 295 insertions(+), 399 deletions(-) delete mode 100644 pg-ddl/schema/frontend/store_apps_z_scores__matview.sql diff --git a/adscrawler/dbcon/sql/query_apps_to_download.sql b/adscrawler/dbcon/sql/query_apps_to_download.sql index f7708999..7d381044 100644 --- a/adscrawler/dbcon/sql/query_apps_to_download.sql +++ b/adscrawler/dbcon/sql/query_apps_to_download.sql @@ -60,7 +60,7 @@ growth_apps AS ( sa.id AS store_app, saz.store_id FROM - frontend.store_apps_z_scores AS saz + frontend.z_scores_top_apps AS saz LEFT JOIN store_apps AS sa ON saz.store_id = sa.store_id ), diff --git a/adscrawler/tools/example_contab.txt b/adscrawler/tools/example_contab.txt index b61cce75..31e8a074 100644 --- a/adscrawler/tools/example_contab.txt +++ b/adscrawler/tools/example_contab.txt @@ -45,7 +45,6 @@ # Zscores 16 2 * * * psql -d madrone -c "REFRESH MATERIALIZED VIEW store_app_z_scores" >> /var/log/postgresql/refresh_mv.log 2>&1 -24 2 * * * psql -d madrone -c "REFRESH MATERIALIZED VIEW CONCURRENTLY frontend.store_apps_z_scores" >> /var/log/postgresql/refresh_mv.log 2>&1 01 5 * * * psql -d madrone -c "REFRESH MATERIALIZED VIEW CONCURRENTLY frontend.adstxt_ad_domain_overview" >> /var/log/postgresql/refresh_mv.log 2>&1 31 5 * * * psql -d madrone -c "REFRESH MATERIALIZED VIEW CONCURRENTLY frontend.adstxt_publishers_overview" >> /var/log/postgresql/refresh_mv.log 2>&1 diff --git a/pg-ddl/schema/adtech/api_call_urls.sql b/pg-ddl/schema/adtech/api_call_urls.sql index 2918c074..37cebd8f 100644 --- a/pg-ddl/schema/adtech/api_call_urls.sql +++ b/pg-ddl/schema/adtech/api_call_urls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qLfJFer9aFoEwKRjbeQrvsQo8xvRWuxPGyfkTWzaygfgN4v1hveMPMKzMMzfmCi +\restrict 1tPBeXEf4ffIdDfdDufKAkfttGwg2U2OsZwJ5dtTHpfkVqSkS1CfmuqsiZgPL9C -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -118,5 +118,5 @@ ALTER TABLE ONLY adtech.api_call_urls -- PostgreSQL database dump complete -- -\unrestrict qLfJFer9aFoEwKRjbeQrvsQo8xvRWuxPGyfkTWzaygfgN4v1hveMPMKzMMzfmCi +\unrestrict 1tPBeXEf4ffIdDfdDufKAkfttGwg2U2OsZwJ5dtTHpfkVqSkS1CfmuqsiZgPL9C diff --git a/pg-ddl/schema/adtech/categories.sql b/pg-ddl/schema/adtech/categories.sql index 38c04d1a..df468598 100644 --- a/pg-ddl/schema/adtech/categories.sql +++ b/pg-ddl/schema/adtech/categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict V76Auu7Z1kiEHG1QvSr2jlRDdbYeMU4zHrQ3hnvSA260c1stvjXKhvRMfuA31g6 +\restrict nLxBi8Vbrn9RueuyAWsnxTQqrcZ6ZYhdhoeI38zvwpSwM7UoRHzMoAQJfEV8LDk -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -62,5 +62,5 @@ ALTER TABLE ONLY adtech.categories -- PostgreSQL database dump complete -- -\unrestrict V76Auu7Z1kiEHG1QvSr2jlRDdbYeMU4zHrQ3hnvSA260c1stvjXKhvRMfuA31g6 +\unrestrict nLxBi8Vbrn9RueuyAWsnxTQqrcZ6ZYhdhoeI38zvwpSwM7UoRHzMoAQJfEV8LDk diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql index f43c742e..88468c20 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h1__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fiTO2DTsb8nR8x0vfmXIUvfNWwSV5pAABO2TAthEm4rpt8f4vqSO1vVuwsCLpHH +\restrict UHBIiWOeqr2j04WCvHMbNb5u3NSgZjcwlNm5f53u24HAey40dt803uEyLJGc6zA -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -124,5 +124,5 @@ ALTER MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h1 OWNER TO po -- PostgreSQL database dump complete -- -\unrestrict fiTO2DTsb8nR8x0vfmXIUvfNWwSV5pAABO2TAthEm4rpt8f4vqSO1vVuwsCLpHH +\unrestrict UHBIiWOeqr2j04WCvHMbNb5u3NSgZjcwlNm5f53u24HAey40dt803uEyLJGc6zA diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql index b66ed8d2..bb2852a0 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies_2025_h2__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict hTYVTy2tZOPz6cvQT4oJeqKqZTzdEbvLcYmeYH9Wgurphbati35OvTRS4hVnCXj +\restrict dyxRVqQQ9CsqbLhVM3QXs1QpLhJHXpNtjG22yCPga7UeVhqaIwEONX9sqOIhFUq -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -124,5 +124,5 @@ ALTER MATERIALIZED VIEW adtech.combined_store_apps_companies_2025_h2 OWNER TO po -- PostgreSQL database dump complete -- -\unrestrict hTYVTy2tZOPz6cvQT4oJeqKqZTzdEbvLcYmeYH9Wgurphbati35OvTRS4hVnCXj +\unrestrict dyxRVqQQ9CsqbLhVM3QXs1QpLhJHXpNtjG22yCPga7UeVhqaIwEONX9sqOIhFUq diff --git a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql index a178fb17..6ca10853 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict lgba4mJG8ggwNvbUgpwAfq4u5XPKLo3zFXAuJXsGAAMcgi2CEAA0gqgjppHHC5r +\restrict cTQB8uupTzy0hzbw353JUOSj5k5HKiG2cxIf0H49RmYqSNmIIwLA7fLyCsrQcib -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -165,5 +165,5 @@ CREATE UNIQUE INDEX combined_store_app_companies_idx ON adtech.combined_store_ap -- PostgreSQL database dump complete -- -\unrestrict lgba4mJG8ggwNvbUgpwAfq4u5XPKLo3zFXAuJXsGAAMcgi2CEAA0gqgjppHHC5r +\unrestrict cTQB8uupTzy0hzbw353JUOSj5k5HKiG2cxIf0H49RmYqSNmIIwLA7fLyCsrQcib diff --git a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql index f0e16f19..0332024b 100644 --- a/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql +++ b/pg-ddl/schema/adtech/combined_store_apps_parent_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict JAgFj67VlwvQ6i8qGJayfQduSwxbAWpug4mIovy78BelfGGE3MSm4GS29zr1smo +\restrict eA1lgEQPmLV8X6iVzw0xJf3Qo6XdM42KVvslsnMJ390fw0LTDRhnT3tzcWrQrEZ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -59,5 +59,5 @@ CREATE UNIQUE INDEX idx_combined_store_apps_parent_companies_idx ON adtech.combi -- PostgreSQL database dump complete -- -\unrestrict JAgFj67VlwvQ6i8qGJayfQduSwxbAWpug4mIovy78BelfGGE3MSm4GS29zr1smo +\unrestrict eA1lgEQPmLV8X6iVzw0xJf3Qo6XdM42KVvslsnMJ390fw0LTDRhnT3tzcWrQrEZ diff --git a/pg-ddl/schema/adtech/companies.sql b/pg-ddl/schema/adtech/companies.sql index 856f2aaa..698148ed 100644 --- a/pg-ddl/schema/adtech/companies.sql +++ b/pg-ddl/schema/adtech/companies.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict boH7dCtn8IZmUFLgZsJRduaUtU83Bwogkg9vMZH44n1rD5iwzBMPRZd2N04k2qe +\restrict 7xmkOd90iwLy0XW6UGKgevOcgg9TnCV4axmxAXW12vtdHUUXDIFoRUgXtGJVzKN -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -98,5 +98,5 @@ ALTER TABLE ONLY adtech.companies -- PostgreSQL database dump complete -- -\unrestrict boH7dCtn8IZmUFLgZsJRduaUtU83Bwogkg9vMZH44n1rD5iwzBMPRZd2N04k2qe +\unrestrict 7xmkOd90iwLy0XW6UGKgevOcgg9TnCV4axmxAXW12vtdHUUXDIFoRUgXtGJVzKN diff --git a/pg-ddl/schema/adtech/company_categories__matview.sql b/pg-ddl/schema/adtech/company_categories__matview.sql index ddbb8e65..b951547b 100644 --- a/pg-ddl/schema/adtech/company_categories__matview.sql +++ b/pg-ddl/schema/adtech/company_categories__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict rsGSEniqgIzDNzMTBL4OGVCrFU9Eh1DlQi2EdDq0xoRjmewOdISYaZfUJKqFaha +\restrict 9S3XVAmQQ1EPxk5ftfDi7mSfOnddfqocDFdaux3GN2P3yaFAOebUhu03RnP5bvs -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -42,5 +42,5 @@ ALTER MATERIALIZED VIEW adtech.company_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict rsGSEniqgIzDNzMTBL4OGVCrFU9Eh1DlQi2EdDq0xoRjmewOdISYaZfUJKqFaha +\unrestrict 9S3XVAmQQ1EPxk5ftfDi7mSfOnddfqocDFdaux3GN2P3yaFAOebUhu03RnP5bvs diff --git a/pg-ddl/schema/adtech/company_developers.sql b/pg-ddl/schema/adtech/company_developers.sql index 3b33caca..6a463652 100644 --- a/pg-ddl/schema/adtech/company_developers.sql +++ b/pg-ddl/schema/adtech/company_developers.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qlVlFkGI5LZkpNdMPvEQyQukyWR7886ouNwQtwELfujGlrXkKOa3omCkWVjYr8c +\restrict QuEOenl189YW7RaZkxbzkZhLr4gc5jkjSehYwbV3yk5k3ZqJfcXAxBIrp6Lj6Yn -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.company_developers -- PostgreSQL database dump complete -- -\unrestrict qlVlFkGI5LZkpNdMPvEQyQukyWR7886ouNwQtwELfujGlrXkKOa3omCkWVjYr8c +\unrestrict QuEOenl189YW7RaZkxbzkZhLr4gc5jkjSehYwbV3yk5k3ZqJfcXAxBIrp6Lj6Yn diff --git a/pg-ddl/schema/adtech/company_domain_mapping.sql b/pg-ddl/schema/adtech/company_domain_mapping.sql index dd82f7b7..5ae41d6e 100644 --- a/pg-ddl/schema/adtech/company_domain_mapping.sql +++ b/pg-ddl/schema/adtech/company_domain_mapping.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict GzFSdJUeNA0vdPKi8YHmztSj5SzeLPubZmdFmqu3DO9ma3rpzgdHyR9hseit9z6 +\restrict 46mKhqmhnUys8q9NRXzwTqsTG0UzK0BuyRQ7Tm30tz30dXXM4zSjLcoKm26o8VW -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.company_domain_mapping -- PostgreSQL database dump complete -- -\unrestrict GzFSdJUeNA0vdPKi8YHmztSj5SzeLPubZmdFmqu3DO9ma3rpzgdHyR9hseit9z6 +\unrestrict 46mKhqmhnUys8q9NRXzwTqsTG0UzK0BuyRQ7Tm30tz30dXXM4zSjLcoKm26o8VW diff --git a/pg-ddl/schema/adtech/company_mediation_adapters.sql b/pg-ddl/schema/adtech/company_mediation_adapters.sql index 4f61d16c..0547ad32 100644 --- a/pg-ddl/schema/adtech/company_mediation_adapters.sql +++ b/pg-ddl/schema/adtech/company_mediation_adapters.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict hclZLeMAJEHMdggaGM6eAeLXcIaKvGHDQqP8dbxbh8g6vQyaLHga8IR1hCQ9js4 +\restrict H5B7Ak5UsxQUn5WVFu0wg6xuASM7weaxNfI8Uon5YHnjs7leUagJYBIUYfH8X5f -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.company_mediation_adapters -- PostgreSQL database dump complete -- -\unrestrict hclZLeMAJEHMdggaGM6eAeLXcIaKvGHDQqP8dbxbh8g6vQyaLHga8IR1hCQ9js4 +\unrestrict H5B7Ak5UsxQUn5WVFu0wg6xuASM7weaxNfI8Uon5YHnjs7leUagJYBIUYfH8X5f diff --git a/pg-ddl/schema/adtech/company_share_change_2025__matview.sql b/pg-ddl/schema/adtech/company_share_change_2025__matview.sql index 08275632..83bca648 100644 --- a/pg-ddl/schema/adtech/company_share_change_2025__matview.sql +++ b/pg-ddl/schema/adtech/company_share_change_2025__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Hi17klqQ6f2M2E467XT5K4pImivG0MVmtPEOSUtnTvrhLmhV9gw4gBFzjDUYfEl +\restrict X0fRl2xTbouXhIX9foQlqLBCB9DheGhUhHD7dZF4NH5XMC8UyaAH563Hc53EPnn -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -110,5 +110,5 @@ ALTER MATERIALIZED VIEW adtech.company_share_change_2025 OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict Hi17klqQ6f2M2E467XT5K4pImivG0MVmtPEOSUtnTvrhLmhV9gw4gBFzjDUYfEl +\unrestrict X0fRl2xTbouXhIX9foQlqLBCB9DheGhUhHD7dZF4NH5XMC8UyaAH563Hc53EPnn diff --git a/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql b/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql index 440d25ae..53a2b6f0 100644 --- a/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql +++ b/pg-ddl/schema/adtech/company_shares_2025_common__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 9Kvw2hCjwhr1qMveafR8yWv6DmORZledQC3PAYe02ijDyVpaGIqbTkbNV3mDBqb +\restrict 36rDwaOswJ66Zmojq1UGmtAOHAeRfVVTthUAvhW73npNCvr965iXXBiMBRpcPjU -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW adtech.company_shares_2025_common OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 9Kvw2hCjwhr1qMveafR8yWv6DmORZledQC3PAYe02ijDyVpaGIqbTkbNV3mDBqb +\unrestrict 36rDwaOswJ66Zmojq1UGmtAOHAeRfVVTthUAvhW73npNCvr965iXXBiMBRpcPjU diff --git a/pg-ddl/schema/adtech/sdk_categories.sql b/pg-ddl/schema/adtech/sdk_categories.sql index 7747986d..2cb9a3ef 100644 --- a/pg-ddl/schema/adtech/sdk_categories.sql +++ b/pg-ddl/schema/adtech/sdk_categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict bw6tZX2Eg9497YQpaxF7byAcdVq4sFuOP6eJgv61OGh7ReakJRoEKZlB768p1Zr +\restrict xhU1gNJajxnXUp0JTTkjEhHDvuztDQxKFhcPeH5e7WnWP6IPKCr2zpgedHUDYLO -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -63,5 +63,5 @@ ALTER TABLE ONLY adtech.sdk_categories -- PostgreSQL database dump complete -- -\unrestrict bw6tZX2Eg9497YQpaxF7byAcdVq4sFuOP6eJgv61OGh7ReakJRoEKZlB768p1Zr +\unrestrict xhU1gNJajxnXUp0JTTkjEhHDvuztDQxKFhcPeH5e7WnWP6IPKCr2zpgedHUDYLO diff --git a/pg-ddl/schema/adtech/sdk_mediation_patterns.sql b/pg-ddl/schema/adtech/sdk_mediation_patterns.sql index 59d86e64..873e8faa 100644 --- a/pg-ddl/schema/adtech/sdk_mediation_patterns.sql +++ b/pg-ddl/schema/adtech/sdk_mediation_patterns.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict wXjc6MNvBklHEGN8oCnmgnfTsd5bzgL30XO95uityi4nrXvpviGaXqQSIh5Atft +\restrict fm7YAh5TcWp40gsOQqhFfzTievV6PqCfmircIx1YPOenaZM3Jh2RA1BiyF5bPU8 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY adtech.sdk_mediation_patterns -- PostgreSQL database dump complete -- -\unrestrict wXjc6MNvBklHEGN8oCnmgnfTsd5bzgL30XO95uityi4nrXvpviGaXqQSIh5Atft +\unrestrict fm7YAh5TcWp40gsOQqhFfzTievV6PqCfmircIx1YPOenaZM3Jh2RA1BiyF5bPU8 diff --git a/pg-ddl/schema/adtech/sdk_packages.sql b/pg-ddl/schema/adtech/sdk_packages.sql index 378e4a25..ccc1c600 100644 --- a/pg-ddl/schema/adtech/sdk_packages.sql +++ b/pg-ddl/schema/adtech/sdk_packages.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 4J05zVaKnlBmlwH7SsWx1vDxK7eNgFa5GQwShjcS3a8MuqaaOYKvVyqDqYbvPSW +\restrict Yz6EL5HG3w79aM83op8RuJfyRgcJs4UovzGt0NGdcasgZ0TJacVJxAtFq8hrt0N -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -99,5 +99,5 @@ ALTER TABLE ONLY adtech.sdk_packages -- PostgreSQL database dump complete -- -\unrestrict 4J05zVaKnlBmlwH7SsWx1vDxK7eNgFa5GQwShjcS3a8MuqaaOYKvVyqDqYbvPSW +\unrestrict Yz6EL5HG3w79aM83op8RuJfyRgcJs4UovzGt0NGdcasgZ0TJacVJxAtFq8hrt0N diff --git a/pg-ddl/schema/adtech/sdk_paths.sql b/pg-ddl/schema/adtech/sdk_paths.sql index a8136122..9865a13c 100644 --- a/pg-ddl/schema/adtech/sdk_paths.sql +++ b/pg-ddl/schema/adtech/sdk_paths.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict kcr4PEbthDKTc1SjTga9ysaeyUbd76J74Pod45fs2nDjnxZvX59qySHLgxfDA6J +\restrict iA4rKoYtKOpwYT3xNONcbVw0DpMvP9rpNu4bjQMyhcbNurUdFsy8OFnPKWf0CFi -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdk_paths -- PostgreSQL database dump complete -- -\unrestrict kcr4PEbthDKTc1SjTga9ysaeyUbd76J74Pod45fs2nDjnxZvX59qySHLgxfDA6J +\unrestrict iA4rKoYtKOpwYT3xNONcbVw0DpMvP9rpNu4bjQMyhcbNurUdFsy8OFnPKWf0CFi diff --git a/pg-ddl/schema/adtech/sdk_strings__matview.sql b/pg-ddl/schema/adtech/sdk_strings__matview.sql index 4ca176bd..bf5a7e8f 100644 --- a/pg-ddl/schema/adtech/sdk_strings__matview.sql +++ b/pg-ddl/schema/adtech/sdk_strings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict E4YTdmXdAi6WIhXV5wk4aZBLmN0J0KWamsnFzamgHSE1QNhojLr1FkitnrnGrGE +\restrict iS1rsl6XCay9C2wCIrWnuWUet947LYjpGEKLvu7BZReSHLVrJm65tb9dVbdxBlc -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -75,5 +75,5 @@ CREATE UNIQUE INDEX sdk_strings_version_string_id_sdk_id_idx ON adtech.sdk_strin -- PostgreSQL database dump complete -- -\unrestrict E4YTdmXdAi6WIhXV5wk4aZBLmN0J0KWamsnFzamgHSE1QNhojLr1FkitnrnGrGE +\unrestrict iS1rsl6XCay9C2wCIrWnuWUet947LYjpGEKLvu7BZReSHLVrJm65tb9dVbdxBlc diff --git a/pg-ddl/schema/adtech/sdks.sql b/pg-ddl/schema/adtech/sdks.sql index 5adcbcc5..79e732f8 100644 --- a/pg-ddl/schema/adtech/sdks.sql +++ b/pg-ddl/schema/adtech/sdks.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict EmYgpHg1MThytEswQHaICa6Sq2YVmxDcf8MpceMFzIjnMY5pa0Deq493G6ezuUH +\restrict iJB3OkhmCNQqm23cQ8MdmXzFRJYTh9Zfqf13VNXicI5A3KqnNEyNwS8Y3XF25NE -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -92,5 +92,5 @@ ALTER TABLE ONLY adtech.sdks -- PostgreSQL database dump complete -- -\unrestrict EmYgpHg1MThytEswQHaICa6Sq2YVmxDcf8MpceMFzIjnMY5pa0Deq493G6ezuUH +\unrestrict iJB3OkhmCNQqm23cQ8MdmXzFRJYTh9Zfqf13VNXicI5A3KqnNEyNwS8Y3XF25NE diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql index c454fe84..540b9510 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h1__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict CTPRxGosjM7Z0B1rzUsodUqHiXAumeQaWykWJq9FmNgbxC3EcvhQLHEVcNjS4AS +\restrict SwTY8iw4a11mvNlr40ibgnWCU2IhKJnYHKN8NJM5YkNUBWJaLj2LXAR18UxRF6Y -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h1 OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict CTPRxGosjM7Z0B1rzUsodUqHiXAumeQaWykWJq9FmNgbxC3EcvhQLHEVcNjS4AS +\unrestrict SwTY8iw4a11mvNlr40ibgnWCU2IhKJnYHKN8NJM5YkNUBWJaLj2LXAR18UxRF6Y diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql index b1181ef7..8dc1d203 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings_2025_h2__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict CXTOczIsCvuQBqcTLVFxKn3Tgbi5kjWmg6m1lrIYBe34zbnHngj8xjweKj7hQDk +\restrict kn7yFKhPxeb65V4eDNto5dk2e98OcAMzfQlg5Egqrfy9SjgbHGvx1lJkrd3quag -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER MATERIALIZED VIEW adtech.store_app_sdk_strings_2025_h2 OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict CXTOczIsCvuQBqcTLVFxKn3Tgbi5kjWmg6m1lrIYBe34zbnHngj8xjweKj7hQDk +\unrestrict kn7yFKhPxeb65V4eDNto5dk2e98OcAMzfQlg5Egqrfy9SjgbHGvx1lJkrd3quag diff --git a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql index bdaec98d..f142e46b 100644 --- a/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql +++ b/pg-ddl/schema/adtech/store_app_sdk_strings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qQcGFLvVdXmGQJ2fUq01KhctXca6VThG886ZANLjRdsWNLh6VDqaaYdjSGc3yxp +\restrict HWhDPwvJ6b1G6zwdbnT40zitayXYF1H19bGLfzm84m3nc79FEg1Sy96eJHgRWhB -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -61,5 +61,5 @@ CREATE UNIQUE INDEX store_app_sdk_strings_idx ON adtech.store_app_sdk_strings US -- PostgreSQL database dump complete -- -\unrestrict qQcGFLvVdXmGQJ2fUq01KhctXca6VThG886ZANLjRdsWNLh6VDqaaYdjSGc3yxp +\unrestrict HWhDPwvJ6b1G6zwdbnT40zitayXYF1H19bGLfzm84m3nc79FEg1Sy96eJHgRWhB diff --git a/pg-ddl/schema/adtech/url_redirect_chains.sql b/pg-ddl/schema/adtech/url_redirect_chains.sql index 95d19352..c607789d 100644 --- a/pg-ddl/schema/adtech/url_redirect_chains.sql +++ b/pg-ddl/schema/adtech/url_redirect_chains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ccp1xrdddSs2r4eIkWTTgjjzA12nBIwZ107fcPtiL3fAv7qs81Lr6TzSTljamIj +\restrict ABc5s5Gg85to0fbEcESJ9PSfuKF2B8H3UJy79eGaoCVGVYnHt6qRa755EhcVew2 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -122,5 +122,5 @@ ALTER TABLE ONLY adtech.url_redirect_chains -- PostgreSQL database dump complete -- -\unrestrict ccp1xrdddSs2r4eIkWTTgjjzA12nBIwZ107fcPtiL3fAv7qs81Lr6TzSTljamIj +\unrestrict ABc5s5Gg85to0fbEcESJ9PSfuKF2B8H3UJy79eGaoCVGVYnHt6qRa755EhcVew2 diff --git a/pg-ddl/schema/adtech/urls.sql b/pg-ddl/schema/adtech/urls.sql index 61d31710..26e90391 100644 --- a/pg-ddl/schema/adtech/urls.sql +++ b/pg-ddl/schema/adtech/urls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict KQIMIG6VhsbGBntyGMimRUmI5W8ZJZTeNGp4xSZ88g7fF8e9i0e2wSJMebljxAm +\restrict C18RinZKBEhKVEN9aJp3qxqo2zZoq73ruP940SH047N0ko3qgwzi38b191zq8JL -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -111,5 +111,5 @@ ALTER TABLE ONLY adtech.urls -- PostgreSQL database dump complete -- -\unrestrict KQIMIG6VhsbGBntyGMimRUmI5W8ZJZTeNGp4xSZ88g7fF8e9i0e2wSJMebljxAm +\unrestrict C18RinZKBEhKVEN9aJp3qxqo2zZoq73ruP940SH047N0ko3qgwzi38b191zq8JL diff --git a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql index b2d26fa8..58945578 100644 --- a/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_ad_domain_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict aLJLMUC8x6lCcGLKBL53uGqZo8ZSeTbnKUhVePq7bmvdu1p4QMM9eKpJwdjzo4C +\restrict ci4IJBbZOQh22Fj6ydihw2i0K5Bwa9Hi0FsAFUT3pXAfpbI2gxL4wcDRdJcfNn0 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX adstxt_ad_domain_overview_unique_idx ON frontend.adstxt_ad_d -- PostgreSQL database dump complete -- -\unrestrict aLJLMUC8x6lCcGLKBL53uGqZo8ZSeTbnKUhVePq7bmvdu1p4QMM9eKpJwdjzo4C +\unrestrict ci4IJBbZOQh22Fj6ydihw2i0K5Bwa9Hi0FsAFUT3pXAfpbI2gxL4wcDRdJcfNn0 diff --git a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql index e17196ad..8a7f32e7 100644 --- a/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_entries_store_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 7aTz8K5be4pikQbTFEMfBzaebAOYMwWMPr6Ve51gtK9DOf50jg1DZFOP5zKRfGW +\restrict chSYvFNcCru1bAcqWh470eToN81kboSyLQSh4BhB1YKCc4SHKhxqT0fzZFgrfJS -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -81,5 +81,5 @@ CREATE UNIQUE INDEX adstxt_entries_store_apps_unique_idx ON frontend.adstxt_entr -- PostgreSQL database dump complete -- -\unrestrict 7aTz8K5be4pikQbTFEMfBzaebAOYMwWMPr6Ve51gtK9DOf50jg1DZFOP5zKRfGW +\unrestrict chSYvFNcCru1bAcqWh470eToN81kboSyLQSh4BhB1YKCc4SHKhxqT0fzZFgrfJS diff --git a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql index 7932c2a5..520289c9 100644 --- a/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql +++ b/pg-ddl/schema/frontend/adstxt_publishers_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict yopxddEN1qx2bNDul8mNy7czDh4LkEBWTtroFQeJnOBZevpyyFgr3XLEAg0Gekr +\restrict BE6pIiWPPnjXcQwomytG5bBpoXz34NF6HSfNJZlSYK0MDXRO82bZtX19tlVymDc -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -74,5 +74,5 @@ CREATE UNIQUE INDEX adstxt_publishers_overview_ad_domain_unique_idx ON frontend. -- PostgreSQL database dump complete -- -\unrestrict yopxddEN1qx2bNDul8mNy7czDh4LkEBWTtroFQeJnOBZevpyyFgr3XLEAg0Gekr +\unrestrict BE6pIiWPPnjXcQwomytG5bBpoXz34NF6HSfNJZlSYK0MDXRO82bZtX19tlVymDc diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql index e94546b4..4ce52a00 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict MVKVuugOt9NCPdFXhhIYB433VKeYRmo7zlMhgV74qFQHeckPBEHXQ72iJOzwuQc +\restrict LOdxF0TTVceB8Wf5I8qazqs37h7RakaVsxkHDkRIex33VVqQl9KOQApsycE6Yyc -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -107,5 +107,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict MVKVuugOt9NCPdFXhhIYB433VKeYRmo7zlMhgV74qFQHeckPBEHXQ72iJOzwuQc +\unrestrict LOdxF0TTVceB8Wf5I8qazqs37h7RakaVsxkHDkRIex33VVqQl9KOQApsycE6Yyc diff --git a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql index 2758412b..783d6266 100644 --- a/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creative_rankings_recent_month__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict F4vvXku52nyi0d6mBUhP0QbYWqbE8XTgdEaD93phvbvgEUofLY76Ia5bnoiTipg +\restrict cUwQj5uttwo6ClQebjpY2CdxPuhMwGDptStOK6WjhNnPAkA31zUaLvCpjYa9qLP -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -114,5 +114,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creative_rankings_recent_month OWNER -- PostgreSQL database dump complete -- -\unrestrict F4vvXku52nyi0d6mBUhP0QbYWqbE8XTgdEaD93phvbvgEUofLY76Ia5bnoiTipg +\unrestrict cUwQj5uttwo6ClQebjpY2CdxPuhMwGDptStOK6WjhNnPAkA31zUaLvCpjYa9qLP diff --git a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql index dcf5a85d..70244918 100644 --- a/pg-ddl/schema/frontend/advertiser_creatives__matview.sql +++ b/pg-ddl/schema/frontend/advertiser_creatives__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict MObNBbhhpvFx8TnPpN1LerKRXd0W1po0rLalHTAlIg4vKqk7NFYmdEvZoPIe5DX +\restrict aPU1W9ZeRLUpBbqpoqnS0UoMcxysH1unH9sOF2SIKTHXBQUI5OcWkKnF0asFZ5p -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW frontend.advertiser_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict MObNBbhhpvFx8TnPpN1LerKRXd0W1po0rLalHTAlIg4vKqk7NFYmdEvZoPIe5DX +\unrestrict aPU1W9ZeRLUpBbqpoqnS0UoMcxysH1unH9sOF2SIKTHXBQUI5OcWkKnF0asFZ5p diff --git a/pg-ddl/schema/frontend/api_call_countries__matview.sql b/pg-ddl/schema/frontend/api_call_countries__matview.sql index b9e0650a..a11e308b 100644 --- a/pg-ddl/schema/frontend/api_call_countries__matview.sql +++ b/pg-ddl/schema/frontend/api_call_countries__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict IqWvBB9C0jmT7iH0Zt7YRV1NnBb8hgxDIvfMHNZnGPV2zz8lZaLYkGz2UcZQ8nk +\restrict GDRs3Py58MI8rnet9oKvef3T2SUlQbqQGwOXxQa6N3bt1DiOmexFfgBG3A0Hsc2 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -87,5 +87,5 @@ CREATE UNIQUE INDEX api_call_countries_unique ON frontend.api_call_countries USI -- PostgreSQL database dump complete -- -\unrestrict IqWvBB9C0jmT7iH0Zt7YRV1NnBb8hgxDIvfMHNZnGPV2zz8lZaLYkGz2UcZQ8nk +\unrestrict GDRs3Py58MI8rnet9oKvef3T2SUlQbqQGwOXxQa6N3bt1DiOmexFfgBG3A0Hsc2 diff --git a/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql index 925229b9..aa64592e 100644 --- a/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql +++ b/pg-ddl/schema/frontend/app_keyword_rank_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict mQkiW29NTruEqA9NxaxOsWGaGNhYL4Hyn6tZylWPcEl8dH2tHZGVJZFIm5w4y0a +\restrict P6gz6Q3tRD2X6biy9ZDcn3vnG6hYGp6vsE9dWdYS5oHDEprU0HWjRyOSh42x7vY -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -72,5 +72,5 @@ ALTER MATERIALIZED VIEW frontend.app_keyword_rank_stats OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict mQkiW29NTruEqA9NxaxOsWGaGNhYL4Hyn6tZylWPcEl8dH2tHZGVJZFIm5w4y0a +\unrestrict P6gz6Q3tRD2X6biy9ZDcn3vnG6hYGp6vsE9dWdYS5oHDEprU0HWjRyOSh42x7vY diff --git a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql index f1b3dab2..7555b1e2 100644 --- a/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql +++ b/pg-ddl/schema/frontend/app_keyword_ranks_daily.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 3LW96LixBuplJkh1ogp9ccflri7SohlBARojWa1DccB0Xe9yC9Cs8zPXSQJMc8C +\restrict rIqzHT9qLe9TFzPXbIEOzHZ5gxoyjW43xxF2N90s3HVEDXiPdmjEIcLUc7AJDIj -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -104,5 +104,5 @@ ALTER TABLE ONLY frontend.app_keyword_ranks_daily -- PostgreSQL database dump complete -- -\unrestrict 3LW96LixBuplJkh1ogp9ccflri7SohlBARojWa1DccB0Xe9yC9Cs8zPXSQJMc8C +\unrestrict rIqzHT9qLe9TFzPXbIEOzHZ5gxoyjW43xxF2N90s3HVEDXiPdmjEIcLUc7AJDIj diff --git a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql index 2dece973..8ab91015 100644 --- a/pg-ddl/schema/frontend/apps_new_monthly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_monthly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict pWyl5GCUxsScCEDXg4aEaXn7rBBTPDCAq5zr0yPsWqNWwghZ3pCIv1c1HyHkOc8 +\restrict JalSjLBAWboY1JBLBl0pFH0h7ji6XnVSFBBZ0AhQKP4ZwYceM6E6neS012mzr5e -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -116,5 +116,5 @@ CREATE UNIQUE INDEX idx_apps_new_monthly ON frontend.apps_new_monthly USING btre -- PostgreSQL database dump complete -- -\unrestrict pWyl5GCUxsScCEDXg4aEaXn7rBBTPDCAq5zr0yPsWqNWwghZ3pCIv1c1HyHkOc8 +\unrestrict JalSjLBAWboY1JBLBl0pFH0h7ji6XnVSFBBZ0AhQKP4ZwYceM6E6neS012mzr5e diff --git a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql index be04796c..49dae087 100644 --- a/pg-ddl/schema/frontend/apps_new_weekly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_weekly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict K6pzbMCyYMfyMjs3CcDtTxXyLOHiouQNFZec8fpg418qQ2HNNFLMA53h6KvB3uS +\restrict 03TfSZ7r4S7rVgvGfn6tfLnrv96Quqq4rMewRPUQgXNzxam54LmvXHw5k9vFeC1 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -123,5 +123,5 @@ CREATE UNIQUE INDEX idx_apps_new_weekly_f ON frontend.apps_new_weekly USING btre -- PostgreSQL database dump complete -- -\unrestrict K6pzbMCyYMfyMjs3CcDtTxXyLOHiouQNFZec8fpg418qQ2HNNFLMA53h6KvB3uS +\unrestrict 03TfSZ7r4S7rVgvGfn6tfLnrv96Quqq4rMewRPUQgXNzxam54LmvXHw5k9vFeC1 diff --git a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql index 86e94067..1ffebbdf 100644 --- a/pg-ddl/schema/frontend/apps_new_yearly__matview.sql +++ b/pg-ddl/schema/frontend/apps_new_yearly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict bCk0TChpBpQB5AoxEl9j8ucgQB8PSXsZKXbdHz2hb9JJ1gStwt8Y7dcGfWDkm3w +\restrict BBPxcJyXVGPj4eUx8gqOEY2yWUmZ3Awc5KaBjLXjdMnN9M6Z38XqeoWVjkeJWvm -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -117,5 +117,5 @@ CREATE UNIQUE INDEX idx_apps_new_yearly ON frontend.apps_new_yearly USING btree -- PostgreSQL database dump complete -- -\unrestrict bCk0TChpBpQB5AoxEl9j8ucgQB8PSXsZKXbdHz2hb9JJ1gStwt8Y7dcGfWDkm3w +\unrestrict BBPxcJyXVGPj4eUx8gqOEY2yWUmZ3Awc5KaBjLXjdMnN9M6Z38XqeoWVjkeJWvm diff --git a/pg-ddl/schema/frontend/category_tag_stats__matview.sql b/pg-ddl/schema/frontend/category_tag_stats__matview.sql index 295cae8e..efdb5013 100644 --- a/pg-ddl/schema/frontend/category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict pmglVKL9KsiyjAHRsLuUJEa4Yvk0cRcQBGDL7rkTmEv9hhPU2d5TJ66BeTKX96N +\restrict LASz3sDy0wCNfO0ymxaE0OeYa7z5bxjuXDCsvTgvPhkVtFFBP2eAfM6pfjmEdNz -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -60,5 +60,5 @@ CREATE UNIQUE INDEX idx_category_tag_stats ON frontend.category_tag_stats USING -- PostgreSQL database dump complete -- -\unrestrict pmglVKL9KsiyjAHRsLuUJEa4Yvk0cRcQBGDL7rkTmEv9hhPU2d5TJ66BeTKX96N +\unrestrict LASz3sDy0wCNfO0ymxaE0OeYa7z5bxjuXDCsvTgvPhkVtFFBP2eAfM6pfjmEdNz diff --git a/pg-ddl/schema/frontend/category_tag_type_stats__matview.sql b/pg-ddl/schema/frontend/category_tag_type_stats__matview.sql index e297d180..275e41d5 100644 --- a/pg-ddl/schema/frontend/category_tag_type_stats__matview.sql +++ b/pg-ddl/schema/frontend/category_tag_type_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 8MJubzaSn3MyQiDnT2rVXeDoVQX5hdWxogr50FgYfv2XwrUKi2aFPJ3aKRT6iBC +\restrict BDYVeqQAbV5Wag6iNnxaOseoJR6TxFmv1rzFBaCwfAfbYR8FWu5AdhA2cBQb4yY -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -110,5 +110,5 @@ ALTER MATERIALIZED VIEW frontend.category_tag_type_stats OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 8MJubzaSn3MyQiDnT2rVXeDoVQX5hdWxogr50FgYfv2XwrUKi2aFPJ3aKRT6iBC +\unrestrict BDYVeqQAbV5Wag6iNnxaOseoJR6TxFmv1rzFBaCwfAfbYR8FWu5AdhA2cBQb4yY diff --git a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql index 58142f42..04f120ed 100644 --- a/pg-ddl/schema/frontend/companies_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_apps_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict BBYbqAp5shdaO9Zjh5R1HNm7UaHGrwwNh9YFfeXTaTa9Whk1xS5Is1ht8eAlRJt +\restrict CZKm0CGXlpImPPmMWoTyHc9mb5gNChQQDDKzTozgfJ4SxmyfD9eYfc0WKnicGE9 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -28,23 +28,24 @@ SET default_table_access_method = heap; -- CREATE MATERIALIZED VIEW frontend.companies_apps_overview AS - WITH store_app_sdk_companies AS ( + WITH store_app_sdk_company_category AS ( SELECT DISTINCT savs.store_app, - sd.company_id - FROM (adtech.store_app_sdk_strings savs + sd.company_id, + sc.category_id + FROM ((adtech.store_app_sdk_strings savs LEFT JOIN adtech.sdks sd ON ((savs.sdk_id = sd.id))) + JOIN adtech.sdk_categories sc ON ((savs.sdk_id = sc.sdk_id))) ) SELECT sa.store_id, sacs.company_id, c.name AS company_name, d.domain_name AS company_domain, cc2.url_slug AS category_slug - FROM (((((store_app_sdk_companies sacs + FROM ((((store_app_sdk_company_category sacs LEFT JOIN public.store_apps sa ON ((sacs.store_app = sa.id))) LEFT JOIN adtech.companies c ON ((sacs.company_id = c.id))) LEFT JOIN public.domains d ON ((c.domain_id = d.id))) - LEFT JOIN adtech.company_categories cc ON ((c.id = cc.company_id))) - LEFT JOIN adtech.categories cc2 ON ((cc.category_id = cc2.id))) + LEFT JOIN adtech.categories cc2 ON ((sacs.category_id = cc2.id))) WHERE (sacs.company_id IS NOT NULL) WITH NO DATA; @@ -69,5 +70,5 @@ CREATE UNIQUE INDEX companies_apps_overview_unique_idx ON frontend.companies_app -- PostgreSQL database dump complete -- -\unrestrict BBYbqAp5shdaO9Zjh5R1HNm7UaHGrwwNh9YFfeXTaTa9Whk1xS5Is1ht8eAlRJt +\unrestrict CZKm0CGXlpImPPmMWoTyHc9mb5gNChQQDDKzTozgfJ4SxmyfD9eYfc0WKnicGE9 diff --git a/pg-ddl/schema/frontend/companies_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_stats__matview.sql index 492d7303..9041c9f1 100644 --- a/pg-ddl/schema/frontend/companies_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 6sQrv6elhgx6zAq4FEzzOklPdacJBaK8B7PwyGuivFX2MaGSwCyheydomFvT3up +\restrict 44gPIVLi99vTWVpc9BvjR0tMSVsWNW17PWCCcgeVag8gNzNghPidp5dOXYRtWkT -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -62,5 +62,5 @@ CREATE INDEX companies_category_stats_query_idx ON frontend.companies_category_s -- PostgreSQL database dump complete -- -\unrestrict 6sQrv6elhgx6zAq4FEzzOklPdacJBaK8B7PwyGuivFX2MaGSwCyheydomFvT3up +\unrestrict 44gPIVLi99vTWVpc9BvjR0tMSVsWNW17PWCCcgeVag8gNzNghPidp5dOXYRtWkT diff --git a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql index 22ae73e3..7ab83186 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict sW3cQL1ceDxeLOpphJqvAlcuCzAVcZfBrdl10QxmBSGPcESGHFw8yZ6zcrXp38V +\restrict CYElgV2E3gN9AGY07Y8kDEvsYhV85bmkeMNRfm6XWq3PRCWVQRjoKZKTWNrKEVC -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -73,5 +73,5 @@ CREATE UNIQUE INDEX companies_category_tag_stats_idx ON frontend.companies_categ -- PostgreSQL database dump complete -- -\unrestrict sW3cQL1ceDxeLOpphJqvAlcuCzAVcZfBrdl10QxmBSGPcESGHFw8yZ6zcrXp38V +\unrestrict CYElgV2E3gN9AGY07Y8kDEvsYhV85bmkeMNRfm6XWq3PRCWVQRjoKZKTWNrKEVC diff --git a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql index e34a1f17..129e7d99 100644 --- a/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_category_tag_type_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ezk0cgrbGp7teJKLhA5wQ8YXJ1m8O8ARP9rsrF9SOv0ae7fZ0DHEjyfNpaagKzh +\restrict VTvniZaod6uQ0cFaZj86PDwkDy2u9BlXtOhGKZIeoIBogW54ktvHz0gb6tfklMj -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -119,5 +119,5 @@ CREATE UNIQUE INDEX frontend_companies_category_tag_type_stats_unique ON fronten -- PostgreSQL database dump complete -- -\unrestrict ezk0cgrbGp7teJKLhA5wQ8YXJ1m8O8ARP9rsrF9SOv0ae7fZ0DHEjyfNpaagKzh +\unrestrict VTvniZaod6uQ0cFaZj86PDwkDy2u9BlXtOhGKZIeoIBogW54ktvHz0gb6tfklMj diff --git a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql index c9c4c903..51e318fa 100644 --- a/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql +++ b/pg-ddl/schema/frontend/companies_creative_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Wwy0elUqj33f2SRY01RngM1kZbGU9M5mqNdhtBcBAOPhHAdGdrZbsX1cYi2DE4K +\restrict FytOn9bjeew8dS5db70eGQNx2OHAJTB6TZKPGOJqBunPNUWno5FNOEgOoDIfoQs -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -130,5 +130,5 @@ ALTER MATERIALIZED VIEW frontend.companies_creative_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict Wwy0elUqj33f2SRY01RngM1kZbGU9M5mqNdhtBcBAOPhHAdGdrZbsX1cYi2DE4K +\unrestrict FytOn9bjeew8dS5db70eGQNx2OHAJTB6TZKPGOJqBunPNUWno5FNOEgOoDIfoQs diff --git a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql index 668923a9..92bf5b52 100644 --- a/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql +++ b/pg-ddl/schema/frontend/companies_open_source_percent__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict D3RBB1LpuT3sqSMqy36JqpTdlJuhGPwDbIfxnCmLHNwh1kDE5XZ6weaaVdPV9TT +\restrict RlauLvDb30InSWbRxqbYcZjMJXoLTjVmoNxW4bbvbqyRlrZD7c1H1UGN9m1dThR -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -54,5 +54,5 @@ CREATE UNIQUE INDEX companies_open_source_percent_unique ON frontend.companies_o -- PostgreSQL database dump complete -- -\unrestrict D3RBB1LpuT3sqSMqy36JqpTdlJuhGPwDbIfxnCmLHNwh1kDE5XZ6weaaVdPV9TT +\unrestrict RlauLvDb30InSWbRxqbYcZjMJXoLTjVmoNxW4bbvbqyRlrZD7c1H1UGN9m1dThR diff --git a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql index e01ccdf0..2b326bbb 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 6aH7LrwqxrkLb4VK7TSKdcMcka8dV57deQuLuDrx4gGCf7Xa3Mw3UvfNxNNe3XK +\restrict MJnUbKabUSAeJRkmlaaDODBQubDWemW9sdYsUpCt1BrJgeDL2jkbI75Hzj6Mhwv -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -73,5 +73,5 @@ CREATE INDEX companies_parent_category_stats_query_idx ON frontend.companies_par -- PostgreSQL database dump complete -- -\unrestrict 6aH7LrwqxrkLb4VK7TSKdcMcka8dV57deQuLuDrx4gGCf7Xa3Mw3UvfNxNNe3XK +\unrestrict MJnUbKabUSAeJRkmlaaDODBQubDWemW9sdYsUpCt1BrJgeDL2jkbI75Hzj6Mhwv diff --git a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql index df202b2d..66c9d3fb 100644 --- a/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql +++ b/pg-ddl/schema/frontend/companies_parent_category_tag_stats__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict TPz1WGxw2BfGw0kacwqTc41fRQH5MdJamY7k6NHpiTb6D5eXenNPk1yHdN4S9Fn +\restrict AfTUUjvI0MandVZJdgUNpLJRMbaAyvsS2AZVcPNZTGNNjE92YAlEDt7d4RkmTnO -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -76,5 +76,5 @@ CREATE INDEX companies_parent_category_tag_stats_query_idx ON frontend.companies -- PostgreSQL database dump complete -- -\unrestrict TPz1WGxw2BfGw0kacwqTc41fRQH5MdJamY7k6NHpiTb6D5eXenNPk1yHdN4S9Fn +\unrestrict AfTUUjvI0MandVZJdgUNpLJRMbaAyvsS2AZVcPNZTGNNjE92YAlEDt7d4RkmTnO diff --git a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql index c8ae9e65..22ec9fef 100644 --- a/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql +++ b/pg-ddl/schema/frontend/companies_sdks_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict PyfT3tcHraHHrMHf8tCoAbqmfAYfmXIko5fm99CguW266eb8ggDhtbjqgo24g6w +\restrict 2O9Uh0p44bvmyrcDV7JRG8nXbgiu7pSYBFuAAPvipLdWCeM17Our0aNC8Y2Tkdh -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX companies_sdks_overview_unique_idx ON frontend.companies_sdk -- PostgreSQL database dump complete -- -\unrestrict PyfT3tcHraHHrMHf8tCoAbqmfAYfmXIko5fm99CguW266eb8ggDhtbjqgo24g6w +\unrestrict 2O9Uh0p44bvmyrcDV7JRG8nXbgiu7pSYBFuAAPvipLdWCeM17Our0aNC8Y2Tkdh diff --git a/pg-ddl/schema/frontend/company_domain_country__matview.sql b/pg-ddl/schema/frontend/company_domain_country__matview.sql index 7d22c131..471992cf 100644 --- a/pg-ddl/schema/frontend/company_domain_country__matview.sql +++ b/pg-ddl/schema/frontend/company_domain_country__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict qWfyJ2Ftpldsb0kZguejAgpCq1a7KA9RdSMpN90wzLddJorkmNu6uURxULddaFW +\restrict lcSrrgce69pHFL7N4esHzhVeTuzFrEgJYNhJxLRhcdhFu6VNdwlFmvcZrYa11uv -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -74,5 +74,5 @@ ALTER MATERIALIZED VIEW frontend.company_domain_country OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict qWfyJ2Ftpldsb0kZguejAgpCq1a7KA9RdSMpN90wzLddJorkmNu6uURxULddaFW +\unrestrict lcSrrgce69pHFL7N4esHzhVeTuzFrEgJYNhJxLRhcdhFu6VNdwlFmvcZrYa11uv diff --git a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql index a61e8566..9e86b7ff 100644 --- a/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_domains_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict wlA6gTXlAXEIYaqLUWeZ2owCvV894magVGkj6AHcxWdtc8LEjp9p26hEOZim5Lj +\restrict p4r3O9Mo7OOo29ff3H5UuWh69mqm7Lx5kGsTwFGHS11LRc6VKAWD5rDiTk4TqTM -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -115,5 +115,5 @@ CREATE UNIQUE INDEX idx_unique_company_domains_top_apps ON frontend.company_doma -- PostgreSQL database dump complete -- -\unrestrict wlA6gTXlAXEIYaqLUWeZ2owCvV894magVGkj6AHcxWdtc8LEjp9p26hEOZim5Lj +\unrestrict p4r3O9Mo7OOo29ff3H5UuWh69mqm7Lx5kGsTwFGHS11LRc6VKAWD5rDiTk4TqTM diff --git a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql index c9255dc5..abef44bf 100644 --- a/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_parent_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 3cutCKeI4B1txb1hnEBC0gRFBwscVnbeOpxqBKqeVxbN10hobaeJMeSILYGlYIo +\restrict B3HnAdpabUc4L14zTJPw00HOeKmGAALjGQyQyK6svgywh61W9DY8sBWFLas7fVd -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -111,5 +111,5 @@ CREATE UNIQUE INDEX idx_company_parent_top_apps_unique ON frontend.company_paren -- PostgreSQL database dump complete -- -\unrestrict 3cutCKeI4B1txb1hnEBC0gRFBwscVnbeOpxqBKqeVxbN10hobaeJMeSILYGlYIo +\unrestrict B3HnAdpabUc4L14zTJPw00HOeKmGAALjGQyQyK6svgywh61W9DY8sBWFLas7fVd diff --git a/pg-ddl/schema/frontend/company_top_apps__matview.sql b/pg-ddl/schema/frontend/company_top_apps__matview.sql index 14227040..78da14f3 100644 --- a/pg-ddl/schema/frontend/company_top_apps__matview.sql +++ b/pg-ddl/schema/frontend/company_top_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict jgTWEdzbeIkFWpt4pS8GNzB7rvsnpho0jHKXX3g3bttJxIHtqahUN6nvFx8VXPf +\restrict 0R5fSxwbKyGd7YaPgW6Z0RcY9vxS6FSMZHfglsoIM3CRRhDyr2PdQTrBc6AQJOm -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -118,5 +118,5 @@ CREATE UNIQUE INDEX idx_unique_company_top_apps ON frontend.company_top_apps USI -- PostgreSQL database dump complete -- -\unrestrict jgTWEdzbeIkFWpt4pS8GNzB7rvsnpho0jHKXX3g3bttJxIHtqahUN6nvFx8VXPf +\unrestrict 0R5fSxwbKyGd7YaPgW6Z0RcY9vxS6FSMZHfglsoIM3CRRhDyr2PdQTrBc6AQJOm diff --git a/pg-ddl/schema/frontend/keyword_scores__matview.sql b/pg-ddl/schema/frontend/keyword_scores__matview.sql index 60b09bea..0f89423d 100644 --- a/pg-ddl/schema/frontend/keyword_scores__matview.sql +++ b/pg-ddl/schema/frontend/keyword_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict KUy4TVY022LYYaKM7CrEXxebbHwIF9zfbHhAMSs5Lypa9i8betnW30n8aUcBbqo +\restrict XaL7BcyRBVAt4FwL7eQKnzFlyjGyEKtl0L6eHaapHWeHMgZjkKIuAMaTlBcetgR -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -144,5 +144,5 @@ CREATE UNIQUE INDEX keyword_scores_store_keyword_id_idx ON frontend.keyword_scor -- PostgreSQL database dump complete -- -\unrestrict KUy4TVY022LYYaKM7CrEXxebbHwIF9zfbHhAMSs5Lypa9i8betnW30n8aUcBbqo +\unrestrict XaL7BcyRBVAt4FwL7eQKnzFlyjGyEKtl0L6eHaapHWeHMgZjkKIuAMaTlBcetgR diff --git a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql index 671a30f0..613bdfb6 100644 --- a/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql +++ b/pg-ddl/schema/frontend/latest_sdk_scanned_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict gnAODoMPVc7OpPFFn6eCB6ylBBUG3XKoH247QHlo9wQyTPxMTtOr1rYfEos7Vjm +\restrict oYNu5XFcbte5BrBHJY164jLfbrAbcb0VKVsux85IfQMxzitTlxFQsomFxf6kuVw -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -77,5 +77,5 @@ CREATE UNIQUE INDEX latest_sdk_scanned_apps_unique_index ON frontend.latest_sdk_ -- PostgreSQL database dump complete -- -\unrestrict gnAODoMPVc7OpPFFn6eCB6ylBBUG3XKoH247QHlo9wQyTPxMTtOr1rYfEos7Vjm +\unrestrict oYNu5XFcbte5BrBHJY164jLfbrAbcb0VKVsux85IfQMxzitTlxFQsomFxf6kuVw diff --git a/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql b/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql index d850fb56..e00260cc 100644 --- a/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql +++ b/pg-ddl/schema/frontend/mediation_adapter_app_counts__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict luGg0AZP3qibbOErwv49F9CfY6KvCqONUVIZ3aEzIz04LS9Gn8bJ3FEPDn5wcbr +\restrict TDUizv9uLjVfo1PRzoiFfKgmEgnjGICx2niwkiBWUB3V9kFla9nISbBaZnefzj1 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER MATERIALIZED VIEW frontend.mediation_adapter_app_counts OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict luGg0AZP3qibbOErwv49F9CfY6KvCqONUVIZ3aEzIz04LS9Gn8bJ3FEPDn5wcbr +\unrestrict TDUizv9uLjVfo1PRzoiFfKgmEgnjGICx2niwkiBWUB3V9kFla9nISbBaZnefzj1 diff --git a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql index 9625216b..1c0f7eb6 100644 --- a/pg-ddl/schema/frontend/store_app_api_companies__matview.sql +++ b/pg-ddl/schema/frontend/store_app_api_companies__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fTaLumVJxN8eQvd1ab3QMBwqphe5DdRdm6W2tlUM2RM8k2JJXwHYT5hhrzCrx9K +\restrict pTHm5Jkq0xxxSXid0ImieoUODlNukVUhTomost6Ewx68mEqjCUVCxTeskafUu9a -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -61,5 +61,5 @@ ALTER MATERIALIZED VIEW frontend.store_app_api_companies OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict fTaLumVJxN8eQvd1ab3QMBwqphe5DdRdm6W2tlUM2RM8k2JJXwHYT5hhrzCrx9K +\unrestrict pTHm5Jkq0xxxSXid0ImieoUODlNukVUhTomost6Ewx68mEqjCUVCxTeskafUu9a diff --git a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql index 697fd04f..8823f393 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_best_monthly__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict KQosDDm2eCUvdZBWo5XnkHhx6IcHddJofbMz1BVdeqns8t3G5nPCQBlssPVYkXP +\restrict vHeJBy0gdy99hhHyYuZucy8gS8MjvuClce7ZxnYPleXEJSnkCdseLDnAOGERZHC -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -71,5 +71,5 @@ CREATE UNIQUE INDEX store_app_ranks_best_monthly_uidx ON frontend.store_app_rank -- PostgreSQL database dump complete -- -\unrestrict KQosDDm2eCUvdZBWo5XnkHhx6IcHddJofbMz1BVdeqns8t3G5nPCQBlssPVYkXP +\unrestrict vHeJBy0gdy99hhHyYuZucy8gS8MjvuClce7ZxnYPleXEJSnkCdseLDnAOGERZHC diff --git a/pg-ddl/schema/frontend/store_app_ranks_daily.sql b/pg-ddl/schema/frontend/store_app_ranks_daily.sql index 7a51d12f..8a43572b 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_daily.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_daily.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict gcUURx2Ua3ar8wUwCRAOcTj7FXwRQgGKzyRzzRaoPlRiaAZxgDoBXayThJaf73a +\restrict g1d9NjqqokgtgxIQDVOGJCrlNf7G1lxfhVN4u6NxahRgQ2gyebeJxOz23hNWUNR -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -91,5 +91,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_daily -- PostgreSQL database dump complete -- -\unrestrict gcUURx2Ua3ar8wUwCRAOcTj7FXwRQgGKzyRzzRaoPlRiaAZxgDoBXayThJaf73a +\unrestrict g1d9NjqqokgtgxIQDVOGJCrlNf7G1lxfhVN4u6NxahRgQ2gyebeJxOz23hNWUNR diff --git a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql index 7162acbc..d36d64c1 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict kzXMy9f6rQOqzT8sim4fiKSGgg0tq3agPBnmoH34GKnubevO92jNYlcmBjfmbez +\restrict 61L69Gi90FrgcfbVERiZF9GRRShqFKQRqJpAgNhgcu055vWAR1e2TATO299Ouy9 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -73,5 +73,5 @@ CREATE UNIQUE INDEX idx_store_app_ranks_latest_filter_sort ON frontend.store_app -- PostgreSQL database dump complete -- -\unrestrict kzXMy9f6rQOqzT8sim4fiKSGgg0tq3agPBnmoH34GKnubevO92jNYlcmBjfmbez +\unrestrict 61L69Gi90FrgcfbVERiZF9GRRShqFKQRqJpAgNhgcu055vWAR1e2TATO299Ouy9 diff --git a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql index 9a162091..c6e23f2f 100644 --- a/pg-ddl/schema/frontend/store_app_ranks_weekly.sql +++ b/pg-ddl/schema/frontend/store_app_ranks_weekly.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Fz09HV2ZX7hFhdPOV8nifKHGpW2g7TBQGwxGQfos6WMwptks7q7r0ZTwuzQ9AyU +\restrict hfbIAaZ7KS6Hpa2p4dH9nwiqfYE0HuOdlW9mg2IobJs3f8NW7OKgB5UAB5cywQh -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -98,5 +98,5 @@ ALTER TABLE ONLY frontend.store_app_ranks_weekly -- PostgreSQL database dump complete -- -\unrestrict Fz09HV2ZX7hFhdPOV8nifKHGpW2g7TBQGwxGQfos6WMwptks7q7r0ZTwuzQ9AyU +\unrestrict hfbIAaZ7KS6Hpa2p4dH9nwiqfYE0HuOdlW9mg2IobJs3f8NW7OKgB5UAB5cywQh diff --git a/pg-ddl/schema/frontend/store_apps_overview__matview.sql b/pg-ddl/schema/frontend/store_apps_overview__matview.sql index 438c73bd..4e2679d7 100644 --- a/pg-ddl/schema/frontend/store_apps_overview__matview.sql +++ b/pg-ddl/schema/frontend/store_apps_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict GXRckyjgVGQ6bYbcBEMMJ5rGnBg3fsZgsgXJblNH8cAOs2Zggguhrm8JZQdeM4f +\restrict xEmarDhA1mWQ3a9Mri1Ib0VdLmte29IqrhQOgAYZtlK2acqaMw4jTVkOKnKxrxs -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -228,5 +228,5 @@ CREATE UNIQUE INDEX store_apps_overview_unique_store_id_idx ON frontend.store_ap -- PostgreSQL database dump complete -- -\unrestrict GXRckyjgVGQ6bYbcBEMMJ5rGnBg3fsZgsgXJblNH8cAOs2Zggguhrm8JZQdeM4f +\unrestrict xEmarDhA1mWQ3a9Mri1Ib0VdLmte29IqrhQOgAYZtlK2acqaMw4jTVkOKnKxrxs diff --git a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql b/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql deleted file mode 100644 index a891c59e..00000000 --- a/pg-ddl/schema/frontend/store_apps_z_scores__matview.sql +++ /dev/null @@ -1,129 +0,0 @@ --- --- PostgreSQL database dump --- - -\restrict IPlgcMBLGeYE3OZiprbhSkY7BtAUDm7Q6IPzwVfS41UThAfqIOGZ9LATHtfomjY - --- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) --- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) - -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET transaction_timeout = 0; -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); -SET check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - -SET default_tablespace = ''; - -SET default_table_access_method = heap; - --- --- Name: store_apps_z_scores; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres --- - -CREATE MATERIALIZED VIEW frontend.store_apps_z_scores AS - WITH app_metrics AS ( - SELECT app_global_metrics_latest.store_app, - app_global_metrics_latest.rating, - app_global_metrics_latest.rating_count, - app_global_metrics_latest.installs - FROM public.app_global_metrics_latest - ), ranked_z_scores AS ( - SELECT saz.store_app, - saz.latest_week, - saz.installs_sum_1w, - saz.ratings_sum_1w, - saz.installs_avg_2w, - saz.ratings_avg_2w, - saz.installs_z_score_2w, - saz.ratings_z_score_2w, - saz.installs_sum_4w, - saz.ratings_sum_4w, - saz.installs_avg_4w, - saz.ratings_avg_4w, - saz.installs_z_score_4w, - saz.ratings_z_score_4w, - sa.id, - sa.developer, - sa.name, - sa.store_id, - sa.store, - sa.category, - am.installs, - sa.free, - sa.price, - sa.store_last_updated, - sa.content_rating, - sa.ad_supported, - sa.in_app_purchases, - sa.created_at, - sa.updated_at, - sa.crawl_result, - sa.release_date, - am.rating_count, - sa.icon_url_100, - cm.original_category, - cm.mapped_category, - row_number() OVER (PARTITION BY sa.store, cm.mapped_category, - CASE - WHEN (sa.store = 2) THEN 'rating'::text - ELSE 'installs'::text - END ORDER BY - CASE - WHEN (sa.store = 2) THEN saz.ratings_z_score_2w - WHEN (sa.store = 1) THEN saz.installs_z_score_2w - ELSE NULL::numeric - END DESC NULLS LAST) AS rn - FROM (((public.store_app_z_scores saz - LEFT JOIN public.store_apps sa ON ((saz.store_app = sa.id))) - LEFT JOIN app_metrics am ON ((saz.store_app = am.store_app))) - LEFT JOIN public.category_mapping cm ON (((sa.category)::text = (cm.original_category)::text))) - WHERE (sa.store = ANY (ARRAY[1, 2])) - ) - SELECT store, - store_id, - name AS app_name, - mapped_category AS app_category, - in_app_purchases, - ad_supported, - icon_url_100, - installs, - rating_count, - installs_sum_1w, - ratings_sum_1w, - installs_avg_2w, - ratings_avg_2w, - installs_z_score_2w, - ratings_z_score_2w, - installs_sum_4w, - ratings_sum_4w, - installs_avg_4w, - ratings_avg_4w, - installs_z_score_4w, - ratings_z_score_4w - FROM ranked_z_scores - WHERE (rn <= 100) - WITH NO DATA; - - -ALTER MATERIALIZED VIEW frontend.store_apps_z_scores OWNER TO postgres; - --- --- Name: frontend_store_apps_z_scores_unique; Type: INDEX; Schema: frontend; Owner: postgres --- - -CREATE UNIQUE INDEX frontend_store_apps_z_scores_unique ON frontend.store_apps_z_scores USING btree (store, store_id); - - --- --- PostgreSQL database dump complete --- - -\unrestrict IPlgcMBLGeYE3OZiprbhSkY7BtAUDm7Q6IPzwVfS41UThAfqIOGZ9LATHtfomjY - diff --git a/pg-ddl/schema/full_db_dump.sql b/pg-ddl/schema/full_db_dump.sql index 4fea9947..618fd72d 100644 --- a/pg-ddl/schema/full_db_dump.sql +++ b/pg-ddl/schema/full_db_dump.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1jTBQd34td7kKcJ9DQSWz50m62FW5RaQzU3jrvdDu5Y76BGT9NVt5k9K9JObhCb +\restrict aqSyUPuJghUSivRpPmJ0wjpiuNqZ0Xb7iDHpQcCoga4fxvxnfEJs5GfAimQHJSS -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -2798,23 +2798,24 @@ ALTER MATERIALIZED VIEW frontend.category_tag_type_stats OWNER TO postgres; -- CREATE MATERIALIZED VIEW frontend.companies_apps_overview AS - WITH store_app_sdk_companies AS ( + WITH store_app_sdk_company_category AS ( SELECT DISTINCT savs.store_app, - sd.company_id - FROM (adtech.store_app_sdk_strings savs + sd.company_id, + sc.category_id + FROM ((adtech.store_app_sdk_strings savs LEFT JOIN adtech.sdks sd ON ((savs.sdk_id = sd.id))) + JOIN adtech.sdk_categories sc ON ((savs.sdk_id = sc.sdk_id))) ) SELECT sa.store_id, sacs.company_id, c.name AS company_name, d.domain_name AS company_domain, cc2.url_slug AS category_slug - FROM (((((store_app_sdk_companies sacs + FROM ((((store_app_sdk_company_category sacs LEFT JOIN public.store_apps sa ON ((sacs.store_app = sa.id))) LEFT JOIN adtech.companies c ON ((sacs.company_id = c.id))) LEFT JOIN public.domains d ON ((c.domain_id = d.id))) - LEFT JOIN adtech.company_categories cc ON ((c.id = cc.company_id))) - LEFT JOIN adtech.categories cc2 ON ((cc.category_id = cc2.id))) + LEFT JOIN adtech.categories cc2 ON ((sacs.category_id = cc2.id))) WHERE (sacs.company_id IS NOT NULL) WITH NO DATA; @@ -3783,10 +3784,10 @@ CREATE MATERIALIZED VIEW frontend.store_app_ranks_latest AS ALTER MATERIALIZED VIEW frontend.store_app_ranks_latest OWNER TO postgres; -- --- Name: store_apps_z_scores; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres +-- Name: z_scores_top_apps; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres -- -CREATE MATERIALIZED VIEW frontend.store_apps_z_scores AS +CREATE MATERIALIZED VIEW frontend.z_scores_top_apps AS WITH app_metrics AS ( SELECT app_global_metrics_latest.store_app, app_global_metrics_latest.rating, @@ -3802,23 +3803,22 @@ CREATE MATERIALIZED VIEW frontend.store_apps_z_scores AS saz.ratings_avg_2w, saz.installs_z_score_2w, saz.ratings_z_score_2w, - saz.installs_sum_4w, + sa.installs_sum_4w_est AS installs_sum_4w, saz.ratings_sum_4w, saz.installs_avg_4w, saz.ratings_avg_4w, saz.installs_z_score_4w, saz.ratings_z_score_4w, sa.id, - sa.developer, + sa.developer_id, + sa.developer_name, sa.name, sa.store_id, sa.store, - sa.category, - am.installs, + sa.category AS app_category, + sa.installs_est AS installs, sa.free, - sa.price, sa.store_last_updated, - sa.content_rating, sa.ad_supported, sa.in_app_purchases, sa.created_at, @@ -3827,9 +3827,7 @@ CREATE MATERIALIZED VIEW frontend.store_apps_z_scores AS sa.release_date, am.rating_count, sa.icon_url_100, - cm.original_category, - cm.mapped_category, - row_number() OVER (PARTITION BY sa.store, cm.mapped_category, + row_number() OVER (PARTITION BY sa.store, sa.category, CASE WHEN (sa.store = 2) THEN 'rating'::text ELSE 'installs'::text @@ -3839,16 +3837,16 @@ CREATE MATERIALIZED VIEW frontend.store_apps_z_scores AS WHEN (sa.store = 1) THEN saz.installs_z_score_2w ELSE NULL::numeric END DESC NULLS LAST) AS rn - FROM (((public.store_app_z_scores saz - LEFT JOIN public.store_apps sa ON ((saz.store_app = sa.id))) + FROM ((public.store_app_z_scores saz + LEFT JOIN frontend.store_apps_overview sa ON ((saz.store_app = sa.id))) LEFT JOIN app_metrics am ON ((saz.store_app = am.store_app))) - LEFT JOIN public.category_mapping cm ON (((sa.category)::text = (cm.original_category)::text))) WHERE (sa.store = ANY (ARRAY[1, 2])) ) SELECT store, store_id, name AS app_name, - mapped_category AS app_category, + developer_name, + app_category, in_app_purchases, ad_supported, icon_url_100, @@ -3871,7 +3869,7 @@ CREATE MATERIALIZED VIEW frontend.store_apps_z_scores AS WITH NO DATA; -ALTER MATERIALIZED VIEW frontend.store_apps_z_scores OWNER TO postgres; +ALTER MATERIALIZED VIEW frontend.z_scores_top_apps OWNER TO postgres; -- -- Name: app_country_crawls; Type: TABLE; Schema: logging; Owner: postgres @@ -4430,6 +4428,25 @@ ALTER SEQUENCE public.domains_id_seq OWNER TO postgres; ALTER SEQUENCE public.domains_id_seq OWNED BY public.domains.id; +-- +-- Name: global_retention_benchmarks; Type: TABLE; Schema: public; Owner: postgres +-- + +CREATE TABLE public.global_retention_benchmarks ( + store_id smallint NOT NULL, + app_category text NOT NULL, + d1 numeric(6,5) NOT NULL, + d7 numeric(6,5) NOT NULL, + d30 numeric(6,5) NOT NULL, + CONSTRAINT global_retention_benchmarks_d1_check CHECK (((d1 > (0)::numeric) AND (d1 <= (1)::numeric))), + CONSTRAINT global_retention_benchmarks_d30_check CHECK (((d30 > (0)::numeric) AND (d30 <= (1)::numeric))), + CONSTRAINT global_retention_benchmarks_d7_check CHECK (((d7 > (0)::numeric) AND (d7 <= (1)::numeric))), + CONSTRAINT retention_monotonic_check CHECK (((d1 >= d7) AND (d7 >= d30))) +); + + +ALTER TABLE public.global_retention_benchmarks OWNER TO postgres; + -- -- Name: ip_geo_snapshots_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- @@ -4649,7 +4666,7 @@ CREATE MATERIALIZED VIEW public.store_apps_in_latest_rankings AS sa.installs, sa.rating_count, sa.store_id - FROM (frontend.store_apps_z_scores saz + FROM (frontend.z_scores_top_apps saz LEFT JOIN frontend.store_apps_overview sa ON (((saz.store_id)::text = (sa.store_id)::text))) WHERE sa.free ORDER BY COALESCE(saz.installs_z_score_2w, saz.ratings_z_score_2w) DESC @@ -5549,6 +5566,14 @@ ALTER TABLE ONLY public.domains ADD CONSTRAINT domains_pkey PRIMARY KEY (id); +-- +-- Name: global_retention_benchmarks global_retention_benchmarks_pk; Type: CONSTRAINT; Schema: public; Owner: postgres +-- + +ALTER TABLE ONLY public.global_retention_benchmarks + ADD CONSTRAINT global_retention_benchmarks_pk PRIMARY KEY (store_id, app_category); + + -- -- Name: ip_geo_snapshots ip_geo_snapshots_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- @@ -6040,10 +6065,10 @@ CREATE UNIQUE INDEX frontend_companies_category_tag_type_stats_unique ON fronten -- --- Name: frontend_store_apps_z_scores_unique; Type: INDEX; Schema: frontend; Owner: postgres +-- Name: frontend_z_scores_top_apps_unique; Type: INDEX; Schema: frontend; Owner: postgres -- -CREATE UNIQUE INDEX frontend_store_apps_z_scores_unique ON frontend.store_apps_z_scores USING btree (store, store_id); +CREATE UNIQUE INDEX frontend_z_scores_top_apps_unique ON frontend.z_scores_top_apps USING btree (store, store_id); -- @@ -7250,5 +7275,5 @@ GRANT ALL ON SCHEMA public TO PUBLIC; -- PostgreSQL database dump complete -- -\unrestrict 1jTBQd34td7kKcJ9DQSWz50m62FW5RaQzU3jrvdDu5Y76BGT9NVt5k9K9JObhCb +\unrestrict aqSyUPuJghUSivRpPmJ0wjpiuNqZ0Xb7iDHpQcCoga4fxvxnfEJs5GfAimQHJSS diff --git a/pg-ddl/schema/logging/app_country_crawls.sql b/pg-ddl/schema/logging/app_country_crawls.sql index bfe3b9af..d711a4a5 100644 --- a/pg-ddl/schema/logging/app_country_crawls.sql +++ b/pg-ddl/schema/logging/app_country_crawls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict EYGbLjhaZQMatR8czx87p3ZVlr7Ax089TcZ62MZk53ntZfGI3os6mYPGh6pvIBy +\restrict XLhCRL3eTUmBgoiSluev9YN7Yz6uAz7S0EcHyPTsOQxC8S8XtvMTA7JG6yikH6W -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -57,5 +57,5 @@ ALTER TABLE ONLY logging.app_country_crawls -- PostgreSQL database dump complete -- -\unrestrict EYGbLjhaZQMatR8czx87p3ZVlr7Ax089TcZ62MZk53ntZfGI3os6mYPGh6pvIBy +\unrestrict XLhCRL3eTUmBgoiSluev9YN7Yz6uAz7S0EcHyPTsOQxC8S8XtvMTA7JG6yikH6W diff --git a/pg-ddl/schema/logging/app_description_keywords_extracted.sql b/pg-ddl/schema/logging/app_description_keywords_extracted.sql index 08fea6bf..a78f94f2 100644 --- a/pg-ddl/schema/logging/app_description_keywords_extracted.sql +++ b/pg-ddl/schema/logging/app_description_keywords_extracted.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Ne3VlrceI2bg5sUQMqdi88cX32uV0OOBNfm03smIFAej6uoIsdfJBFvIHGz2VLh +\restrict qlCo85fAyeH65VKAU3DkTOVEZz8rub6PAeHaZHRs1yIYU8Xpdkdug4matYGI7Ed -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ CREATE INDEX app_description_keywords_extrac_description_id_extracted_at_idx ON -- PostgreSQL database dump complete -- -\unrestrict Ne3VlrceI2bg5sUQMqdi88cX32uV0OOBNfm03smIFAej6uoIsdfJBFvIHGz2VLh +\unrestrict qlCo85fAyeH65VKAU3DkTOVEZz8rub6PAeHaZHRs1yIYU8Xpdkdug4matYGI7Ed diff --git a/pg-ddl/schema/logging/creative_scan_results.sql b/pg-ddl/schema/logging/creative_scan_results.sql index 8445662d..2782fc5b 100644 --- a/pg-ddl/schema/logging/creative_scan_results.sql +++ b/pg-ddl/schema/logging/creative_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ruEBqMMdppd1q5AE8TFnqMenkjXbzgo88ClvWy8hkQTTek6OGiBNpr9Chvtq3FB +\restrict lFTXpDYG6cL4SRMSInkdevzjeBNJXYkVHgnDMtZKgzp1TOnc3Pjx3xj6Uxw3rig -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -47,5 +47,5 @@ ALTER TABLE logging.creative_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict ruEBqMMdppd1q5AE8TFnqMenkjXbzgo88ClvWy8hkQTTek6OGiBNpr9Chvtq3FB +\unrestrict lFTXpDYG6cL4SRMSInkdevzjeBNJXYkVHgnDMtZKgzp1TOnc3Pjx3xj6Uxw3rig diff --git a/pg-ddl/schema/logging/developers_crawled_at.sql b/pg-ddl/schema/logging/developers_crawled_at.sql index 96ebba2b..d5f7cba8 100644 --- a/pg-ddl/schema/logging/developers_crawled_at.sql +++ b/pg-ddl/schema/logging/developers_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Jgs0VazXunTc5lZSRZQ1a9m4d7PSYfURMwmLMHipeoq12hKfLZqtFWHzMqB9GUD +\restrict cVOjxwj29CPuf3wqYdAuaBk09lyLHqS6zqPepfs0aWzWzGo95ROxhE41ueL9Q0O -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.developers_crawled_at -- PostgreSQL database dump complete -- -\unrestrict Jgs0VazXunTc5lZSRZQ1a9m4d7PSYfURMwmLMHipeoq12hKfLZqtFWHzMqB9GUD +\unrestrict cVOjxwj29CPuf3wqYdAuaBk09lyLHqS6zqPepfs0aWzWzGo95ROxhE41ueL9Q0O diff --git a/pg-ddl/schema/logging/keywords_crawled_at.sql b/pg-ddl/schema/logging/keywords_crawled_at.sql index 49f46408..20e396dc 100644 --- a/pg-ddl/schema/logging/keywords_crawled_at.sql +++ b/pg-ddl/schema/logging/keywords_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict sjfLuF7OL7YovV9bHFblDkI7O7mu65Z840lg03WruMY9ULgZ25NyDilPofdfr1u +\restrict OCbdtYmW5qhfr6zfMStVyDmUiTm67b5fO9jEJxvHSWfMTr9Jwa9TTaLDoQJpeSo -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -55,5 +55,5 @@ ALTER TABLE ONLY logging.keywords_crawled_at -- PostgreSQL database dump complete -- -\unrestrict sjfLuF7OL7YovV9bHFblDkI7O7mu65Z840lg03WruMY9ULgZ25NyDilPofdfr1u +\unrestrict OCbdtYmW5qhfr6zfMStVyDmUiTm67b5fO9jEJxvHSWfMTr9Jwa9TTaLDoQJpeSo diff --git a/pg-ddl/schema/logging/snapshot_pub_domains.sql b/pg-ddl/schema/logging/snapshot_pub_domains.sql index c60d0a9e..aa2e79e8 100644 --- a/pg-ddl/schema/logging/snapshot_pub_domains.sql +++ b/pg-ddl/schema/logging/snapshot_pub_domains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict ARxlu3Ph78ShOOpxm5gwac2KbxzzDD2bSgXOLHNUBeqsxOxzuyhqVeFoZIB3Lax +\restrict O0Yw0h1c9KD9hFxpARi1vKOMlqHMVHCoO8eIf9UYhWycrmUQ0HoTfkxEmNgEdqS -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -43,5 +43,5 @@ ALTER TABLE logging.snapshot_pub_domains OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict ARxlu3Ph78ShOOpxm5gwac2KbxzzDD2bSgXOLHNUBeqsxOxzuyhqVeFoZIB3Lax +\unrestrict O0Yw0h1c9KD9hFxpARi1vKOMlqHMVHCoO8eIf9UYhWycrmUQ0HoTfkxEmNgEdqS diff --git a/pg-ddl/schema/logging/store_app_downloads.sql b/pg-ddl/schema/logging/store_app_downloads.sql index cc673d9e..9d03de41 100644 --- a/pg-ddl/schema/logging/store_app_downloads.sql +++ b/pg-ddl/schema/logging/store_app_downloads.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict H0riuJYqURVZGqbWwrouoNkUIXz0nUnK3WJy40PLmAmxcLSgmDXfMf11WFFAjo7 +\restrict ksZKwIrbUnmFjhbhX9sXa8yHrhnrGJmwUqc2HxviknXYcBU72E4h1bZQrfsatSc -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -49,5 +49,5 @@ ALTER TABLE ONLY logging.store_app_downloads -- PostgreSQL database dump complete -- -\unrestrict H0riuJYqURVZGqbWwrouoNkUIXz0nUnK3WJy40PLmAmxcLSgmDXfMf11WFFAjo7 +\unrestrict ksZKwIrbUnmFjhbhX9sXa8yHrhnrGJmwUqc2HxviknXYcBU72E4h1bZQrfsatSc diff --git a/pg-ddl/schema/logging/store_app_no_creatives.sql b/pg-ddl/schema/logging/store_app_no_creatives.sql index ae33e427..d9f6d54c 100644 --- a/pg-ddl/schema/logging/store_app_no_creatives.sql +++ b/pg-ddl/schema/logging/store_app_no_creatives.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fOzrfavHz1Q8BTj8g5tBZnVRc5rbEMANGbjhvHUpS98QWhus6fM8fi6GpI82qGc +\restrict bsHE1eQqGSOVHFM4yj2syBtyp4lKtfMcHGwnZcrcocIEXPuPIgcTTrQ9HDH1Pbm -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -40,5 +40,5 @@ ALTER TABLE logging.store_app_no_creatives OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict fOzrfavHz1Q8BTj8g5tBZnVRc5rbEMANGbjhvHUpS98QWhus6fM8fi6GpI82qGc +\unrestrict bsHE1eQqGSOVHFM4yj2syBtyp4lKtfMcHGwnZcrcocIEXPuPIgcTTrQ9HDH1Pbm diff --git a/pg-ddl/schema/logging/store_app_sources.sql b/pg-ddl/schema/logging/store_app_sources.sql index cea10dcd..f8c27ad7 100644 --- a/pg-ddl/schema/logging/store_app_sources.sql +++ b/pg-ddl/schema/logging/store_app_sources.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict iTxm3YtK3KHl7cWFQr0Efw27YPNNxwedXvZed8m6ICehoOUHSZ7bH8NmmrgNLcj +\restrict 9VFmZh1jUM1Bqp34zb9tIV7byn3yGks9xJk4kc56EEZbV6VJlYbDePee6K7nNmn -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -64,5 +64,5 @@ ALTER TABLE ONLY logging.store_app_sources -- PostgreSQL database dump complete -- -\unrestrict iTxm3YtK3KHl7cWFQr0Efw27YPNNxwedXvZed8m6ICehoOUHSZ7bH8NmmrgNLcj +\unrestrict 9VFmZh1jUM1Bqp34zb9tIV7byn3yGks9xJk4kc56EEZbV6VJlYbDePee6K7nNmn diff --git a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql index a5ac42c3..ee0580ab 100644 --- a/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql +++ b/pg-ddl/schema/logging/store_app_waydroid_crawled_at.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict KI5hNnTnFQSHdPYc0NuwjiMeOGJR33kPxI5Mj1Fs7y39hio4P0rLbVAAnwWYsav +\restrict GIsi4qmZys2qEEf0fHrlkQx7vPbnVDaygPdpyM0v4BrkxJBdtO7zVc8nqbaZ3Jt -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -63,5 +63,5 @@ ALTER TABLE ONLY logging.store_app_waydroid_crawled_at -- PostgreSQL database dump complete -- -\unrestrict KI5hNnTnFQSHdPYc0NuwjiMeOGJR33kPxI5Mj1Fs7y39hio4P0rLbVAAnwWYsav +\unrestrict GIsi4qmZys2qEEf0fHrlkQx7vPbnVDaygPdpyM0v4BrkxJBdtO7zVc8nqbaZ3Jt diff --git a/pg-ddl/schema/logging/store_apps_snapshot.sql b/pg-ddl/schema/logging/store_apps_snapshot.sql index 1bca5033..f8d636e8 100644 --- a/pg-ddl/schema/logging/store_apps_snapshot.sql +++ b/pg-ddl/schema/logging/store_apps_snapshot.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict SECJm6T0bcEI7cnSMGGuX5CuuaEii0GKx5ozsQWx2I0I9a5TuNTaaj8hRJfuKwa +\restrict qb2zs7efhEIrexfJb8qO6phvGb8LJdHM6EImnWvVfdhU3coOoHMxI2Hxvk5dGXd -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -44,5 +44,5 @@ ALTER TABLE logging.store_apps_snapshot OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict SECJm6T0bcEI7cnSMGGuX5CuuaEii0GKx5ozsQWx2I0I9a5TuNTaaj8hRJfuKwa +\unrestrict qb2zs7efhEIrexfJb8qO6phvGb8LJdHM6EImnWvVfdhU3coOoHMxI2Hxvk5dGXd diff --git a/pg-ddl/schema/logging/version_code_api_scan_results.sql b/pg-ddl/schema/logging/version_code_api_scan_results.sql index 309d7688..0005804e 100644 --- a/pg-ddl/schema/logging/version_code_api_scan_results.sql +++ b/pg-ddl/schema/logging/version_code_api_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5YPdfcTa1yApkgdTazGpNKQ4kRuorRA7NeXabPNPTcM2SxB4vvp832v0TbSqCEa +\restrict khzeSQsnAWTuu1GA96D9a4acx9uL3yu8bnL8oNFJKMaLXXM0GpdDqJmh8wes9uk -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -42,5 +42,5 @@ ALTER TABLE logging.version_code_api_scan_results OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 5YPdfcTa1yApkgdTazGpNKQ4kRuorRA7NeXabPNPTcM2SxB4vvp832v0TbSqCEa +\unrestrict khzeSQsnAWTuu1GA96D9a4acx9uL3yu8bnL8oNFJKMaLXXM0GpdDqJmh8wes9uk diff --git a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql index 70205e99..0d01a397 100644 --- a/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql +++ b/pg-ddl/schema/public/ad_network_sdk_keys__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict cDkioI9C1xgMjQwGD5OE2d01hSM62Ts8jFwsJxRCG3masrQkBdzwtpHCNJ0kixd +\restrict cmYOrybzGuaHZhE3RknrLSJNJ8gJsbfiCYjMCqXbO4qFrQavKojkgCCZjza0C7M -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -60,5 +60,5 @@ ALTER MATERIALIZED VIEW public.ad_network_sdk_keys OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict cDkioI9C1xgMjQwGD5OE2d01hSM62Ts8jFwsJxRCG3masrQkBdzwtpHCNJ0kixd +\unrestrict cmYOrybzGuaHZhE3RknrLSJNJ8gJsbfiCYjMCqXbO4qFrQavKojkgCCZjza0C7M diff --git a/pg-ddl/schema/public/adstxt_crawl_results.sql b/pg-ddl/schema/public/adstxt_crawl_results.sql index 0dc82b0c..0736dafd 100644 --- a/pg-ddl/schema/public/adstxt_crawl_results.sql +++ b/pg-ddl/schema/public/adstxt_crawl_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict FW0TbCAHpP3sxAF7V9gHd5O6dooFlsA1VDLyNo6bG7qxWWyIBM0CZLpbgnlLoB9 +\restrict jcAooXEnJQkc0T5rOitoFytHKwzmGmL9GoxQtT6myIAVYkR8oD9sQdjobPh5pB0 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -96,5 +96,5 @@ ALTER TABLE ONLY public.adstxt_crawl_results -- PostgreSQL database dump complete -- -\unrestrict FW0TbCAHpP3sxAF7V9gHd5O6dooFlsA1VDLyNo6bG7qxWWyIBM0CZLpbgnlLoB9 +\unrestrict jcAooXEnJQkc0T5rOitoFytHKwzmGmL9GoxQtT6myIAVYkR8oD9sQdjobPh5pB0 diff --git a/pg-ddl/schema/public/api_calls.sql b/pg-ddl/schema/public/api_calls.sql index b43b7729..6869c0fa 100644 --- a/pg-ddl/schema/public/api_calls.sql +++ b/pg-ddl/schema/public/api_calls.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict SAvCvBwtGqT0k7yLmqgspw0q2Wd1d0dy7wqZIVhyxK5WnheHvzOcqbLtuQfNSX1 +\restrict saoMeu5Y0TkNkHzwVas2njG26f0XxtaKx23fvESiuYc454GPf8Y0ox67u50uSYc -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -135,5 +135,5 @@ ALTER TABLE ONLY public.api_calls -- PostgreSQL database dump complete -- -\unrestrict SAvCvBwtGqT0k7yLmqgspw0q2Wd1d0dy7wqZIVhyxK5WnheHvzOcqbLtuQfNSX1 +\unrestrict saoMeu5Y0TkNkHzwVas2njG26f0XxtaKx23fvESiuYc454GPf8Y0ox67u50uSYc diff --git a/pg-ddl/schema/public/app_ads_entrys.sql b/pg-ddl/schema/public/app_ads_entrys.sql index 5b12e1bc..40ec259f 100644 --- a/pg-ddl/schema/public/app_ads_entrys.sql +++ b/pg-ddl/schema/public/app_ads_entrys.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1Pcr7pXxf4t5jwRYD361GF9CjC5YzLl5wfbJ8vgZJKhQ6yhMOIWCWSTKN2xP5Ak +\restrict vRVRDtIUaYXlGxoa5s8aSbemATRLvAtdRy6bePr0OSsF5fLrv4S5A32ESu34XrF -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -90,5 +90,5 @@ ALTER TABLE ONLY public.app_ads_entrys -- PostgreSQL database dump complete -- -\unrestrict 1Pcr7pXxf4t5jwRYD361GF9CjC5YzLl5wfbJ8vgZJKhQ6yhMOIWCWSTKN2xP5Ak +\unrestrict vRVRDtIUaYXlGxoa5s8aSbemATRLvAtdRy6bePr0OSsF5fLrv4S5A32ESu34XrF diff --git a/pg-ddl/schema/public/app_ads_map.sql b/pg-ddl/schema/public/app_ads_map.sql index 1e198da5..b78cc3cd 100644 --- a/pg-ddl/schema/public/app_ads_map.sql +++ b/pg-ddl/schema/public/app_ads_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 1IszHkKaXgYvqj8yYVBqPrtomfnHQhHXKPhxcYrUwK8exhdp5WarUvh5Z5GAlbF +\restrict 3nRm3C25LjvyOcnGbjsqSGdutLYiM5JeDnFMgd8gFqNc4x0qWSeM8k47Vog5GG6 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_ads_map -- PostgreSQL database dump complete -- -\unrestrict 1IszHkKaXgYvqj8yYVBqPrtomfnHQhHXKPhxcYrUwK8exhdp5WarUvh5Z5GAlbF +\unrestrict 3nRm3C25LjvyOcnGbjsqSGdutLYiM5JeDnFMgd8gFqNc4x0qWSeM8k47Vog5GG6 diff --git a/pg-ddl/schema/public/app_country_metrics_history.sql b/pg-ddl/schema/public/app_country_metrics_history.sql index c0387197..ac1dd50a 100644 --- a/pg-ddl/schema/public/app_country_metrics_history.sql +++ b/pg-ddl/schema/public/app_country_metrics_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict J2csH15l5j28yyxDoMIcHofvvQeQH6pVkeARplSO5Q0d3kxT1L3vWyVsUXHHk3b +\restrict ANh2lWa2FfRbz3rXRBv9rs0NO5YM7vEgUAZEIpezN7nM4peG00h2NwHwOxchhca -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.app_country_metrics_history -- PostgreSQL database dump complete -- -\unrestrict J2csH15l5j28yyxDoMIcHofvvQeQH6pVkeARplSO5Q0d3kxT1L3vWyVsUXHHk3b +\unrestrict ANh2lWa2FfRbz3rXRBv9rs0NO5YM7vEgUAZEIpezN7nM4peG00h2NwHwOxchhca diff --git a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql index 57cef58e..5788feda 100644 --- a/pg-ddl/schema/public/app_country_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_country_metrics_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict AO390YDhbrRVDRwmAmeuHYQEBSYE3MLww1nEb1Ue2gM87VtYV8bcbBIDuK429Zq +\restrict j5QcL8IA3kWwqZtBFAHFg16mITE4quJPSb5a3NFJohzei4DwT8hN178VpTbgHyL -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -57,5 +57,5 @@ CREATE UNIQUE INDEX app_country_metrics_latest_idx ON public.app_country_metrics -- PostgreSQL database dump complete -- -\unrestrict AO390YDhbrRVDRwmAmeuHYQEBSYE3MLww1nEb1Ue2gM87VtYV8bcbBIDuK429Zq +\unrestrict j5QcL8IA3kWwqZtBFAHFg16mITE4quJPSb5a3NFJohzei4DwT8hN178VpTbgHyL diff --git a/pg-ddl/schema/public/app_global_metrics_history.sql b/pg-ddl/schema/public/app_global_metrics_history.sql index 036bb61a..5f74266a 100644 --- a/pg-ddl/schema/public/app_global_metrics_history.sql +++ b/pg-ddl/schema/public/app_global_metrics_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5zjPpDQfO089Bd3A7AeicDqFE0ePhx8QqJ0C0HHQ5A2cckJ16G8t1FMQch6fYGH +\restrict nm2Ymju9xTwTbTT6qMpGHXk6lev3UGDSl4oIVVvjJ7vGDTb41BNJEXpOHOAQwxw -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.app_global_metrics_history -- PostgreSQL database dump complete -- -\unrestrict 5zjPpDQfO089Bd3A7AeicDqFE0ePhx8QqJ0C0HHQ5A2cckJ16G8t1FMQch6fYGH +\unrestrict nm2Ymju9xTwTbTT6qMpGHXk6lev3UGDSl4oIVVvjJ7vGDTb41BNJEXpOHOAQwxw diff --git a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql index d70725d8..27ae7bc0 100644 --- a/pg-ddl/schema/public/app_global_metrics_latest__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_latest__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 8eTdPTqm26mjvW96LwgptvzLc9UHn3bXFPd5rMMDzVtkStzEO0Lr7OrzdjElhxP +\restrict YK4pATLC9BGj2r4Qd7Iu3lrhE1q6gOp8YKgacBQiLQXYea1cUhLIHEVywWeXRnj -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -58,5 +58,5 @@ CREATE UNIQUE INDEX app_global_metrics_latest_idx ON public.app_global_metrics_l -- PostgreSQL database dump complete -- -\unrestrict 8eTdPTqm26mjvW96LwgptvzLc9UHn3bXFPd5rMMDzVtkStzEO0Lr7OrzdjElhxP +\unrestrict YK4pATLC9BGj2r4Qd7Iu3lrhE1q6gOp8YKgacBQiLQXYea1cUhLIHEVywWeXRnj diff --git a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql index db22474c..c5544c1a 100644 --- a/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql +++ b/pg-ddl/schema/public/app_global_metrics_weekly_diffs__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict aejrESSn3sKuyUax5Tj1Pcm44UFJltFrwziFfzze7fU6YZYGebTfKo5TLYfzhzk +\restrict mDZ2ED3svgv0lvOGPwaUwJ3uCfrp9guFcUydUudcaupVviQujiyJ0OyppvXALct -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -62,5 +62,5 @@ CREATE UNIQUE INDEX app_global_metrics_weekly_diffs_week_start_store_app_idx ON -- PostgreSQL database dump complete -- -\unrestrict aejrESSn3sKuyUax5Tj1Pcm44UFJltFrwziFfzze7fU6YZYGebTfKo5TLYfzhzk +\unrestrict mDZ2ED3svgv0lvOGPwaUwJ3uCfrp9guFcUydUudcaupVviQujiyJ0OyppvXALct diff --git a/pg-ddl/schema/public/app_keywords_extracted.sql b/pg-ddl/schema/public/app_keywords_extracted.sql index be8baa64..da47b7c5 100644 --- a/pg-ddl/schema/public/app_keywords_extracted.sql +++ b/pg-ddl/schema/public/app_keywords_extracted.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict xJsKa01ZTjSPJXkOzQfOQFU1ezOFqcmUK3ElqvUVbqJkFan6Jn3iWO3e3uZ44SM +\restrict 2kNgHkOe4Cc5zOpKsuSVbAOojljA0TFiI1tojFzxakpFvjE2NV7wI5T1c2AquTR -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -79,5 +79,5 @@ ALTER TABLE ONLY public.app_keywords_extracted -- PostgreSQL database dump complete -- -\unrestrict xJsKa01ZTjSPJXkOzQfOQFU1ezOFqcmUK3ElqvUVbqJkFan6Jn3iWO3e3uZ44SM +\unrestrict 2kNgHkOe4Cc5zOpKsuSVbAOojljA0TFiI1tojFzxakpFvjE2NV7wI5T1c2AquTR diff --git a/pg-ddl/schema/public/app_urls_map.sql b/pg-ddl/schema/public/app_urls_map.sql index 42008b62..185ad2c4 100644 --- a/pg-ddl/schema/public/app_urls_map.sql +++ b/pg-ddl/schema/public/app_urls_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict M2bzGRCM5UxceTTekmRI1m99F5ppXAa3CrHcGj5sHldC3fdvh1Uanzfs6NhQvO2 +\restrict bzEPyaHctOoFfbYW5YZznwFYmYlliesLFhokDVB1wqF3vNoQ4ouq9ydbcgYVAkR -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -95,5 +95,5 @@ ALTER TABLE ONLY public.app_urls_map -- PostgreSQL database dump complete -- -\unrestrict M2bzGRCM5UxceTTekmRI1m99F5ppXAa3CrHcGj5sHldC3fdvh1Uanzfs6NhQvO2 +\unrestrict bzEPyaHctOoFfbYW5YZznwFYmYlliesLFhokDVB1wqF3vNoQ4ouq9ydbcgYVAkR diff --git a/pg-ddl/schema/public/category_mapping__matview.sql b/pg-ddl/schema/public/category_mapping__matview.sql index d6c88af4..76158859 100644 --- a/pg-ddl/schema/public/category_mapping__matview.sql +++ b/pg-ddl/schema/public/category_mapping__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict jFlNsQfIN9LL3J7mlx8x1cmxiUz14Kik3NXn3PnXvhq43RwG2e8BJJbKj1RbYel +\restrict WExrMK6UFYIpqtVe0dRMeLxCd8T2BTlgp99IBzZg7eZrShNZvhxsfaRs9IlB1PG -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -67,5 +67,5 @@ CREATE UNIQUE INDEX category_mapping_idx ON public.category_mapping USING btree -- PostgreSQL database dump complete -- -\unrestrict jFlNsQfIN9LL3J7mlx8x1cmxiUz14Kik3NXn3PnXvhq43RwG2e8BJJbKj1RbYel +\unrestrict WExrMK6UFYIpqtVe0dRMeLxCd8T2BTlgp99IBzZg7eZrShNZvhxsfaRs9IlB1PG diff --git a/pg-ddl/schema/public/countries.sql b/pg-ddl/schema/public/countries.sql index adc9a56e..3538b1f5 100644 --- a/pg-ddl/schema/public/countries.sql +++ b/pg-ddl/schema/public/countries.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict WrbgJ7KPPWhgQP8767Fv3jUPSeZv0hGf5K1cQVK7aGxOf8PaKQDdiwBgTzbJZFa +\restrict LFwZdqDfg6GRjKe2GcSx8Y0UizEGvOHy0msSAJcLwZ9rdlcJVPK47bzMF5xXpqQ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -71,5 +71,5 @@ ALTER TABLE ONLY public.countries -- PostgreSQL database dump complete -- -\unrestrict WrbgJ7KPPWhgQP8767Fv3jUPSeZv0hGf5K1cQVK7aGxOf8PaKQDdiwBgTzbJZFa +\unrestrict LFwZdqDfg6GRjKe2GcSx8Y0UizEGvOHy0msSAJcLwZ9rdlcJVPK47bzMF5xXpqQ diff --git a/pg-ddl/schema/public/crawl_results.sql b/pg-ddl/schema/public/crawl_results.sql index 5362f76a..fdb41a22 100644 --- a/pg-ddl/schema/public/crawl_results.sql +++ b/pg-ddl/schema/public/crawl_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict fTyMH6jLulBBCJU4rYRU4boO5XncaEhKGhKGbQiaHc9hohp2sGYJT9LROBu2JTZ +\restrict U6TvCc99jF2eF8T2Cp0evS9MQUeIYqKs8SzHZzPH5plI5XSqSDIVc4EbTMiXOeN -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -61,5 +61,5 @@ ALTER TABLE ONLY public.crawl_results -- PostgreSQL database dump complete -- -\unrestrict fTyMH6jLulBBCJU4rYRU4boO5XncaEhKGhKGbQiaHc9hohp2sGYJT9LROBu2JTZ +\unrestrict U6TvCc99jF2eF8T2Cp0evS9MQUeIYqKs8SzHZzPH5plI5XSqSDIVc4EbTMiXOeN diff --git a/pg-ddl/schema/public/crawl_scenario_country_config.sql b/pg-ddl/schema/public/crawl_scenario_country_config.sql index dfd0b153..0feddb09 100644 --- a/pg-ddl/schema/public/crawl_scenario_country_config.sql +++ b/pg-ddl/schema/public/crawl_scenario_country_config.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict YNRJXQep6NNxN8QQYBphcD9Cy6MeOE5JUIhBK9lBIwCUu6qtVLZdxvZbmlh7Owx +\restrict i59UmFsuQCs2tysMaN1Ow2YrTS1oSeSgabfeUP26z8iubLg2J5grhz6C5jMaiiV -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.crawl_scenario_country_config -- PostgreSQL database dump complete -- -\unrestrict YNRJXQep6NNxN8QQYBphcD9Cy6MeOE5JUIhBK9lBIwCUu6qtVLZdxvZbmlh7Owx +\unrestrict i59UmFsuQCs2tysMaN1Ow2YrTS1oSeSgabfeUP26z8iubLg2J5grhz6C5jMaiiV diff --git a/pg-ddl/schema/public/crawl_scenarios.sql b/pg-ddl/schema/public/crawl_scenarios.sql index 840b165c..505636c7 100644 --- a/pg-ddl/schema/public/crawl_scenarios.sql +++ b/pg-ddl/schema/public/crawl_scenarios.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict RVrTu04xFc9aRAu4T0NYp8bx5NhhO7Cvi5UtILuNOnJ4VIML5cL995ZNZT3aKfm +\restrict Itk79obb0ZaxGFj72tSvnCCxscB2hj2KTiStDo2SmKa0XZh2Meb3lD0XjejUcfQ -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.crawl_scenarios -- PostgreSQL database dump complete -- -\unrestrict RVrTu04xFc9aRAu4T0NYp8bx5NhhO7Cvi5UtILuNOnJ4VIML5cL995ZNZT3aKfm +\unrestrict Itk79obb0ZaxGFj72tSvnCCxscB2hj2KTiStDo2SmKa0XZh2Meb3lD0XjejUcfQ diff --git a/pg-ddl/schema/public/creative_assets.sql b/pg-ddl/schema/public/creative_assets.sql index 91479a75..0087f2e0 100644 --- a/pg-ddl/schema/public/creative_assets.sql +++ b/pg-ddl/schema/public/creative_assets.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict lfMu7H2vqoqN2T6XCsgqx4adrJMHRNN6pqEBTohWfrEybyV4rhdY7kfECI5KArG +\restrict EJmNRXMOYGkSuG96SvsciQc1tXEwaZHnM8WYiUwMsVFSe9t3f5oYHfdccLcwDKf -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -94,5 +94,5 @@ CREATE INDEX idx_creative_assets_phash ON public.creative_assets USING btree (ph -- PostgreSQL database dump complete -- -\unrestrict lfMu7H2vqoqN2T6XCsgqx4adrJMHRNN6pqEBTohWfrEybyV4rhdY7kfECI5KArG +\unrestrict EJmNRXMOYGkSuG96SvsciQc1tXEwaZHnM8WYiUwMsVFSe9t3f5oYHfdccLcwDKf diff --git a/pg-ddl/schema/public/creative_records.sql b/pg-ddl/schema/public/creative_records.sql index 9f013a5e..b0dd44b9 100644 --- a/pg-ddl/schema/public/creative_records.sql +++ b/pg-ddl/schema/public/creative_records.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict nJMlBCRzqWrNNoghUfQsbzrNzXxeJzUuv72YiAn1NRhG8MDgScxs1Ka3ySVYPXA +\restrict 7CbQsFDCtCuP8e8vaeTQPYLdaCbGXrxYDoEre209MeWKz7QtzUOQMZP6wevqxdi -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -153,5 +153,5 @@ ALTER TABLE ONLY public.creative_records -- PostgreSQL database dump complete -- -\unrestrict nJMlBCRzqWrNNoghUfQsbzrNzXxeJzUuv72YiAn1NRhG8MDgScxs1Ka3ySVYPXA +\unrestrict 7CbQsFDCtCuP8e8vaeTQPYLdaCbGXrxYDoEre209MeWKz7QtzUOQMZP6wevqxdi diff --git a/pg-ddl/schema/public/developer_store_apps__matview.sql b/pg-ddl/schema/public/developer_store_apps__matview.sql index cc08d02a..2dff8858 100644 --- a/pg-ddl/schema/public/developer_store_apps__matview.sql +++ b/pg-ddl/schema/public/developer_store_apps__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5wIn6A0K4Inbw76cPQ8itMDm6K4Awh33g0baPjro5bK8IkN9fhI783ZBPS4KEOJ +\restrict 2BBfJY8LdT9ootMyP3qTLaLhUcqb2PwQv9yJOBL2EipzqlCykq8RaVH0h1h9hUo -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -83,5 +83,5 @@ CREATE UNIQUE INDEX idx_developer_store_apps_unique ON public.developer_store_ap -- PostgreSQL database dump complete -- -\unrestrict 5wIn6A0K4Inbw76cPQ8itMDm6K4Awh33g0baPjro5bK8IkN9fhI783ZBPS4KEOJ +\unrestrict 2BBfJY8LdT9ootMyP3qTLaLhUcqb2PwQv9yJOBL2EipzqlCykq8RaVH0h1h9hUo diff --git a/pg-ddl/schema/public/developers.sql b/pg-ddl/schema/public/developers.sql index fe18e770..f78e336e 100644 --- a/pg-ddl/schema/public/developers.sql +++ b/pg-ddl/schema/public/developers.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict LeuDhBdTHxIE6nzcjy7mCXZuK6qZR8R8DuFJkhloF0XCgsaGTFFPMKum9HfbnCL +\restrict wRRllJR0wvRp5JquQH5c9JhWkaHlZ1ekgaeEXtfvhOZHPmU0mx7sUmrO86L0JSI -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -110,5 +110,5 @@ ALTER TABLE ONLY public.developers -- PostgreSQL database dump complete -- -\unrestrict LeuDhBdTHxIE6nzcjy7mCXZuK6qZR8R8DuFJkhloF0XCgsaGTFFPMKum9HfbnCL +\unrestrict wRRllJR0wvRp5JquQH5c9JhWkaHlZ1ekgaeEXtfvhOZHPmU0mx7sUmrO86L0JSI diff --git a/pg-ddl/schema/public/domains.sql b/pg-ddl/schema/public/domains.sql index 747a100c..722c7837 100644 --- a/pg-ddl/schema/public/domains.sql +++ b/pg-ddl/schema/public/domains.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict e7YxoYVWo60uXjJ8V62LCaelvDjdcGvflkRAaEIggGcfeGaHaWr2iqn9Gpi67dD +\restrict wOjrrCZitMYk6shcm5kppPtKhS4tmlGZZcmSGLPakUt7mhPcA90ebzSH6awqGBD -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -85,5 +85,5 @@ ALTER TABLE ONLY public.domains -- PostgreSQL database dump complete -- -\unrestrict e7YxoYVWo60uXjJ8V62LCaelvDjdcGvflkRAaEIggGcfeGaHaWr2iqn9Gpi67dD +\unrestrict wOjrrCZitMYk6shcm5kppPtKhS4tmlGZZcmSGLPakUt7mhPcA90ebzSH6awqGBD diff --git a/pg-ddl/schema/public/ip_geo_snapshots.sql b/pg-ddl/schema/public/ip_geo_snapshots.sql index 9a941bea..695c0517 100644 --- a/pg-ddl/schema/public/ip_geo_snapshots.sql +++ b/pg-ddl/schema/public/ip_geo_snapshots.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict dcicygFBhT9r1pbiBabWAKqrKP7UrFW878mzqepWz4IaeI7o7cJR5bxOhs3LE0m +\restrict F1qIU60Zq8AlbLwAlIQr6RebjlfLTCynJF52utiTwPctcq6yrHwpfI32W6z2OdN -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.ip_geo_snapshots -- PostgreSQL database dump complete -- -\unrestrict dcicygFBhT9r1pbiBabWAKqrKP7UrFW878mzqepWz4IaeI7o7cJR5bxOhs3LE0m +\unrestrict F1qIU60Zq8AlbLwAlIQr6RebjlfLTCynJF52utiTwPctcq6yrHwpfI32W6z2OdN diff --git a/pg-ddl/schema/public/keywords.sql b/pg-ddl/schema/public/keywords.sql index 9f6571fa..17f15276 100644 --- a/pg-ddl/schema/public/keywords.sql +++ b/pg-ddl/schema/public/keywords.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict hEl5r6BthAQQILz7UXsSlRKNFUXLjP7fp5ncYzJlYty2iEebeL2sGkNQg7JLFBq +\restrict 2zylZwg5BQghQ5H6uQt1s47utupYFzdGok1OACfODZ6MOeSylC0u35hVKleboGX -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.keywords -- PostgreSQL database dump complete -- -\unrestrict hEl5r6BthAQQILz7UXsSlRKNFUXLjP7fp5ncYzJlYty2iEebeL2sGkNQg7JLFBq +\unrestrict 2zylZwg5BQghQ5H6uQt1s47utupYFzdGok1OACfODZ6MOeSylC0u35hVKleboGX diff --git a/pg-ddl/schema/public/keywords_base.sql b/pg-ddl/schema/public/keywords_base.sql index 746bdeb7..5a143982 100644 --- a/pg-ddl/schema/public/keywords_base.sql +++ b/pg-ddl/schema/public/keywords_base.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict bFCbTgEtFv8rTH6TLwPlQf78MCp6ce5cFWi6mk8YgMCZ6Q5bar9F6N7kLsEVV2e +\restrict eF9CzstVnV1BmKfqApJJwiEcKPGvZ1SQA3Viw37HbaRehLK2dd3hHk5iCGpJCc0 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -38,5 +38,5 @@ ALTER TABLE public.keywords_base OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict bFCbTgEtFv8rTH6TLwPlQf78MCp6ce5cFWi6mk8YgMCZ6Q5bar9F6N7kLsEVV2e +\unrestrict eF9CzstVnV1BmKfqApJJwiEcKPGvZ1SQA3Viw37HbaRehLK2dd3hHk5iCGpJCc0 diff --git a/pg-ddl/schema/public/languages.sql b/pg-ddl/schema/public/languages.sql index 8298d409..4596a527 100644 --- a/pg-ddl/schema/public/languages.sql +++ b/pg-ddl/schema/public/languages.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict VINRhZcAYpGt4E6tlZXVNuXLqpUs5nlnvzj9cOTY25dgTP4GH1ZgKh4oWZTwZge +\restrict QIABSwxg8yaZzbGp9vb7BcHVHjU0YAbXIc2rEKsvtPBrifFE9SvXJX8O6DXTtrO -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.languages -- PostgreSQL database dump complete -- -\unrestrict VINRhZcAYpGt4E6tlZXVNuXLqpUs5nlnvzj9cOTY25dgTP4GH1ZgKh4oWZTwZge +\unrestrict QIABSwxg8yaZzbGp9vb7BcHVHjU0YAbXIc2rEKsvtPBrifFE9SvXJX8O6DXTtrO diff --git a/pg-ddl/schema/public/mv_app_categories__matview.sql b/pg-ddl/schema/public/mv_app_categories__matview.sql index 25b9ae2b..507401dd 100644 --- a/pg-ddl/schema/public/mv_app_categories__matview.sql +++ b/pg-ddl/schema/public/mv_app_categories__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict OvUvDxy8lPscEpi9NdVjrG37fBqt6ADwBNjTioigWHdOVMcqOXxyNlfzRIZnuBi +\restrict auwbx07U10faxdmK290GMUSAo46vh1agX8I4wYBkTGTtXqCEbsrLgsPmkkommj0 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -45,5 +45,5 @@ ALTER MATERIALIZED VIEW public.mv_app_categories OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict OvUvDxy8lPscEpi9NdVjrG37fBqt6ADwBNjTioigWHdOVMcqOXxyNlfzRIZnuBi +\unrestrict auwbx07U10faxdmK290GMUSAo46vh1agX8I4wYBkTGTtXqCEbsrLgsPmkkommj0 diff --git a/pg-ddl/schema/public/pg_stat_statements__view.sql b/pg-ddl/schema/public/pg_stat_statements__view.sql index cfc1a0fa..a256a47f 100644 --- a/pg-ddl/schema/public/pg_stat_statements__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements__view.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict HSsW8niOTXoNseIDeZb6VnTdZXR1EVpl87DglVbZfgX07eyn3K8f2FygaM3YnVa +\restrict pgCevHIkfzk6cYDORIVWlrI15dEGbSS6NFfOOszW071YZYe024qhyfVGzDk3bZO -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict HSsW8niOTXoNseIDeZb6VnTdZXR1EVpl87DglVbZfgX07eyn3K8f2FygaM3YnVa +\unrestrict pgCevHIkfzk6cYDORIVWlrI15dEGbSS6NFfOOszW071YZYe024qhyfVGzDk3bZO diff --git a/pg-ddl/schema/public/pg_stat_statements_info__view.sql b/pg-ddl/schema/public/pg_stat_statements_info__view.sql index 5b1194a2..c6c16cfe 100644 --- a/pg-ddl/schema/public/pg_stat_statements_info__view.sql +++ b/pg-ddl/schema/public/pg_stat_statements_info__view.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict emSXiMI0W2mcvAp6PlPl6S9qISV3umNa7W6f6jIFx8gxdAX96TZwEmSbSYjabEY +\restrict 40Qt4JBMshH5CU3ztXMINqc7Vj6RfxBrcdUPYBKbYPzzLVlygeVduggxeAE0COo -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -23,5 +23,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict emSXiMI0W2mcvAp6PlPl6S9qISV3umNa7W6f6jIFx8gxdAX96TZwEmSbSYjabEY +\unrestrict 40Qt4JBMshH5CU3ztXMINqc7Vj6RfxBrcdUPYBKbYPzzLVlygeVduggxeAE0COo diff --git a/pg-ddl/schema/public/platforms.sql b/pg-ddl/schema/public/platforms.sql index c6d4e00b..2e5fbe44 100644 --- a/pg-ddl/schema/public/platforms.sql +++ b/pg-ddl/schema/public/platforms.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict MaKPSaLMgKw0KNJqKm3kkBANLjOCT8AcpKeifV8aVspB8gAgYVUBY3uZMqhjMpH +\restrict Ir4klirIuP4alY1VLoNGB7Gb8bLhwxpATzSOZLdcH8NFn2WgxxB7gImhBxGZDYS -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -84,5 +84,5 @@ ALTER TABLE ONLY public.platforms -- PostgreSQL database dump complete -- -\unrestrict MaKPSaLMgKw0KNJqKm3kkBANLjOCT8AcpKeifV8aVspB8gAgYVUBY3uZMqhjMpH +\unrestrict Ir4klirIuP4alY1VLoNGB7Gb8bLhwxpATzSOZLdcH8NFn2WgxxB7gImhBxGZDYS diff --git a/pg-ddl/schema/public/store_app_z_scores__matview.sql b/pg-ddl/schema/public/store_app_z_scores__matview.sql index d95ec568..e052d084 100644 --- a/pg-ddl/schema/public/store_app_z_scores__matview.sql +++ b/pg-ddl/schema/public/store_app_z_scores__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict jtnEzDtwGvbtgiWeYpTf9LqkhOZ2H5zSBdD0r89tEp5huZDVPfq4ahwmIsEPKX3 +\restrict bwYenLceSY5m7fzsDHKjuOLSnfAj2APAot2hhpl8jiTfBOeDM3vFzqqSF5hljqr -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -155,5 +155,5 @@ ALTER MATERIALIZED VIEW public.store_app_z_scores OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict jtnEzDtwGvbtgiWeYpTf9LqkhOZ2H5zSBdD0r89tEp5huZDVPfq4ahwmIsEPKX3 +\unrestrict bwYenLceSY5m7fzsDHKjuOLSnfAj2APAot2hhpl8jiTfBOeDM3vFzqqSF5hljqr diff --git a/pg-ddl/schema/public/store_app_z_scores_history.sql b/pg-ddl/schema/public/store_app_z_scores_history.sql index 5679edd1..ce77396a 100644 --- a/pg-ddl/schema/public/store_app_z_scores_history.sql +++ b/pg-ddl/schema/public/store_app_z_scores_history.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict cijwV3Glck7EBY3xjNFyXTVE0QxwygE197tQPr51oNqJ9EpJDlCOQfYDohlbykx +\restrict n0kb0s5eB3JVkCR7is6afQvd7D3JnII0QYv23yCJfEWVge27MVt617pUcKzQZVe -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -64,5 +64,5 @@ ALTER TABLE ONLY public.store_app_z_scores_history -- PostgreSQL database dump complete -- -\unrestrict cijwV3Glck7EBY3xjNFyXTVE0QxwygE197tQPr51oNqJ9EpJDlCOQfYDohlbykx +\unrestrict n0kb0s5eB3JVkCR7is6afQvd7D3JnII0QYv23yCJfEWVge27MVt617pUcKzQZVe diff --git a/pg-ddl/schema/public/store_apps.sql b/pg-ddl/schema/public/store_apps.sql index 4b06b708..bcca5e47 100644 --- a/pg-ddl/schema/public/store_apps.sql +++ b/pg-ddl/schema/public/store_apps.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict iNCFqr2y3Zo7loWUkicSYhyMmcb1Z1ZnX4U8Bn3Te46K0rFibwtYsNIiW40hFsn +\restrict mXVNVSypIWD1JBE2q0bGg36u4zj9w14Aa6lAx8fDEPxicKnWjwvGixXq4Js16Ze -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -170,5 +170,5 @@ ALTER TABLE ONLY public.store_apps -- PostgreSQL database dump complete -- -\unrestrict iNCFqr2y3Zo7loWUkicSYhyMmcb1Z1ZnX4U8Bn3Te46K0rFibwtYsNIiW40hFsn +\unrestrict mXVNVSypIWD1JBE2q0bGg36u4zj9w14Aa6lAx8fDEPxicKnWjwvGixXq4Js16Ze diff --git a/pg-ddl/schema/public/store_apps_descriptions.sql b/pg-ddl/schema/public/store_apps_descriptions.sql index 4e55812b..bc1a08df 100644 --- a/pg-ddl/schema/public/store_apps_descriptions.sql +++ b/pg-ddl/schema/public/store_apps_descriptions.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict UXfZjf1cHqLDaYN0MDhc8foKJ9NIIb3PsjoCBhgQVb1VNrnbiBHfXY7uHMfujCd +\restrict 0E9aPJ0S3xlmhfqsVG5y9AdXdpEwKCNH2VNZ9qg4cEgl9cUn8diFQrSIgrY8wdm -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -112,5 +112,5 @@ ALTER TABLE ONLY public.store_apps_descriptions -- PostgreSQL database dump complete -- -\unrestrict UXfZjf1cHqLDaYN0MDhc8foKJ9NIIb3PsjoCBhgQVb1VNrnbiBHfXY7uHMfujCd +\unrestrict 0E9aPJ0S3xlmhfqsVG5y9AdXdpEwKCNH2VNZ9qg4cEgl9cUn8diFQrSIgrY8wdm diff --git a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql index 56584e88..dd234e00 100644 --- a/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql +++ b/pg-ddl/schema/public/store_apps_in_latest_rankings__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict xtypUOmTqHbEbD9NRcMqlj9N27i24SNfccvtGV8QiTU6pwlVIn2Jibi0GwlmtIp +\restrict 3ofGSx0Qgea00aq0wrMJ48v43iTjwdZkna5oX3g2XQ0hdRGEPzJoeFL2NruHQiV -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -36,7 +36,7 @@ CREATE MATERIALIZED VIEW public.store_apps_in_latest_rankings AS sa.installs, sa.rating_count, sa.store_id - FROM (frontend.store_apps_z_scores saz + FROM (frontend.z_scores_top_apps saz LEFT JOIN frontend.store_apps_overview sa ON (((saz.store_id)::text = (sa.store_id)::text))) WHERE sa.free ORDER BY COALESCE(saz.installs_z_score_2w, saz.ratings_z_score_2w) DESC @@ -80,5 +80,5 @@ ALTER MATERIALIZED VIEW public.store_apps_in_latest_rankings OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict xtypUOmTqHbEbD9NRcMqlj9N27i24SNfccvtGV8QiTU6pwlVIn2Jibi0GwlmtIp +\unrestrict 3ofGSx0Qgea00aq0wrMJ48v43iTjwdZkna5oX3g2XQ0hdRGEPzJoeFL2NruHQiV diff --git a/pg-ddl/schema/public/store_categories.sql b/pg-ddl/schema/public/store_categories.sql index 96c07b62..7abd22eb 100644 --- a/pg-ddl/schema/public/store_categories.sql +++ b/pg-ddl/schema/public/store_categories.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict Z01RdcE7Rdhm1dgCDlyyamZvEyI9RWzbeRwyYz2sngMZHcXBi5IZfDdNhiIK0zr +\restrict Thhbw6MaJ29JbuGTSlnJo88SwGJFNpgSqmMidCWDtlvvKMVrZKLsIz7b5sJ7CG0 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_categories -- PostgreSQL database dump complete -- -\unrestrict Z01RdcE7Rdhm1dgCDlyyamZvEyI9RWzbeRwyYz2sngMZHcXBi5IZfDdNhiIK0zr +\unrestrict Thhbw6MaJ29JbuGTSlnJo88SwGJFNpgSqmMidCWDtlvvKMVrZKLsIz7b5sJ7CG0 diff --git a/pg-ddl/schema/public/store_collections.sql b/pg-ddl/schema/public/store_collections.sql index 703d626f..5a5b4733 100644 --- a/pg-ddl/schema/public/store_collections.sql +++ b/pg-ddl/schema/public/store_collections.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict KbUCc6TT3GXdAGUXfFIbRTtkPCQhQcfa6qUjZaybTbyX5kV44dc58pqztKpNedg +\restrict nRYdlW2ZMyUcLNGWcIpRRhV1yvCheRZv1SHd4bUpHmHqd1akGAEU3PU9dQG3VyS -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.store_collections -- PostgreSQL database dump complete -- -\unrestrict KbUCc6TT3GXdAGUXfFIbRTtkPCQhQcfa6qUjZaybTbyX5kV44dc58pqztKpNedg +\unrestrict nRYdlW2ZMyUcLNGWcIpRRhV1yvCheRZv1SHd4bUpHmHqd1akGAEU3PU9dQG3VyS diff --git a/pg-ddl/schema/public/stores.sql b/pg-ddl/schema/public/stores.sql index e57f723d..9370cd91 100644 --- a/pg-ddl/schema/public/stores.sql +++ b/pg-ddl/schema/public/stores.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict rTzoimGlGiEeYec7ncOnNvEXieqKU93NTJ5sOgsIzGul68EEtPKizc9bxtRysV3 +\restrict vWwJdRpXhA2fB9AeQL2ME4pcPCKrpPpJu6y9X3zZL9rVPBWd6RhRf1xp25WP0k6 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -93,5 +93,5 @@ ALTER TABLE ONLY public.stores -- PostgreSQL database dump complete -- -\unrestrict rTzoimGlGiEeYec7ncOnNvEXieqKU93NTJ5sOgsIzGul68EEtPKizc9bxtRysV3 +\unrestrict vWwJdRpXhA2fB9AeQL2ME4pcPCKrpPpJu6y9X3zZL9rVPBWd6RhRf1xp25WP0k6 diff --git a/pg-ddl/schema/public/total_count_overview__matview.sql b/pg-ddl/schema/public/total_count_overview__matview.sql index ae59855b..7e0edf18 100644 --- a/pg-ddl/schema/public/total_count_overview__matview.sql +++ b/pg-ddl/schema/public/total_count_overview__matview.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 2LAQeMB2Lxa8tHVD8MACVlpiiswUUCuWgFShEg5rqDCnoRaAHbZcv2r7j9LelqY +\restrict a4jyjd9TXzilZ8n9c6t5Dm903EuJ1PeLYmhOR9XgZOlckC5P66W7grFc1BVOGUi -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -166,5 +166,5 @@ ALTER MATERIALIZED VIEW public.total_count_overview OWNER TO postgres; -- PostgreSQL database dump complete -- -\unrestrict 2LAQeMB2Lxa8tHVD8MACVlpiiswUUCuWgFShEg5rqDCnoRaAHbZcv2r7j9LelqY +\unrestrict a4jyjd9TXzilZ8n9c6t5Dm903EuJ1PeLYmhOR9XgZOlckC5P66W7grFc1BVOGUi diff --git a/pg-ddl/schema/public/version_code_api_scan_results.sql b/pg-ddl/schema/public/version_code_api_scan_results.sql index 6ff992df..efc1e585 100644 --- a/pg-ddl/schema/public/version_code_api_scan_results.sql +++ b/pg-ddl/schema/public/version_code_api_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict vnZaR5hqam9NboGr2p0I1bzxPFCqd1EznI5Y1O894oMk7AlrWLPp8PK1whzIO9p +\restrict 2njHsb7r3NLGtdNWnVjSpv2jWAzTa2EKR7PI0dT6Ieobx7FVnxtyhXbaytNZPjf -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -87,5 +87,5 @@ ALTER TABLE ONLY public.version_code_api_scan_results -- PostgreSQL database dump complete -- -\unrestrict vnZaR5hqam9NboGr2p0I1bzxPFCqd1EznI5Y1O894oMk7AlrWLPp8PK1whzIO9p +\unrestrict 2njHsb7r3NLGtdNWnVjSpv2jWAzTa2EKR7PI0dT6Ieobx7FVnxtyhXbaytNZPjf diff --git a/pg-ddl/schema/public/version_code_sdk_scan_results.sql b/pg-ddl/schema/public/version_code_sdk_scan_results.sql index a77f1633..e4db9309 100644 --- a/pg-ddl/schema/public/version_code_sdk_scan_results.sql +++ b/pg-ddl/schema/public/version_code_sdk_scan_results.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict uwXJXBpbQwho1fCwbLh9a84KbIt3j1FmafOeKd07AZub9JZSqlebHi7CVFuULq9 +\restrict gK1m6GRtlfDatfXwos8XKSENBtmDAdzgI4oQfRNIF5Uq3JJ8gm8GiqvhuC3vy0Z -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -86,5 +86,5 @@ ALTER TABLE ONLY public.version_code_sdk_scan_results -- PostgreSQL database dump complete -- -\unrestrict uwXJXBpbQwho1fCwbLh9a84KbIt3j1FmafOeKd07AZub9JZSqlebHi7CVFuULq9 +\unrestrict gK1m6GRtlfDatfXwos8XKSENBtmDAdzgI4oQfRNIF5Uq3JJ8gm8GiqvhuC3vy0Z diff --git a/pg-ddl/schema/public/version_codes.sql b/pg-ddl/schema/public/version_codes.sql index d96c3ec7..f0d60a7e 100644 --- a/pg-ddl/schema/public/version_codes.sql +++ b/pg-ddl/schema/public/version_codes.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict uAE1R6YBcdUTjVUOg5ixJMVQ1cblgQBxyaLVsaZDwvyyOZT4bdLsy7xDE8irtYy +\restrict JBU9QUnqSzD5RJfFtoNskH6TkHE3CX2V8rD7KD5XGpNUrWc3lUXt5z7OL4pP2dI -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -89,5 +89,5 @@ ALTER TABLE ONLY public.version_codes -- PostgreSQL database dump complete -- -\unrestrict uAE1R6YBcdUTjVUOg5ixJMVQ1cblgQBxyaLVsaZDwvyyOZT4bdLsy7xDE8irtYy +\unrestrict JBU9QUnqSzD5RJfFtoNskH6TkHE3CX2V8rD7KD5XGpNUrWc3lUXt5z7OL4pP2dI diff --git a/pg-ddl/schema/public/version_details_map.sql b/pg-ddl/schema/public/version_details_map.sql index dd75d043..700fbd37 100644 --- a/pg-ddl/schema/public/version_details_map.sql +++ b/pg-ddl/schema/public/version_details_map.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 55u6ebpTlccKN9pVJG9o1YLo6NrCNExeu4y37sI2AT7myfTwSLuwdpvdoTXwecv +\restrict QTGi5nxLo3Aa0oXlMe9A0kkrglVSLfCkPF9kLB67Y1sKi3GydKiBtubo4uwKMeL -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_details_map -- PostgreSQL database dump complete -- -\unrestrict 55u6ebpTlccKN9pVJG9o1YLo6NrCNExeu4y37sI2AT7myfTwSLuwdpvdoTXwecv +\unrestrict QTGi5nxLo3Aa0oXlMe9A0kkrglVSLfCkPF9kLB67Y1sKi3GydKiBtubo4uwKMeL diff --git a/pg-ddl/schema/public/version_manifests.sql b/pg-ddl/schema/public/version_manifests.sql index dba3faf7..c1cbb6b2 100644 --- a/pg-ddl/schema/public/version_manifests.sql +++ b/pg-ddl/schema/public/version_manifests.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 5u4fVDlAwn2Ca7CozjgElNFMqdFmhA8DyOXk2ndVEdedkCQbWAa4FfBuYsZfOW8 +\restrict ddWtpSJfdNPgxYmck8goqKbZspctMZuKfoBHOr0bvgdjyAMeRYXcWaY97MjUdFI -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -78,5 +78,5 @@ ALTER TABLE ONLY public.version_manifests -- PostgreSQL database dump complete -- -\unrestrict 5u4fVDlAwn2Ca7CozjgElNFMqdFmhA8DyOXk2ndVEdedkCQbWAa4FfBuYsZfOW8 +\unrestrict ddWtpSJfdNPgxYmck8goqKbZspctMZuKfoBHOr0bvgdjyAMeRYXcWaY97MjUdFI diff --git a/pg-ddl/schema/public/version_strings.sql b/pg-ddl/schema/public/version_strings.sql index 2e722d02..48e3bea1 100644 --- a/pg-ddl/schema/public/version_strings.sql +++ b/pg-ddl/schema/public/version_strings.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict 3MnskNDVyds1WZoBJvrC54fTDM0gH5uoWFpeJ01AbUg05iCsGPuda12bthw2HaW +\restrict YhYbKnM9DyZln11Uf9fUHn0SilKvrXtQIzSOtygIt1GRAcXswOuKL8jA8wXG4O5 -- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) -- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) @@ -106,5 +106,5 @@ CREATE INDEX version_strings_xml_path_trgm_idx ON public.version_strings USING g -- PostgreSQL database dump complete -- -\unrestrict 3MnskNDVyds1WZoBJvrC54fTDM0gH5uoWFpeJ01AbUg05iCsGPuda12bthw2HaW +\unrestrict YhYbKnM9DyZln11Uf9fUHn0SilKvrXtQIzSOtygIt1GRAcXswOuKL8jA8wXG4O5 From bc9db17cd941e62e0bb279ee00ff492ff01ecc05 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sat, 14 Feb 2026 12:53:10 +0800 Subject: [PATCH 74/81] new tables --- .../frontend/z_scores_top_apps__matview.sql | 126 ++++++++++++++++++ .../public/global_retention_benchmarks.sql | 58 ++++++++ 2 files changed, 184 insertions(+) create mode 100644 pg-ddl/schema/frontend/z_scores_top_apps__matview.sql create mode 100644 pg-ddl/schema/public/global_retention_benchmarks.sql diff --git a/pg-ddl/schema/frontend/z_scores_top_apps__matview.sql b/pg-ddl/schema/frontend/z_scores_top_apps__matview.sql new file mode 100644 index 00000000..7491bf26 --- /dev/null +++ b/pg-ddl/schema/frontend/z_scores_top_apps__matview.sql @@ -0,0 +1,126 @@ +-- +-- PostgreSQL database dump +-- + +\restrict IM5HO4aX6yUwJJcunxx3jPQI5JKCX0kL0e8TbJWnhf5UAwe61CR6VNiOqESrnkv + +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: z_scores_top_apps; Type: MATERIALIZED VIEW; Schema: frontend; Owner: postgres +-- + +CREATE MATERIALIZED VIEW frontend.z_scores_top_apps AS + WITH app_metrics AS ( + SELECT app_global_metrics_latest.store_app, + app_global_metrics_latest.rating, + app_global_metrics_latest.rating_count, + app_global_metrics_latest.installs + FROM public.app_global_metrics_latest + ), ranked_z_scores AS ( + SELECT saz.store_app, + saz.latest_week, + saz.installs_sum_1w, + saz.ratings_sum_1w, + saz.installs_avg_2w, + saz.ratings_avg_2w, + saz.installs_z_score_2w, + saz.ratings_z_score_2w, + sa.installs_sum_4w_est AS installs_sum_4w, + saz.ratings_sum_4w, + saz.installs_avg_4w, + saz.ratings_avg_4w, + saz.installs_z_score_4w, + saz.ratings_z_score_4w, + sa.id, + sa.developer_id, + sa.developer_name, + sa.name, + sa.store_id, + sa.store, + sa.category AS app_category, + sa.installs_est AS installs, + sa.free, + sa.store_last_updated, + sa.ad_supported, + sa.in_app_purchases, + sa.created_at, + sa.updated_at, + sa.crawl_result, + sa.release_date, + am.rating_count, + sa.icon_url_100, + row_number() OVER (PARTITION BY sa.store, sa.category, + CASE + WHEN (sa.store = 2) THEN 'rating'::text + ELSE 'installs'::text + END ORDER BY + CASE + WHEN (sa.store = 2) THEN saz.ratings_z_score_2w + WHEN (sa.store = 1) THEN saz.installs_z_score_2w + ELSE NULL::numeric + END DESC NULLS LAST) AS rn + FROM ((public.store_app_z_scores saz + LEFT JOIN frontend.store_apps_overview sa ON ((saz.store_app = sa.id))) + LEFT JOIN app_metrics am ON ((saz.store_app = am.store_app))) + WHERE (sa.store = ANY (ARRAY[1, 2])) + ) + SELECT store, + store_id, + name AS app_name, + developer_name, + app_category, + in_app_purchases, + ad_supported, + icon_url_100, + installs, + rating_count, + installs_sum_1w, + ratings_sum_1w, + installs_avg_2w, + ratings_avg_2w, + installs_z_score_2w, + ratings_z_score_2w, + installs_sum_4w, + ratings_sum_4w, + installs_avg_4w, + ratings_avg_4w, + installs_z_score_4w, + ratings_z_score_4w + FROM ranked_z_scores + WHERE (rn <= 100) + WITH NO DATA; + + +ALTER MATERIALIZED VIEW frontend.z_scores_top_apps OWNER TO postgres; + +-- +-- Name: frontend_z_scores_top_apps_unique; Type: INDEX; Schema: frontend; Owner: postgres +-- + +CREATE UNIQUE INDEX frontend_z_scores_top_apps_unique ON frontend.z_scores_top_apps USING btree (store, store_id); + + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict IM5HO4aX6yUwJJcunxx3jPQI5JKCX0kL0e8TbJWnhf5UAwe61CR6VNiOqESrnkv + diff --git a/pg-ddl/schema/public/global_retention_benchmarks.sql b/pg-ddl/schema/public/global_retention_benchmarks.sql new file mode 100644 index 00000000..da3af860 --- /dev/null +++ b/pg-ddl/schema/public/global_retention_benchmarks.sql @@ -0,0 +1,58 @@ +-- +-- PostgreSQL database dump +-- + +\restrict ZzbmOlxhPhLVUWDYI4sQ9mOAKsGLkJ3PEtJskHKE7wlaivPpClx0Cn2WGebJ9zH + +-- Dumped from database version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.1 (Ubuntu 18.1-1.pgdg24.04+2) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: global_retention_benchmarks; Type: TABLE; Schema: public; Owner: postgres +-- + +CREATE TABLE public.global_retention_benchmarks ( + store_id smallint NOT NULL, + app_category text NOT NULL, + d1 numeric(6,5) NOT NULL, + d7 numeric(6,5) NOT NULL, + d30 numeric(6,5) NOT NULL, + CONSTRAINT global_retention_benchmarks_d1_check CHECK (((d1 > (0)::numeric) AND (d1 <= (1)::numeric))), + CONSTRAINT global_retention_benchmarks_d30_check CHECK (((d30 > (0)::numeric) AND (d30 <= (1)::numeric))), + CONSTRAINT global_retention_benchmarks_d7_check CHECK (((d7 > (0)::numeric) AND (d7 <= (1)::numeric))), + CONSTRAINT retention_monotonic_check CHECK (((d1 >= d7) AND (d7 >= d30))) +); + + +ALTER TABLE public.global_retention_benchmarks OWNER TO postgres; + +-- +-- Name: global_retention_benchmarks global_retention_benchmarks_pk; Type: CONSTRAINT; Schema: public; Owner: postgres +-- + +ALTER TABLE ONLY public.global_retention_benchmarks + ADD CONSTRAINT global_retention_benchmarks_pk PRIMARY KEY (store_id, app_category); + + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict ZzbmOlxhPhLVUWDYI4sQ9mOAKsGLkJ3PEtJskHKE7wlaivPpClx0Cn2WGebJ9zH + From 7492a60c449d178d1bab0862386c006f80c11f64 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sat, 14 Feb 2026 12:54:59 +0800 Subject: [PATCH 75/81] Rename table --- ...l_retention_benchmarks.sql => retention_global_benchmarks.sql} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename pg-ddl/schema/public/{global_retention_benchmarks.sql => retention_global_benchmarks.sql} (100%) diff --git a/pg-ddl/schema/public/global_retention_benchmarks.sql b/pg-ddl/schema/public/retention_global_benchmarks.sql similarity index 100% rename from pg-ddl/schema/public/global_retention_benchmarks.sql rename to pg-ddl/schema/public/retention_global_benchmarks.sql From 1d92ca1810b8b6e196d592740f7ff24d264f6892 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sat, 14 Feb 2026 23:32:48 +0800 Subject: [PATCH 76/81] Calculate WAU --- adscrawler/app_stores/process_from_s3.py | 124 ++++++++++++++++++ adscrawler/dbcon/queries.py | 61 +++++++++ .../sql/query_apps_to_process_metrics.sql | 49 +++++++ 3 files changed, 234 insertions(+) create mode 100644 adscrawler/dbcon/sql/query_apps_to_process_metrics.sql diff --git a/adscrawler/app_stores/process_from_s3.py b/adscrawler/app_stores/process_from_s3.py index b623c23b..335e48f8 100644 --- a/adscrawler/app_stores/process_from_s3.py +++ b/adscrawler/app_stores/process_from_s3.py @@ -18,6 +18,8 @@ clean_app_ranks_weekly_table, delete_and_insert, get_ios_app_country_history, + get_retention_benchmarks, + query_apps_to_process_metrics, query_categories, query_collections, query_countries, @@ -805,3 +807,125 @@ def query_keywords_from_s3( """ duckdb_con = get_duckdb_connection(s3_config_key) return duckdb_con.execute(period_query).df() + + +def get_next_app_global_metrics_weekly( + database_connection: PostgresCon, batch_size: int = 5000 +) -> pd.DataFrame: + """Process app global metrics weekly.""" + logger.info(f"Querying app global metrics for weekly processing {batch_size=}") + df = query_apps_to_process_metrics(database_connection, batch_size=batch_size) + logger.info("Starting with {df.shape[0]} rows to process") + star_cols = ["one_star", "two_star", "three_star", "four_star", "five_star"] + metrics = ["installs", "rating", "review_count", "rating_count", *star_cols] + xaxis_col = "snapshot_date" + # Convert to date to datetime and sort by country and date, required + df[xaxis_col] = pd.to_datetime(df[xaxis_col]) + df = df.sort_values(["store_app", xaxis_col]) + df = ( + df.set_index(xaxis_col) + .groupby(["store_app", "store", "app_category"])[metrics] + .resample("W-MON") + .last() + .apply(pd.to_numeric, errors="coerce") + .interpolate(method="linear", limit_direction="forward") + .fillna(0) + .reset_index() + ) + df["installs_diff"] = df.groupby("store_app")["installs"].diff().fillna(0) + retention_benchmarks = get_retention_benchmarks(database_connection) + merged_df = df.merge(retention_benchmarks, on=["app_category", "store"], how="left") + merged_df["k"] = np.log( + merged_df["d30"].replace(0, np.nan) / merged_df["d7"].replace(0, np.nan) + ) / np.log(30.0 / 7.0) + cohorts = merged_df[ + ["store_app", "snapshot_date", "installs_diff", "d1", "d7", "k"] + ].copy() + logger.info("Starting historical merge, memory intensive step") + df_dau = cohorts.merge( + cohorts[["store_app", "snapshot_date", "installs_diff"]], + on="store_app", + suffixes=("", "_historical"), + ) + df_dau = df_dau[df_dau["snapshot_date"] >= df_dau["snapshot_date_historical"]] + df_dau["weeks_passed"] = ( + (df_dau["snapshot_date"] - df_dau["snapshot_date_historical"]).dt.days / 7 + ).astype(int) + wau_mult = 2.0 + df_dau["retention_rate"] = np.where( + df_dau["weeks_passed"] == 0, + 1.0, + ( + df_dau["d7"] + * wau_mult + * (df_dau["weeks_passed"].replace(0, 1) ** df_dau["k"]) + ).clip(upper=1.0), + ) + # df_dau['retention_rate'] = df_dau.apply(calculate_wau_retention, axis=1) + df_dau["surviving_users"] = ( + df_dau["installs_diff_historical"] * df_dau["retention_rate"] + ) + dau_df = ( + df_dau.groupby(["store_app", "snapshot_date"])["surviving_users"] + .sum() + .reset_index() + ) + dau_df.rename(columns={"surviving_users": "wau"}, inplace=True) + cols = ["store_app", "snapshot_date", "installs_diff"] + metrics + df = pd.merge( + df[cols], dau_df, on=["store_app", "snapshot_date"], how="left", validate="1:1" + ) + logger.info("Finished calculating WAU") + df["weekly_ratings"] = ( + df.groupby("store_app")["rating_count"].diff().fillna(df["rating_count"]) + ) + df["weekly_reviews"] = ( + df.groupby("store_app")["review_count"].diff().fillna(df["review_count"]) + ) + rename_map = { + "snapshot_date": "week_start", + "installs_diff": "weekly_installs", + "wau": "weekly_active_users", + "installs": "total_installs", + "rating_count": "total_ratings_count", + } + df = df.rename(columns=rename_map) + df["weekly_iap_revenue"] = 0.0 + df["weekly_ad_revenue"] = 0.0 + final_cols = [ + "store_app", + "week_start", + "weekly_installs", + "weekly_ratings", + "weekly_reviews", + "weekly_active_users", + "weekly_iap_revenue", + "weekly_ad_revenue", + "total_installs", + "total_ratings_count", + "rating", + "one_star", + "two_star", + "three_star", + "four_star", + "five_star", + ] + df = df[final_cols] + return df + + +def import_all_app_global_metrics_weekly(database_connection: PostgresCon) -> None: + i = 0 + while True: + logger.info(f"Processing batch {i} of app global metrics weekly") + df = get_next_app_global_metrics_weekly(database_connection, batch_size=5000) + if df.empty: + break + upsert_df( + df=df, + table_name="app_global_metrics_weekly", + database_connection=database_connection, + key_columns=["store_app", "week_start"], + insert_columns=df.columns.tolist(), + ) + i += 1 diff --git a/adscrawler/dbcon/queries.py b/adscrawler/dbcon/queries.py index 75c5bc6a..ac6a1f03 100644 --- a/adscrawler/dbcon/queries.py +++ b/adscrawler/dbcon/queries.py @@ -34,6 +34,7 @@ def load_sql_file(file_name: str) -> TextClause: QUERY_APPS_MITM_IN_S3 = load_sql_file("query_apps_mitm_in_s3.sql") QUERY_ZSCORES = load_sql_file("query_simplified_store_app_z_scores.sql") QUERY_APPS_TO_PROCESS_KEYWORDS = load_sql_file("query_apps_to_process_keywords.sql") +QUERY_APPS_TO_PROCESS_METRICS = load_sql_file("query_apps_to_process_metrics.sql") def insert_df( @@ -1202,6 +1203,18 @@ def query_apps_to_process_keywords( return df +def query_apps_to_process_metrics( + database_connection: PostgresCon, batch_size: int = 10000 +) -> pd.DataFrame: + """Query apps to process metrics.""" + df = pd.read_sql( + QUERY_APPS_TO_PROCESS_METRICS, + con=database_connection.engine, + params={"batch_size": batch_size}, + ) + return df + + def query_apps_mitm_in_s3(database_connection: PostgresCon) -> pd.DataFrame: df = pd.read_sql( QUERY_APPS_MITM_IN_S3, @@ -1508,3 +1521,51 @@ def get_ios_app_country_history( """ df = pd.read_sql(sel_query, con=database_connection.engine) return df + + +def get_retention_benchmarks(database_connection: PostgresCon) -> pd.DataFrame: + sel_query = """WITH + retention_benchmarks AS ( + SELECT + mac.store, + mac.category AS app_category, + -- Retention D1 Logic + COALESCE(rgb.d1, + CASE + WHEN mac.category LIKE 'game%%' THEN (SELECT d1 FROM retention_global_benchmarks WHERE app_category = 'games' LIMIT 1) + ELSE (SELECT d1 FROM retention_global_benchmarks WHERE app_category = 'apps' LIMIT 1) + END + ) AS d1, + -- Retention D7 Logic + COALESCE(rgb.d7, + CASE + WHEN mac.category LIKE 'game%%' THEN (SELECT d7 FROM retention_global_benchmarks WHERE app_category = 'games' LIMIT 1) + ELSE (SELECT d7 FROM retention_global_benchmarks WHERE app_category = 'apps' LIMIT 1) + END + ) AS d7, + -- Retention D30 Logic + COALESCE(rgb.d30, + CASE + WHEN mac.category LIKE 'game%%' THEN (SELECT d30 FROM retention_global_benchmarks WHERE app_category = 'games' LIMIT 1) + ELSE (SELECT d30 FROM retention_global_benchmarks WHERE app_category = 'apps' LIMIT 1) + END + ) AS d30 + FROM + mv_app_categories mac + LEFT JOIN retention_global_benchmarks rgb + ON + mac.category = rgb.app_category + AND mac.store = rgb.store + ) + SELECT + store, + app_category, + d1, + d7, + d30 + FROM + retention_benchmarks + ; + """ + df = pd.read_sql(sel_query, con=database_connection.engine) + return df diff --git a/adscrawler/dbcon/sql/query_apps_to_process_metrics.sql b/adscrawler/dbcon/sql/query_apps_to_process_metrics.sql new file mode 100644 index 00000000..b8b8bda5 --- /dev/null +++ b/adscrawler/dbcon/sql/query_apps_to_process_metrics.sql @@ -0,0 +1,49 @@ +WITH already_processed AS ( + SELECT lg.store_app + FROM + logging.app_global_metrics_weekly AS lg + WHERE + lg.updated_at > ( + current_date - INTERVAL '3 days' + ) +), +candidate_apps AS ( + SELECT + sa.store, + sa.id AS store_app, + sa.category AS app_category + FROM + frontend.store_apps_overview AS sa + WHERE + ( + sa.crawl_result = 1 + OR sa.store_last_updated >= current_date - INTERVAL '365 days' + ) + AND sa.id NOT IN ( + SELECT ap.store_app + FROM + already_processed AS ap + ) + LIMIT :batch_size +) +SELECT + agmh.snapshot_date, + ca.store, + agmh.store_app, + ca.app_category, + agmh.installs, + agmh.rating_count, + agmh.review_count, + agmh.rating, + agmh.one_star, + agmh.two_star, + agmh.three_star, + agmh.four_star, + agmh.five_star +FROM + app_global_metrics_history AS agmh +INNER JOIN candidate_apps AS ca + ON + agmh.store_app = ca.store_app +WHERE + agmh.snapshot_date >= current_date - INTERVAL '400 days'; From 6f485fa9601c43467db377044c4faa5aacb34b12 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sun, 15 Feb 2026 00:16:30 +0800 Subject: [PATCH 77/81] include mau and logging --- adscrawler/app_stores/process_from_s3.py | 68 +++++++++++++++--------- 1 file changed, 44 insertions(+), 24 deletions(-) diff --git a/adscrawler/app_stores/process_from_s3.py b/adscrawler/app_stores/process_from_s3.py index 335e48f8..e9bc5b55 100644 --- a/adscrawler/app_stores/process_from_s3.py +++ b/adscrawler/app_stores/process_from_s3.py @@ -810,12 +810,9 @@ def query_keywords_from_s3( def get_next_app_global_metrics_weekly( - database_connection: PostgresCon, batch_size: int = 5000 + database_connection: PostgresCon, df: pd.DataFrame ) -> pd.DataFrame: """Process app global metrics weekly.""" - logger.info(f"Querying app global metrics for weekly processing {batch_size=}") - df = query_apps_to_process_metrics(database_connection, batch_size=batch_size) - logger.info("Starting with {df.shape[0]} rows to process") star_cols = ["one_star", "two_star", "three_star", "four_star", "five_star"] metrics = ["installs", "rating", "review_count", "rating_count", *star_cols] xaxis_col = "snapshot_date" @@ -833,6 +830,9 @@ def get_next_app_global_metrics_weekly( .reset_index() ) df["installs_diff"] = df.groupby("store_app")["installs"].diff().fillna(0) + df["installs_diff"] = ( + df.groupby("store_app")["installs"].diff().fillna(df["installs"]).fillna(0) + ) retention_benchmarks = get_retention_benchmarks(database_connection) merged_df = df.merge(retention_benchmarks, on=["app_category", "store"], how="left") merged_df["k"] = np.log( @@ -841,39 +841,46 @@ def get_next_app_global_metrics_weekly( cohorts = merged_df[ ["store_app", "snapshot_date", "installs_diff", "d1", "d7", "k"] ].copy() - logger.info("Starting historical merge, memory intensive step") - df_dau = cohorts.merge( + logger.info("Historical merge, memory intensive step") + ddf = cohorts.merge( cohorts[["store_app", "snapshot_date", "installs_diff"]], on="store_app", suffixes=("", "_historical"), ) - df_dau = df_dau[df_dau["snapshot_date"] >= df_dau["snapshot_date_historical"]] - df_dau["weeks_passed"] = ( - (df_dau["snapshot_date"] - df_dau["snapshot_date_historical"]).dt.days / 7 + ddf = ddf[ddf["snapshot_date"] >= ddf["snapshot_date_historical"]] + ddf["weeks_passed"] = ( + (ddf["snapshot_date"] - ddf["snapshot_date_historical"]).dt.days / 7 ).astype(int) wau_mult = 2.0 - df_dau["retention_rate"] = np.where( - df_dau["weeks_passed"] == 0, + ddf["retention_rate"] = np.where( + ddf["weeks_passed"] == 0, 1.0, - ( - df_dau["d7"] - * wau_mult - * (df_dau["weeks_passed"].replace(0, 1) ** df_dau["k"]) - ).clip(upper=1.0), + (ddf["d7"] * wau_mult * (ddf["weeks_passed"].replace(0, 1) ** ddf["k"])).clip( + upper=1.0 + ), ) - # df_dau['retention_rate'] = df_dau.apply(calculate_wau_retention, axis=1) - df_dau["surviving_users"] = ( - df_dau["installs_diff_historical"] * df_dau["retention_rate"] + ddf["surviving_users"] = ddf["installs_diff_historical"] * ddf["retention_rate"] + mau_mult = 3.5 # Standard estimate for Monthly Reach + # Calculate MAU Retention Rate + ddf["retention_rate_mau"] = np.where( + ddf["weeks_passed"] == 0, + 1.0, + (ddf["d7"] * mau_mult * (ddf["weeks_passed"].replace(0, 1) ** ddf["k"])).clip( + upper=1.0 + ), ) - dau_df = ( - df_dau.groupby(["store_app", "snapshot_date"])["surviving_users"] + ddf["surviving_mau"] = ddf["installs_diff_historical"] * ddf["retention_rate_mau"] + ddf = ( + ddf.groupby(["store_app", "snapshot_date"])[ + ["surviving_users", "surviving_mau"] + ] .sum() .reset_index() ) - dau_df.rename(columns={"surviving_users": "wau"}, inplace=True) + ddf.rename(columns={"surviving_users": "wau", "surviving_mau": "mau"}, inplace=True) cols = ["store_app", "snapshot_date", "installs_diff"] + metrics df = pd.merge( - df[cols], dau_df, on=["store_app", "snapshot_date"], how="left", validate="1:1" + df[cols], ddf, on=["store_app", "snapshot_date"], how="left", validate="1:1" ) logger.info("Finished calculating WAU") df["weekly_ratings"] = ( @@ -886,6 +893,7 @@ def get_next_app_global_metrics_weekly( "snapshot_date": "week_start", "installs_diff": "weekly_installs", "wau": "weekly_active_users", + "mau": "monthly_active_users", "installs": "total_installs", "rating_count": "total_ratings_count", } @@ -899,6 +907,7 @@ def get_next_app_global_metrics_weekly( "weekly_ratings", "weekly_reviews", "weekly_active_users", + "monthly_active_users", "weekly_iap_revenue", "weekly_ad_revenue", "total_installs", @@ -918,7 +927,9 @@ def import_all_app_global_metrics_weekly(database_connection: PostgresCon) -> No i = 0 while True: logger.info(f"Processing batch {i} of app global metrics weekly") - df = get_next_app_global_metrics_weekly(database_connection, batch_size=5000) + df = query_apps_to_process_metrics(database_connection, batch_size=5000) + apps = df["store_app"].tolist() + df = get_next_app_global_metrics_weekly(database_connection, df) if df.empty: break upsert_df( @@ -928,4 +939,13 @@ def import_all_app_global_metrics_weekly(database_connection: PostgresCon) -> No key_columns=["store_app", "week_start"], insert_columns=df.columns.tolist(), ) + log_df = pd.DataFrame({"store_app": apps}) + log_df["updated_at"] = datetime.datetime.now() + log_df.to_sql( + name="app_global_metrics_weekly", + con=database_connection.engine, + schema="logging", + if_exists="append", + index=False, + ) i += 1 From b8b5d7f294d9aa519c6e403ff83d5620b46f7d98 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sun, 15 Feb 2026 00:40:39 +0800 Subject: [PATCH 78/81] Add spot for it to run daily --- adscrawler/app_stores/process_from_s3.py | 1 + 1 file changed, 1 insertion(+) diff --git a/adscrawler/app_stores/process_from_s3.py b/adscrawler/app_stores/process_from_s3.py index e9bc5b55..25e20703 100644 --- a/adscrawler/app_stores/process_from_s3.py +++ b/adscrawler/app_stores/process_from_s3.py @@ -319,6 +319,7 @@ def import_app_metrics_from_s3( logger.error( f"Error processing S3 app metrics for {snapshot_date} {store}: {e}" ) + import_all_app_global_metrics_weekly(database_connection) def process_app_metrics_to_db( From ae96f1f222a4d7e3cae3bb45bee5a4d5bf0866f4 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Sun, 15 Feb 2026 13:51:18 +0800 Subject: [PATCH 79/81] speed up query --- adscrawler/app_stores/process_from_s3.py | 2 +- .../sql/query_apps_to_process_metrics.sql | 37 ++++++++----------- 2 files changed, 16 insertions(+), 23 deletions(-) diff --git a/adscrawler/app_stores/process_from_s3.py b/adscrawler/app_stores/process_from_s3.py index 25e20703..91213b67 100644 --- a/adscrawler/app_stores/process_from_s3.py +++ b/adscrawler/app_stores/process_from_s3.py @@ -927,7 +927,7 @@ def get_next_app_global_metrics_weekly( def import_all_app_global_metrics_weekly(database_connection: PostgresCon) -> None: i = 0 while True: - logger.info(f"Processing batch {i} of app global metrics weekly") + logger.info(f"batch {i} of app global metrics weekly start") df = query_apps_to_process_metrics(database_connection, batch_size=5000) apps = df["store_app"].tolist() df = get_next_app_global_metrics_weekly(database_connection, df) diff --git a/adscrawler/dbcon/sql/query_apps_to_process_metrics.sql b/adscrawler/dbcon/sql/query_apps_to_process_metrics.sql index b8b8bda5..c6797496 100644 --- a/adscrawler/dbcon/sql/query_apps_to_process_metrics.sql +++ b/adscrawler/dbcon/sql/query_apps_to_process_metrics.sql @@ -1,13 +1,4 @@ -WITH already_processed AS ( - SELECT lg.store_app - FROM - logging.app_global_metrics_weekly AS lg - WHERE - lg.updated_at > ( - current_date - INTERVAL '3 days' - ) -), -candidate_apps AS ( +WITH candidate_apps AS ( SELECT sa.store, sa.id AS store_app, @@ -19,12 +10,8 @@ candidate_apps AS ( sa.crawl_result = 1 OR sa.store_last_updated >= current_date - INTERVAL '365 days' ) - AND sa.id NOT IN ( - SELECT ap.store_app - FROM - already_processed AS ap - ) - LIMIT :batch_size + ORDER BY sa.id -- helps predictable batching + LIMIT :batch_size * 5 ) SELECT agmh.snapshot_date, @@ -40,10 +27,16 @@ SELECT agmh.three_star, agmh.four_star, agmh.five_star -FROM - app_global_metrics_history AS agmh -INNER JOIN candidate_apps AS ca - ON - agmh.store_app = ca.store_app +FROM candidate_apps AS ca +INNER JOIN app_global_metrics_history AS agmh + ON ca.store_app = agmh.store_app WHERE - agmh.snapshot_date >= current_date - INTERVAL '400 days'; + agmh.snapshot_date >= current_date - INTERVAL '400 days' + AND NOT EXISTS ( + SELECT 1 + FROM logging.app_global_metrics_weekly AS lg + WHERE + lg.store_app = ca.store_app + AND lg.updated_at > current_date - INTERVAL '3 days' + ) +LIMIT :batch_size; From 78178b612dd6033093e32c73fd3d29df926bdfe8 Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Tue, 17 Feb 2026 12:03:25 +0800 Subject: [PATCH 80/81] Add WIP estimate for installs per country based on ratings / reviews per country --- adscrawler/app_stores/process_from_s3.py | 169 ++++++++++++++++++----- adscrawler/dbcon/queries.py | 138 +++++++++++++----- 2 files changed, 236 insertions(+), 71 deletions(-) diff --git a/adscrawler/app_stores/process_from_s3.py b/adscrawler/app_stores/process_from_s3.py index 91213b67..cb9543bd 100644 --- a/adscrawler/app_stores/process_from_s3.py +++ b/adscrawler/app_stores/process_from_s3.py @@ -17,9 +17,9 @@ from adscrawler.dbcon.queries import ( clean_app_ranks_weekly_table, delete_and_insert, - get_ios_app_country_history, + get_latest_app_country_history, get_retention_benchmarks, - query_apps_to_process_metrics, + query_apps_to_process_global_metrics, query_categories, query_collections, query_countries, @@ -60,9 +60,13 @@ "store_app", ] -COUNTRY_HISTORY_COLS = COUNTRY_HISTORY_KEYS + METRIC_COLS +COUNTRY_HISTORY_COLS = COUNTRY_HISTORY_KEYS + [ + x for x in METRIC_COLS if x != "installs" +] -GLOBAL_HISTORY_COLS = GLOBAL_HISTORY_KEYS + METRIC_COLS + ["store_last_updated"] +GLOBAL_HISTORY_COLS = ( + GLOBAL_HISTORY_KEYS + METRIC_COLS + ["installs_est", "store_last_updated"] +) def raw_keywords_to_s3( @@ -243,9 +247,30 @@ def make_s3_app_country_metrics_history( duckdb_con.close() +def estimate_ios_installs(df): + # For iOS we don't have installs, but we can estimate them using the review count and a conversion rate + # This is a very rough estimate and should be replaced with actual install data if possible + conversion_rate = 0.02 + df["installs_est"] = (df["rating_count"] / conversion_rate).fillna(0).astype(int) + return df + + def prep_app_metrics_history( - df: pd.DataFrame, store: int, database_connection: PostgresCon + df: pd.DataFrame, + store: int, + database_connection: PostgresCon, + snapshot_date: datetime.date, ) -> pd.DataFrame: + store_id_map = query_store_id_map_cached( + store=store, database_connection=database_connection + ) + new_ids = df[~df["store_id"].isin(store_id_map["store_id"])]["store_id"].unique() + if len(new_ids) > 0: + logger.warning(f"Found new store ids: {len(new_ids)}") + raise ValueError("New store ids found in S3 app history data") + df["store_app"] = df["store_id"].map( + store_id_map.set_index("store_id")["id"].to_dict() + ) if store == 1: df["store_last_updated"] = np.where( (df["store_last_updated"] < 0) | (df["store_last_updated"].isna()), @@ -256,6 +281,59 @@ def prep_app_metrics_history( df.loc[df["store_last_updated"].notna(), "store_last_updated"], unit="s", ) + google_app_country_history = get_latest_app_country_history( + database_connection, + snapshot_date=snapshot_date, + days_back=90, + chunk_size=5000, + store_app_ids=df["store_app"].unique(), + ) + # If data is being rerun, prefer 'newer' data from S3 + df["crawled_date"] = df["crawled_date"] + pd.Timedelta(seconds=1) + cdf = pd.concat([df, google_app_country_history], axis=0) + cdf = cdf.sort_values(by=["crawled_date"], ascending=True).drop_duplicates( + subset=["store_app", "country_id"], keep="last" + ) + cdf["review_count"] = pd.to_numeric( + cdf["review_count"], errors="coerce" + ).fillna(0) + cdf["installs"] = pd.to_numeric(cdf["installs"], errors="coerce").fillna(0) + # 1. Find the maximum review_count for each app + cdf["max_reviews"] = cdf.groupby("store_app")["review_count"].transform("max") + cdf["max_installs"] = cdf.groupby("store_app")["installs"].transform("max") + # 2. Flag as global if it's within a 1% threshold of the max + cdf["is_global_fallback"] = ( + cdf["review_count"] >= cdf["max_reviews"] * 0.99 + ) & (cdf["max_reviews"] > 200) + cdf["true_global_count"] = np.where( + cdf["is_global_fallback"], cdf["max_reviews"], None + ) + cdf["true_global_count"] = cdf.groupby("store_app")[ + "true_global_count" + ].transform("max") + # Remove review_count where it's just the global_fallback + cdf["review_count"] = np.where( + cdf["is_global_fallback"], 0, cdf["review_count"] + ) + # Calculate local share only for unique, non-fallback rows + # Use .replace(0, np.nan) to handle divide-by-zero safely + cdf["pct_of_global"] = ( + cdf["review_count"] / cdf["true_global_count"].replace(0, np.nan) + ).fillna(0) + cdf["installs_est"] = ( + (cdf["installs"] * cdf["pct_of_global"]).round().astype(int) + ) + df = pd.merge( + df, + cdf[["store_app", "country_id", "review_count", "installs_est"]], + on=["store_app", "country_id"], + how="left", + suffixes=("", "_y"), + validate="1:1", + ) + df = df.drop(columns=["review_count"]).rename( + columns={"review_count_y": "review_count"} + ) if store == 2: ratings_str = ( df["user_ratings"] @@ -268,20 +346,21 @@ def prep_app_metrics_history( df["store_last_updated"] = pd.to_datetime( df["store_last_updated"], format="ISO8601", utc=True ) - store_id_map = query_store_id_map_cached( - store=store, database_connection=database_connection - ) + df = estimate_ios_installs(df) + country_map = query_countries(database_connection) - df["country_id"] = df["country"].map( - country_map.set_index("alpha2")["id"].to_dict() - ) - new_ids = df[~df["store_id"].isin(store_id_map["store_id"])]["store_id"].unique() - if len(new_ids) > 0: - logger.warning(f"Found new store ids: {len(new_ids)}") - raise ValueError("New store ids found in S3 app history data") - df["store_app"] = df["store_id"].map( - store_id_map.set_index("store_id")["id"].to_dict() + df = pd.merge( + df, + country_map[["id", "alpha2", "tier"]].rename( + columns={"id": "country_id", "alpha2": "country"} + ), + on="country", + how="left", + validate="m:1", ) + # df["country_id"] = df["country"].map( + # country_map.set_index("alpha2")["id"].to_dict() + # ) df = df.convert_dtypes(dtype_backend="pyarrow") df = df.replace({pd.NA: None}) return df @@ -350,7 +429,10 @@ def process_app_metrics_to_db( ) logger.info(f"date={snapshot_date}, store={store} agg df prep") df = prep_app_metrics_history( - df=df, store=store, database_connection=database_connection + df=df, + store=store, + database_connection=database_connection, + snapshot_date=snapshot_date, ) if not df[df["store_id"].isna()].empty: # Why are there many records with missing store_id? @@ -361,11 +443,6 @@ def process_app_metrics_to_db( key_columns=COUNTRY_HISTORY_KEYS, ) insert_columns = [x for x in COUNTRY_HISTORY_COLS if x in df.columns] - if store == 1: - # TODO: Can get installs per Country by getting review_count sum for all countries - # Cannot do with this data set since it is snapshot_date only - # and not every app for every country crawled on this date - insert_columns = [x for x in insert_columns if x != "installs"] logger.info(f"date={snapshot_date}, store={store} agg df country upsert") upsert_df( df=df, @@ -375,24 +452,38 @@ def process_app_metrics_to_db( insert_columns=insert_columns, ) if store == 1: + tier_distribution = df.groupby(["store_app", "tier"])[ + "installs_est" + ].sum() / df.groupby("store_app")["installs_est"].transform("sum") df = df[df["country"] == "US"] + df[STAR_COLS] = df["histogram"].apply(pd.Series) + if store == 2: - ios_app_country_history = get_ios_app_country_history( - database_connection, snapshot_date=snapshot_date, days_back=90 - ) - ios_app_country_history = ios_app_country_history[ - ios_app_country_history["store_app"].isin(df["store_app"]) - ] - ios_app_country_history["crawled_date"] = pd.to_datetime( - ios_app_country_history["snapshot_date"] + ios_app_country_history = get_latest_app_country_history( + database_connection, + snapshot_date=snapshot_date, + days_back=90, + chunk_size=5000, + store_app_ids=df["store_app"].unique(), ) + # Should overwrite existing values if there, but could be removed when all rerun + ios_app_country_history = estimate_ios_installs(ios_app_country_history) + # For the group by this will need to be the snapshot_date being calculated for ios_app_country_history["snapshot_date"] = pd.to_datetime(snapshot_date) df = pd.concat([ios_app_country_history, df], axis=0) df = df.sort_values(by=["crawled_date"], ascending=True).drop_duplicates( subset=["store_app", "country_id"], keep="last" ) + countries_map = query_countries(database_connection) + df = df.merge( + countries_map[["id", "tier"]], + left_on="country_id", + right_on="id", + how="left", + validate="m:1", + ) weighted_sum = ( (df["rating"] * df["rating_count"]) .groupby([df[k] for k in GLOBAL_HISTORY_KEYS]) @@ -401,6 +492,7 @@ def process_app_metrics_to_db( weight_total = ( df["rating_count"].groupby([df[k] for k in GLOBAL_HISTORY_KEYS]).sum() ) + df = df.groupby(GLOBAL_HISTORY_KEYS).agg( rating_count=("rating_count", "sum"), store_last_updated=("store_last_updated", "max"), @@ -408,7 +500,18 @@ def process_app_metrics_to_db( ) df["rating"] = weighted_sum / weight_total df["rating"] = df["rating"].astype("float64") - df = df.reset_index() + tier_installs = df.pivot_table( + index=GLOBAL_HISTORY_KEYS, + columns="tier", + values="installs", + aggfunc="sum", + fill_value=0, + ) + tier_pct = tier_installs.div(tier_installs.sum(axis=1), axis=0) + tier_pct = tier_pct.add_suffix("_pct") + tier_pct = tier_pct.fillna(0) + df = df.join(tier_pct) + df = df.reset_index() check_for_duplicates( df=df, @@ -928,7 +1031,7 @@ def import_all_app_global_metrics_weekly(database_connection: PostgresCon) -> No i = 0 while True: logger.info(f"batch {i} of app global metrics weekly start") - df = query_apps_to_process_metrics(database_connection, batch_size=5000) + df = query_apps_to_process_global_metrics(database_connection, batch_size=5000) apps = df["store_app"].tolist() df = get_next_app_global_metrics_weekly(database_connection, df) if df.empty: diff --git a/adscrawler/dbcon/queries.py b/adscrawler/dbcon/queries.py index ac6a1f03..5164ca92 100644 --- a/adscrawler/dbcon/queries.py +++ b/adscrawler/dbcon/queries.py @@ -387,9 +387,11 @@ def upsert_df( if return_rows: if len(key_columns) == 1 and key_columns[0] in (md5_key_columns or []): md5_values = [ - hashlib.md5(v.encode("utf-8")).hexdigest() - if v is not None - else None + ( + hashlib.md5(v.encode("utf-8")).hexdigest() + if v is not None + else None + ) for v in df[key_columns[0]].tolist() ] where_values = (md5_values,) @@ -797,9 +799,10 @@ def query_categories(database_connection: PostgresCon) -> pd.DataFrame: @lru_cache(maxsize=1) def query_countries(database_connection: PostgresCon) -> pd.DataFrame: sel_query = """SELECT - * + c.*, t.tier_slug as tier FROM - countries + countries c + LEFT JOIN public.tiers t on c.tier_id = t.id ; """ df = pd.read_sql(sel_query, database_connection.engine) @@ -1203,7 +1206,7 @@ def query_apps_to_process_keywords( return df -def query_apps_to_process_metrics( +def query_apps_to_process_global_metrics( database_connection: PostgresCon, batch_size: int = 10000 ) -> pd.DataFrame: """Query apps to process metrics.""" @@ -1482,47 +1485,106 @@ def get_all_mmp_tlds(database_connection: PostgresCon) -> pd.DataFrame: return df -def get_ios_app_country_history( - database_connection: PostgresCon, snapshot_date: datetime.date, days_back: int +import pandas as pd + + +def get_latest_app_country_history( + database_connection: PostgresCon, + snapshot_date: datetime.date, + store_app_ids: list, # The 200k IDs from your DuckDB/S3 query + days_back: int = 30, + chunk_size: int = 5000, ) -> pd.DataFrame: start_date = (snapshot_date - datetime.timedelta(days=days_back)).strftime( "%Y-%m-%d" ) end_date = snapshot_date.strftime("%Y-%m-%d") - sel_query = f"""SELECT - DISTINCT ON - ( - store_app, - country_id - ) - acmh.store_app, - acmh.snapshot_date, - acmh.country_id, - review_count, - rating, - rating_count, - one_star, - two_star, - three_star, - four_star, - five_star - FROM - app_country_metrics_history acmh - LEFT JOIN store_apps sa ON - acmh.store_app = sa.id - WHERE - snapshot_date >= '{start_date}' - AND snapshot_date <= '{end_date}' - AND sa.store = 2 - ORDER BY - store_app, - country_id, - snapshot_date DESC + chunks = [ + store_app_ids[i : i + chunk_size] + for i in range(0, len(store_app_ids), chunk_size) + ] + results = [] + print(f"Processing {len(store_app_ids)} apps in {len(chunks)} chunks...") + for i, chunk_ids in enumerate(chunks): + id_list_str = ",".join(map(str, chunk_ids)) + sel_query = f""" + SELECT DISTINCT ON (acmh.store_app, acmh.country_id) + acmh.store_app, + acmh.snapshot_date, + acmh.country_id, + review_count, + rating, + rating_count, + one_star, + two_star, + three_star, + four_star, + five_star + FROM app_country_metrics_history acmh + WHERE acmh.store_app IN ({id_list_str}) + AND acmh.snapshot_date >= '{start_date}' + AND acmh.snapshot_date <= '{end_date}' + ORDER BY + store_app, + country_id, + snapshot_date DESC """ - df = pd.read_sql(sel_query, con=database_connection.engine) + # Pull chunk and append to results list + chunk_df = pd.read_sql(sel_query, con=database_connection.engine) + results.append(chunk_df) + if (i + 1) % 5 == 0: + print(f"Finished chunk {i + 1}/{len(chunks)}...") + if not results: + return pd.DataFrame() + df = pd.concat(results, ignore_index=True) + df["crawled_date"] = pd.to_datetime(df["snapshot_date"]) return df +# def get_latest_app_country_history( +# store: int, +# database_connection: PostgresCon, +# snapshot_date: datetime.date, +# days_back: int, +# ) -> pd.DataFrame: +# start_date = (snapshot_date - datetime.timedelta(days=days_back)).strftime( +# "%Y-%m-%d" +# ) +# end_date = snapshot_date.strftime("%Y-%m-%d") +# sel_query = f"""SELECT +# DISTINCT ON +# ( +# store_app, +# country_id +# ) +# acmh.store_app, +# acmh.snapshot_date, +# acmh.country_id, +# review_count, +# rating, +# rating_count, +# one_star, +# two_star, +# three_star, +# four_star, +# five_star +# FROM +# app_country_metrics_history acmh +# LEFT JOIN store_apps sa ON +# acmh.store_app = sa.id +# WHERE +# snapshot_date >= '{start_date}' +# AND snapshot_date <= '{end_date}' +# AND sa.store = {store} +# ORDER BY +# store_app, +# country_id, +# snapshot_date DESC +# """ +# df = pd.read_sql(sel_query, con=database_connection.engine) +# return df + + def get_retention_benchmarks(database_connection: PostgresCon) -> pd.DataFrame: sel_query = """WITH retention_benchmarks AS ( From 42bca0656f2e5b94df9017d85ad600cc184aa03e Mon Sep 17 00:00:00 2001 From: James O'Claire Date: Tue, 17 Feb 2026 17:34:34 +0800 Subject: [PATCH 81/81] Estimate tier percentages based on installs --- adscrawler/app_stores/process_from_s3.py | 122 ++++++++++++----------- adscrawler/dbcon/queries.py | 4 +- 2 files changed, 68 insertions(+), 58 deletions(-) diff --git a/adscrawler/app_stores/process_from_s3.py b/adscrawler/app_stores/process_from_s3.py index cb9543bd..4c74d542 100644 --- a/adscrawler/app_stores/process_from_s3.py +++ b/adscrawler/app_stores/process_from_s3.py @@ -60,12 +60,16 @@ "store_app", ] -COUNTRY_HISTORY_COLS = COUNTRY_HISTORY_KEYS + [ - x for x in METRIC_COLS if x != "installs" -] +COUNTRY_HISTORY_COLS = ( + COUNTRY_HISTORY_KEYS + + [x for x in METRIC_COLS if x != "installs"] + + ["installs_est"] +) GLOBAL_HISTORY_COLS = ( - GLOBAL_HISTORY_KEYS + METRIC_COLS + ["installs_est", "store_last_updated"] + GLOBAL_HISTORY_KEYS + + METRIC_COLS + + ["store_last_updated", "tier1_pct", "tier2_pct", "tier3_pct"] ) @@ -264,16 +268,29 @@ def prep_app_metrics_history( store_id_map = query_store_id_map_cached( store=store, database_connection=database_connection ) - new_ids = df[~df["store_id"].isin(store_id_map["store_id"])]["store_id"].unique() - if len(new_ids) > 0: - logger.warning(f"Found new store ids: {len(new_ids)}") + df = pd.merge( + df, + store_id_map[["store_id", "id"]].rename(columns={"id": "store_app"}), + on="store_id", + how="left", + validate="m:1", + ) + if df["store_app"].isna().any(): + logger.warning(f"Found new store ids: {len(df[df['store_app'].isna()])}") raise ValueError("New store ids found in S3 app history data") - df["store_app"] = df["store_id"].map( - store_id_map.set_index("store_id")["id"].to_dict() + country_map = query_countries(database_connection) + df = pd.merge( + df, + country_map[["id", "alpha2", "tier"]].rename( + columns={"id": "country_id", "alpha2": "country"} + ), + on="country", + how="left", + validate="m:1", ) if store == 1: df["store_last_updated"] = np.where( - (df["store_last_updated"] < 0) | (df["store_last_updated"].isna()), + (df["store_last_updated"].isna() | df["store_last_updated"] < 0), None, df["store_last_updated"], ) @@ -284,7 +301,7 @@ def prep_app_metrics_history( google_app_country_history = get_latest_app_country_history( database_connection, snapshot_date=snapshot_date, - days_back=90, + days_back=180, chunk_size=5000, store_app_ids=df["store_app"].unique(), ) @@ -347,20 +364,6 @@ def prep_app_metrics_history( df["store_last_updated"], format="ISO8601", utc=True ) df = estimate_ios_installs(df) - - country_map = query_countries(database_connection) - df = pd.merge( - df, - country_map[["id", "alpha2", "tier"]].rename( - columns={"id": "country_id", "alpha2": "country"} - ), - on="country", - how="left", - validate="m:1", - ) - # df["country_id"] = df["country"].map( - # country_map.set_index("alpha2")["id"].to_dict() - # ) df = df.convert_dtypes(dtype_backend="pyarrow") df = df.replace({pd.NA: None}) return df @@ -435,7 +438,7 @@ def process_app_metrics_to_db( snapshot_date=snapshot_date, ) if not df[df["store_id"].isna()].empty: - # Why are there many records with missing store_id? + # Why are there any records with missing store_id? logger.warning("Found records with missing store_id") raise ValueError("Records with missing store_id found in S3 app history data") check_for_duplicates( @@ -451,25 +454,35 @@ def process_app_metrics_to_db( key_columns=COUNTRY_HISTORY_KEYS, insert_columns=insert_columns, ) + tier_installs = df.pivot_table( + index=GLOBAL_HISTORY_KEYS, + columns="tier", + values="installs_est", + aggfunc="sum", + fill_value=0, + ) + tier_pct = tier_installs.div(tier_installs.sum(axis=1), axis=0) + tier_pct = tier_pct.add_suffix("_pct") + tier_pct = tier_pct.fillna(0) if store == 1: - tier_distribution = df.groupby(["store_app", "tier"])[ - "installs_est" - ].sum() / df.groupby("store_app")["installs_est"].transform("sum") - df = df[df["country"] == "US"] - - df[STAR_COLS] = df["histogram"].apply(pd.Series) - + global_reviews = df.groupby(GLOBAL_HISTORY_KEYS)["review_count"].sum() + df = df[df["country"] == "US"].copy() + df = df.set_index(GLOBAL_HISTORY_KEYS) + df["us_review_count"] = df["review_count"] + df["review_count"] = global_reviews + hist_df = pd.DataFrame(df["histogram"].tolist(), index=df.index) + hist_df.columns = STAR_COLS + df = pd.concat([df, hist_df], axis=1) if store == 2: ios_app_country_history = get_latest_app_country_history( database_connection, snapshot_date=snapshot_date, - days_back=90, + days_back=180, chunk_size=5000, store_app_ids=df["store_app"].unique(), ) # Should overwrite existing values if there, but could be removed when all rerun ios_app_country_history = estimate_ios_installs(ios_app_country_history) - # For the group by this will need to be the snapshot_date being calculated for ios_app_country_history["snapshot_date"] = pd.to_datetime(snapshot_date) df = pd.concat([ios_app_country_history, df], axis=0) @@ -484,35 +497,30 @@ def process_app_metrics_to_db( how="left", validate="m:1", ) - weighted_sum = ( - (df["rating"] * df["rating_count"]) - .groupby([df[k] for k in GLOBAL_HISTORY_KEYS]) - .sum() - ) - weight_total = ( - df["rating_count"].groupby([df[k] for k in GLOBAL_HISTORY_KEYS]).sum() - ) - + # weighted_sum = ( + # (df["rating"] * df["rating_count"]) + # .groupby([df[k] for k in GLOBAL_HISTORY_KEYS]) + # .sum() + # ) + # weight_total = ( + # df["rating_count"].groupby([df[k] for k in GLOBAL_HISTORY_KEYS]).sum() + # ) + df["rating_prod"] = df["rating"] * df["rating_count"] df = df.groupby(GLOBAL_HISTORY_KEYS).agg( rating_count=("rating_count", "sum"), + rating_prod=("rating_prod", "sum"), store_last_updated=("store_last_updated", "max"), **{col: (col, "sum") for col in STAR_COLS}, ) - df["rating"] = weighted_sum / weight_total - df["rating"] = df["rating"].astype("float64") - tier_installs = df.pivot_table( - index=GLOBAL_HISTORY_KEYS, - columns="tier", - values="installs", - aggfunc="sum", - fill_value=0, - ) - tier_pct = tier_installs.div(tier_installs.sum(axis=1), axis=0) - tier_pct = tier_pct.add_suffix("_pct") - tier_pct = tier_pct.fillna(0) + # df["rating"] = weighted_sum / weight_total + df["rating"] = ( + df["rating_prod"] / df["rating_count"].replace(0, np.nan) + ).astype("float64") + # df["rating"] = df["rating"].astype("float64") df = df.join(tier_pct) df = df.reset_index() - + for col in ["tier1_pct", "tier2_pct", "tier3_pct"]: + df[col] = (df[col] * 10000).round().astype("int16") check_for_duplicates( df=df, key_columns=GLOBAL_HISTORY_KEYS, diff --git a/adscrawler/dbcon/queries.py b/adscrawler/dbcon/queries.py index 5164ca92..10e2c42d 100644 --- a/adscrawler/dbcon/queries.py +++ b/adscrawler/dbcon/queries.py @@ -1504,7 +1504,9 @@ def get_latest_app_country_history( for i in range(0, len(store_app_ids), chunk_size) ] results = [] - print(f"Processing {len(store_app_ids)} apps in {len(chunks)} chunks...") + logger.info( + f"Get apps:{len(store_app_ids)} chunks:{len(chunks)} from app_country_metrics_history" + ) for i, chunk_ids in enumerate(chunks): id_list_str = ",".join(map(str, chunk_ids)) sel_query = f"""