We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87b309a commit 6542b79Copy full SHA for 6542b79
db/migrations/0009_add_last_synced_at_columns.sql
@@ -0,0 +1,21 @@
1
+-- Add last_synced_at column to all relevant entity tables
2
+-- This column tracks when each entity was last synchronized with Orb.
3
+-- It enables timestamp-based protection to prevent old webhooks from overwriting newer data.
4
+
5
+alter table orb.invoices
6
+add column last_synced_at timestamptz;
7
8
+alter table orb.customers
9
10
11
+alter table orb.subscriptions
12
13
14
+alter table orb.credit_notes
15
16
17
+alter table orb.plans
18
19
20
+alter table orb.billable_metrics
21
0 commit comments