schema: add sync error tracking columns to games table
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
ALTER TABLE "games" ADD COLUMN "sync_error" text;--> statement-breakpoint
|
||||||
|
ALTER TABLE "games" ADD COLUMN "sync_retry_count" integer DEFAULT 0;--> statement-breakpoint
|
||||||
|
ALTER TABLE "games" ADD COLUMN "sync_next_retry" timestamp;
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -99,6 +99,13 @@
|
|||||||
"when": 1777392960312,
|
"when": 1777392960312,
|
||||||
"tag": "0013_supreme_purple_man",
|
"tag": "0013_supreme_purple_man",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 14,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1777429918273,
|
||||||
|
"tag": "0014_purple_firebird",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -62,6 +62,9 @@ export const games = pgTable(
|
|||||||
}>(),
|
}>(),
|
||||||
lastSync: timestamp("last_sync"),
|
lastSync: timestamp("last_sync"),
|
||||||
syncStatus: text("sync_status").default("pending"),
|
syncStatus: text("sync_status").default("pending"),
|
||||||
|
syncError: text("sync_error"),
|
||||||
|
syncRetryCount: integer("sync_retry_count").default(0),
|
||||||
|
syncNextRetry: timestamp("sync_next_retry"),
|
||||||
createdBy: text("created_by"),
|
createdBy: text("created_by"),
|
||||||
createdAt: timestamp("created_at").defaultNow().notNull(),
|
createdAt: timestamp("created_at").defaultNow().notNull(),
|
||||||
updatedAt: timestamp("updated_at").defaultNow().notNull(),
|
updatedAt: timestamp("updated_at").defaultNow().notNull(),
|
||||||
|
|||||||
Reference in New Issue
Block a user