Commit fa17ad19 authored by Thomas La Piana's avatar Thomas La Piana

Resolve "remove TO_CHAR from all non .com sources"

parent d65727b4
......@@ -25,8 +25,8 @@ tables:
, updated_at
, branch
FROM spec_profiling_results
WHERE updated_at BETWEEN TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00') - interval '{HOURS} hour'
AND TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00')
WHERE updated_at BETWEEN '{EXECUTION_DATE}'::timestamp - interval '{HOURS} hours'
AND '{EXECUTION_DATE}'::timestamp
export_schema: 'ci_stats'
export_table: 'spec_profiling_results'
export_table_primary_key: id
......@@ -29,8 +29,8 @@ tables:
, confirmed_at
, confirmation_sent_at
FROM customers
WHERE updated_at BETWEEN TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00') - interval '{DAYS} day'
AND TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00')
WHERE updated_at BETWEEN '{EXECUTION_DATE}'::timestamp - interval '{DAYS} day'
AND '{EXECUTION_DATE}'::timestamp
export_db: EXPORT_DB
export_schema: 'customers'
export_table: 'customers'
......@@ -54,8 +54,8 @@ tables:
, trial
, last_extra_ci_minutes_sync_at
FROM orders
WHERE updated_at BETWEEN TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00') - interval '{DAYS} day'
AND TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00')
WHERE updated_at BETWEEN '{EXECUTION_DATE}'::timestamp - interval '{DAYS} day'
AND '{EXECUTION_DATE}'::timestamp
export_db: EXPORT_DB
export_schema: 'customers'
export_table: 'orders'
......
......@@ -14,8 +14,8 @@ tables:
, created_at
, updated_at
FROM add_ons
WHERE updated_at BETWEEN TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00') - interval '{DAYS} day'
AND TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00')
WHERE updated_at BETWEEN '{EXECUTION_DATE}'::timestamp - interval '{DAYS} day'
AND '{EXECUTION_DATE}'::timestamp
export_db: EXPORT_DB
export_schema: 'license'
export_table: 'add_ons'
......@@ -30,8 +30,8 @@ tables:
, created_at
, updated_at
FROM granted_add_ons
WHERE updated_at BETWEEN TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00') - interval '{DAYS} day'
AND TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00')
WHERE updated_at BETWEEN '{EXECUTION_DATE}'::timestamp - interval '{DAYS} day'
AND '{EXECUTION_DATE}'::timestamp
export_db: EXPORT_DB
export_schema: 'license'
export_table: 'granted_add_ons'
......@@ -57,8 +57,8 @@ tables:
created_at,
updated_at
FROM licenses
WHERE updated_at BETWEEN TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00') - interval '{DAYS} day'
AND TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00')
WHERE updated_at BETWEEN '{EXECUTION_DATE}'::timestamp - interval '{DAYS} day'
AND '{EXECUTION_DATE}'::timestamp
export_db: EXPORT_DB
export_schema: 'license'
export_table: 'licenses'
......@@ -74,8 +74,8 @@ tables:
updated_at,
recurly_name
FROM plans
WHERE updated_at BETWEEN TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00') - interval '{DAYS} day'
AND TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00')
WHERE updated_at BETWEEN '{EXECUTION_DATE}'::timestamp - interval '{DAYS} day'
AND '{EXECUTION_DATE}'::timestamp
export_db: EXPORT_DB
export_schema: 'license'
export_table: 'plans'
......@@ -98,8 +98,8 @@ tables:
provider,
uid
FROM users
WHERE updated_at BETWEEN TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00') - interval '{DAYS} day'
AND TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00')
WHERE updated_at BETWEEN '{EXECUTION_DATE}'::timestamp - interval '{DAYS} day'
AND '{EXECUTION_DATE}'::timestamp
export_db: EXPORT_DB
export_schema: 'license'
export_table: 'users'
......
......@@ -57,8 +57,8 @@ tables:
, gitaly_version
, gitaly_servers
FROM usage_data
WHERE updated_at BETWEEN TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00') - interval '{DAYS} day'
AND TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00')
WHERE updated_at BETWEEN '{EXECUTION_DATE}'::timestamp - interval '{DAYS} day'
AND '{EXECUTION_DATE}'::timestamp
export_db: EXPORT_DB
export_schema: 'version'
export_table: 'usage_data'
......@@ -102,8 +102,8 @@ tables:
percentage_projects_prometheus_active,
percentage_service_desk_issues
FROM conversational_development_indices
WHERE updated_at BETWEEN TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00') - interval '{DAYS} day'
AND TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00')
WHERE updated_at BETWEEN '{EXECUTION_DATE}'::timestamp - interval '{DAYS} day'
AND '{EXECUTION_DATE}'::timestamp
export_db: EXPORT_DB
export_schema: 'version'
export_table: 'conversational_development_indices'
......@@ -119,8 +119,8 @@ tables:
created_at,
updated_at
FROM fortune_companies
WHERE updated_at BETWEEN TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00') - interval '{DAYS} day'
AND TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00')
WHERE updated_at BETWEEN '{EXECUTION_DATE}'::timestamp - interval '{DAYS} day'
AND '{EXECUTION_DATE}'::timestamp
export_db: EXPORT_DB
export_schema: 'version'
export_table: 'fortune_companies'
......@@ -137,8 +137,8 @@ tables:
fortune_rank,
in_salesforce
FROM hosts
WHERE updated_at BETWEEN TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00') - interval '{DAYS} day'
AND TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00')
WHERE updated_at BETWEEN '{EXECUTION_DATE}'::timestamp - interval '{DAYS} day'
AND '{EXECUTION_DATE}'::timestamp
export_db: EXPORT_DB
export_schema: 'version'
export_table: 'hosts'
......@@ -160,8 +160,8 @@ tables:
last_ping_received_at,
version
FROM licenses
WHERE updated_at BETWEEN TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00') - interval '{DAYS} day'
AND TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00')
WHERE updated_at BETWEEN '{EXECUTION_DATE}'::timestamp - interval '{DAYS} day'
AND '{EXECUTION_DATE}'::timestamp
export_db: EXPORT_DB
export_schema: 'version'
export_table: 'licenses'
......@@ -193,8 +193,8 @@ tables:
provider,
uid
FROM users
WHERE updated_at BETWEEN TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00') - interval '{DAYS} day'
AND TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00')
WHERE updated_at BETWEEN '{EXECUTION_DATE}'::timestamp - interval '{DAYS} day'
AND '{EXECUTION_DATE}'::timestamp
export_db: EXPORT_DB
export_schema: 'version'
export_table: 'users'
......@@ -211,8 +211,8 @@ tables:
referer_url,
host_id
FROM version_checks
WHERE updated_at BETWEEN TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00') - interval '{DAYS} day'
AND TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00')
WHERE updated_at BETWEEN '{EXECUTION_DATE}'::timestamp - interval '{DAYS} day'
AND '{EXECUTION_DATE}'::timestamp
export_db: EXPORT_DB
export_schema: 'version'
export_table: 'version_checks'
......@@ -227,8 +227,8 @@ tables:
created_at,
updated_at
FROM versions
WHERE updated_at BETWEEN TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00') - interval '{DAYS} day'
AND TO_TIMESTAMP('{EXECUTION_DATE}', 'YYYY-MM-DDTHH:MI:SS+00:00')
WHERE updated_at BETWEEN '{EXECUTION_DATE}'::timestamp - interval '{DAYS} day'
AND '{EXECUTION_DATE}'::timestamp
export_db: EXPORT_DB
export_schema: 'version'
export_table: 'versions'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment