Skip to content

Commit

Permalink
test: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Jan 11, 2025
1 parent ef19610 commit 139f1d0
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions test/migrations/093_alter_column_expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,21 @@ exports.up = async (pgm) => {
if (isSupportedVersion(major)) {
pgm.createTable('t093', {
id: { type: 'integer', notNull: true },
col1: { type: 'integer' },
col2: { type: 'integer' },
other: { type: 'integer', notNull: true },
col1: {
type: 'integer',
sequenceGenerated: {
precedence: 'ALWAYS',
increment: 1,
},
},
col2: {
type: 'integer',
sequenceGenerated: {
precedence: 'ALWAYS',
increment: 1,
},
},
});
pgm.alterColumn('t093', 'col1', { expressionGenerated: 'other + 1' });
pgm.alterColumn('t093', 'col2', { expressionGenerated: null });
Expand Down

0 comments on commit 139f1d0

Please sign in to comment.