shift renames left, remove deprecated fields from int
This commit is contained in:
parent
c35c5cb033
commit
37856ec606
2 changed files with 5 additions and 7 deletions
|
|
@ -7,9 +7,9 @@ select
|
||||||
-- they are completely unrelated
|
-- they are completely unrelated
|
||||||
id_verification,
|
id_verification,
|
||||||
id_booking,
|
id_booking,
|
||||||
id_user as id_user_partner,
|
id_user_partner,
|
||||||
id_listing as id_accommodation,
|
id_accommodation,
|
||||||
version, -- V1 for Guesty and V2 for E-deposit
|
version,
|
||||||
case
|
case
|
||||||
when version = 'V1' then 'Guesty' when version = 'V2' then 'Edeposit' else null
|
when version = 'V1' then 'Guesty' when version = 'V2' then 'Edeposit' else null
|
||||||
end as verification_source,
|
end as verification_source,
|
||||||
|
|
@ -40,8 +40,6 @@ select
|
||||||
listing_country,
|
listing_country,
|
||||||
listing_postcode,
|
listing_postcode,
|
||||||
pets_allowed,
|
pets_allowed,
|
||||||
level_of_protection_amount,
|
|
||||||
level_of_protection_currency,
|
|
||||||
status_updated_at_utc,
|
status_updated_at_utc,
|
||||||
cast(status_updated_at_utc as date) as status_updated_date_utc,
|
cast(status_updated_at_utc as date) as status_updated_date_utc,
|
||||||
updated_at_utc,
|
updated_at_utc,
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,8 @@ with
|
||||||
select
|
select
|
||||||
{{ adapter.quote("documents") }} ->> 'id' as id_verification,
|
{{ adapter.quote("documents") }} ->> 'id' as id_verification,
|
||||||
{{ adapter.quote("documents") }} ->> 'BookingId' as id_booking,
|
{{ adapter.quote("documents") }} ->> 'BookingId' as id_booking,
|
||||||
{{ adapter.quote("documents") }} ->> 'userId' as id_user,
|
{{ adapter.quote("documents") }} ->> 'userId' as id_user_partner,
|
||||||
{{ adapter.quote("documents") }} ->> 'ListingId' as id_listing,
|
{{ adapter.quote("documents") }} ->> 'ListingId' as id_accommodation,
|
||||||
|
|
||||||
{{ adapter.quote("documents") }} ->> 'Version' as "version",
|
{{ adapter.quote("documents") }} ->> 'Version' as "version",
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue