Use resource id, not event id, when updating stripe resource tables (#1491)
This commit is contained in:
Родитель
f27080deb2
Коммит
d6b2551854
|
@ -1,6 +1,6 @@
|
|||
WITH events AS (
|
||||
SELECT
|
||||
id,
|
||||
`data`.charge.id,
|
||||
created AS event_timestamp,
|
||||
`data`.charge.* EXCEPT (id),
|
||||
FROM
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
WITH events AS (
|
||||
SELECT
|
||||
id,
|
||||
`data`.credit_note.id,
|
||||
created AS event_timestamp,
|
||||
`data`.credit_note.* EXCEPT (id),
|
||||
FROM
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
WITH events AS (
|
||||
SELECT
|
||||
id,
|
||||
`data`.customer.id,
|
||||
created AS event_timestamp,
|
||||
`data`.customer.* EXCEPT (id),
|
||||
FROM
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
WITH events AS (
|
||||
SELECT
|
||||
id,
|
||||
`data`.dispute.id,
|
||||
created AS event_timestamp,
|
||||
`data`.dispute.* EXCEPT (id),
|
||||
FROM
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
WITH events AS (
|
||||
SELECT
|
||||
id,
|
||||
`data`.invoice.id,
|
||||
created AS event_timestamp,
|
||||
`data`.invoice.* EXCEPT (id),
|
||||
FROM
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
WITH events AS (
|
||||
SELECT
|
||||
id,
|
||||
`data`.payment_intent.id,
|
||||
created AS event_timestamp,
|
||||
`data`.payment_intent.* EXCEPT (id),
|
||||
FROM
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
WITH events AS (
|
||||
SELECT
|
||||
id,
|
||||
`data`.payout.id,
|
||||
created AS event_timestamp,
|
||||
`data`.payout.* EXCEPT (id),
|
||||
FROM
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
WITH events AS (
|
||||
SELECT
|
||||
id,
|
||||
`data`.plan.id,
|
||||
created AS event_timestamp,
|
||||
`data`.plan.* EXCEPT (id),
|
||||
FROM
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
WITH events AS (
|
||||
SELECT
|
||||
id,
|
||||
`data`.price.id,
|
||||
created AS event_timestamp,
|
||||
`data`.price.* EXCEPT (id),
|
||||
FROM
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
WITH events AS (
|
||||
SELECT
|
||||
id,
|
||||
`data`.product.id,
|
||||
created AS event_timestamp,
|
||||
`data`.product.* EXCEPT (id),
|
||||
FROM
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
WITH events AS (
|
||||
SELECT
|
||||
id,
|
||||
`data`.setup_intent.id,
|
||||
created AS event_timestamp,
|
||||
`data`.setup_intent.* EXCEPT (id),
|
||||
FROM
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
WITH events AS (
|
||||
SELECT
|
||||
id,
|
||||
`data`.subscription.id,
|
||||
created AS event_timestamp,
|
||||
`data`.subscription.* EXCEPT (id),
|
||||
FROM
|
||||
|
|
Загрузка…
Ссылка в новой задаче