Skip to content

Commit 7500cde

Browse files
authored
fix: dropping identity column creation (#631)
- fix: dropping identity column creation introduced by #627
1 parent 3745f36 commit 7500cde

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

integration/copy_data/setup.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ SELECT
134134
ir.item_refunded_at
135135
FROM items_raw ir;
136136

137-
CREATE TABLE copy_data.log_actions (
137+
CREATE TABLE copy_data.log_actions(
138138
id BIGSERIAL PRIMARY KEY,
139139
tenant_id BIGINT,
140140
action VARCHAR,

pgdog/src/backend/schema/sync/pg_dump.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,8 @@ impl PgDumpOutput {
377377
}
378378
}
379379
}
380+
} else if state == SyncState::PreData {
381+
result.push(original.into());
380382
}
381383
}
382384
// AlterTableType::AtChangeOwner => {
@@ -686,5 +688,9 @@ ALTER TABLE ONLY public.users
686688

687689
_ => panic!("not a set sequence max"),
688690
}
691+
let statements = output.statements(SyncState::PreData).unwrap();
692+
assert!(!statements.is_empty());
693+
let statements = output.statements(SyncState::PostData).unwrap();
694+
assert!(statements.is_empty());
689695
}
690696
}

0 commit comments

Comments
 (0)