Skip to content

Commit

Permalink
Merge pull request #786 from dolthub/taylor/diff-tests
Browse files Browse the repository at this point in the history
Add diff tests for single schema
  • Loading branch information
tbantle22 authored Oct 2, 2024
2 parents 82d1a10 + 1e3ec46 commit 7872cb9
Show file tree
Hide file tree
Showing 5 changed files with 676 additions and 2 deletions.
87 changes: 87 additions & 0 deletions testing/postgres-client-tests/node/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,3 +502,90 @@ export const doltDiffStatFields = [
format: "text",
},
];

export const doltDiffSummaryFields = [
{
name: "from_table_name",
tableID: 0,
columnID: 0,
dataTypeID: 25,
dataTypeSize: -1,
dataTypeModifier: -1,
format: "text",
},
{
name: "to_table_name",
tableID: 0,
columnID: 0,
dataTypeID: 25,
dataTypeSize: -1,
dataTypeModifier: -1,
format: "text",
},
{
name: "diff_type",
tableID: 0,
columnID: 0,
dataTypeID: 25,
dataTypeSize: -4,
dataTypeModifier: -1,
format: "text",
},
{
name: "data_change",
tableID: 0,
columnID: 0,
dataTypeID: 21,
dataTypeSize: 4,
dataTypeModifier: -1,
format: "text",
},
{
name: "schema_change",
tableID: 0,
columnID: 0,
dataTypeID: 21,
dataTypeSize: 4,
dataTypeModifier: -1,
format: "text",
},
];

export const doltSchemaDiffFields = [
{
name: "from_table_name",
tableID: 0,
columnID: 0,
dataTypeID: 25,
dataTypeSize: -1,
dataTypeModifier: -1,
format: "text",
},
{
name: "to_table_name",
tableID: 0,
columnID: 0,
dataTypeID: 25,
dataTypeSize: -1,
dataTypeModifier: -1,
format: "text",
},
{
name: "from_create_statement",
tableID: 0,
columnID: 0,
dataTypeID: 25,
dataTypeSize: -4,
dataTypeModifier: -1,
format: "text",
},
{
name: "to_create_statement",
tableID: 0,
columnID: 0,
dataTypeID: 25,
dataTypeSize: -4,
dataTypeModifier: -1,
format: "text",
},
];
Loading

0 comments on commit 7872cb9

Please sign in to comment.