Skip to content

Commit

Permalink
test: add missing columns
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Jan 11, 2025
1 parent 7e5330c commit ef19610
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/migrations/093_alter_column_expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ const isSupportedVersion = (major) => major >= 17;
exports.up = async (pgm) => {
const major = await getMajorVersion(pgm);
if (isSupportedVersion(major)) {
pgm.createTable('t093', { id: { type: 'integer', notNull: true } });
pgm.createTable('t093', {
id: { type: 'integer', notNull: true },
col1: { type: 'integer' },
col2: { type: 'integer' },
});
pgm.alterColumn('t093', 'col1', { expressionGenerated: 'other + 1' });
pgm.alterColumn('t093', 'col2', { expressionGenerated: null });
}
Expand Down

0 comments on commit ef19610

Please sign in to comment.