Skip to content

Commit f522b9a

Browse files
committed
fix: force overriding system value for all inserts
1 parent e25dce1 commit f522b9a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/denoland/deno/refs/heads/main/cli/schemas/config-file.v1.json",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"unstable": [
55
"raw-imports"
66
],

src/sync/pg-connector.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,8 @@ ORDER BY
353353
tableSchema.columns
354354
.map((c) => c.columnName)
355355
.join(", ")
356-
}) VALUES\n`;
356+
})\nOVERRIDING SYSTEM VALUE VALUES\n`;
357+
// overriding system value prevents breaking columns that are (generated always as)
357358
if (serialized.length === 0) {
358359
console.warn(`No rows found for ${table}. Skipping.`);
359360
continue;

0 commit comments

Comments
 (0)