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 febf943 commit 94aa8d1
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions test/migrations/093_alter_column_expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,10 @@ exports.up = async (pgm) => {
pgm.createTable('t093', {
id: { type: 'integer', notNull: true },
other: { type: 'integer', notNull: true },
col1: {
type: 'integer',
sequenceGenerated: {
precedence: 'ALWAYS',
increment: 1,
},
},
col2: {
type: 'integer',
sequenceGenerated: {
precedence: 'ALWAYS',
increment: 1,
},
},
col1: { type: 'integer', expressionGenerated: 'other + 1' },
col2: { type: 'integer', expressionGenerated: 'other + 1' },
});
pgm.alterColumn('t093', 'col1', { expressionGenerated: 'other + 1' });
pgm.alterColumn('t093', 'col1', { expressionGenerated: 'other + 2' });
pgm.alterColumn('t093', 'col2', { expressionGenerated: null });
}
};
Expand Down

0 comments on commit 94aa8d1

Please sign in to comment.