Skip to content

Commit

Permalink
infra: update integration test dbs (#1312)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored Jan 11, 2025
1 parent 7d563bf commit 4e95c19
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cockroach-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
node_version: [20]
cockroach_version: [22.2.19, 23.2.4]
cockroach_version: [22.2.19, 23.2.18, 24.3.2]
fail-fast: false
timeout-minutes: 10

Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/postgres-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
node_version: [18, 20]
postgres_version: [12.18, 13.14, 14.11, 15.6, 16.2]
postgres_version: [13.18, 14.15, 15.10, 16.6, 17.2]
fail-fast: false
timeout-minutes: 10

Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
strategy:
matrix:
node_version: [20]
postgres_version: [16.2]
postgres_version: [17.2]
fail-fast: false
timeout-minutes: 10

Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
strategy:
matrix:
node_version: [20]
postgres_version: [16.2]
postgres_version: [17.2]
fail-fast: false
timeout-minutes: 10

Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
strategy:
matrix:
node_version: [20]
postgres_version: [16.2]
postgres_version: [17.2]
fail-fast: false
timeout-minutes: 10

Expand Down Expand Up @@ -247,7 +247,7 @@ jobs:
strategy:
matrix:
node_version: [20]
postgres_version: [16.2]
postgres_version: [17.2]
fail-fast: false
timeout-minutes: 10

Expand Down Expand Up @@ -305,7 +305,7 @@ jobs:
strategy:
matrix:
node_version: [20]
postgres_version: [16.2]
postgres_version: [17.2]
fail-fast: false
timeout-minutes: 10

Expand Down Expand Up @@ -357,7 +357,7 @@ jobs:
strategy:
matrix:
node_version: [20]
postgres_version: [16.2]
postgres_version: [17.2]
fail-fast: false
timeout-minutes: 10

Expand Down Expand Up @@ -421,7 +421,7 @@ jobs:
strategy:
matrix:
node_version: [20]
postgres_version: [16.2]
postgres_version: [17.2]
fail-fast: false
timeout-minutes: 10

Expand Down Expand Up @@ -474,7 +474,7 @@ jobs:
strategy:
matrix:
node_version: [20]
postgres_version: [16.2]
postgres_version: [17.2]
fail-fast: false
timeout-minutes: 10

Expand Down Expand Up @@ -526,7 +526,7 @@ jobs:
strategy:
matrix:
node_version: [20]
postgres_version: [16.2]
postgres_version: [17.2]
fail-fast: false
timeout-minutes: 10

Expand Down Expand Up @@ -578,7 +578,7 @@ jobs:
strategy:
matrix:
node_version: [20]
postgres_version: [16.2]
postgres_version: [17.2]
fail-fast: false
timeout-minutes: 10

Expand Down Expand Up @@ -629,7 +629,7 @@ jobs:
strategy:
matrix:
node_version: [20]
postgres_version: [16.2]
postgres_version: [17.2]
fail-fast: false
timeout-minutes: 10

Expand Down Expand Up @@ -680,7 +680,7 @@ jobs:
strategy:
matrix:
node_version: [20]
postgres_version: [16.2]
postgres_version: [17.2]
fail-fast: false
timeout-minutes: 10

Expand Down Expand Up @@ -731,7 +731,7 @@ jobs:
strategy:
matrix:
node_version: [20]
postgres_version: [16.2]
postgres_version: [17.2]
fail-fast: false
timeout-minutes: 10

Expand Down Expand Up @@ -782,7 +782,7 @@ jobs:
strategy:
matrix:
node_version: [20]
postgres_version: [16.2]
postgres_version: [17.2]
fail-fast: false
timeout-minutes: 10

Expand Down
9 changes: 7 additions & 2 deletions test/migrations/093_alter_column_expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ 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.alterColumn('t093', 'col1', { expressionGenerated: 'other + 1' });
pgm.createTable('t093', {
id: { type: 'integer', notNull: true },
other: { type: 'integer', notNull: true },
col1: { type: 'integer', expressionGenerated: 'other + 1' },
col2: { type: 'integer', expressionGenerated: 'other + 1' },
});
pgm.alterColumn('t093', 'col1', { expressionGenerated: 'other + 2' });
pgm.alterColumn('t093', 'col2', { expressionGenerated: null });
}
};
Expand Down

0 comments on commit 4e95c19

Please sign in to comment.