File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
pgdog/src/backend/schema/sync Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ SELECT
134134 ir .item_refunded_at
135135FROM 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 ,
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments