Skip to content

feat: versioned schema migration runner for the PostgreSQL sink #59

feat: versioned schema migration runner for the PostgreSQL sink

feat: versioned schema migration runner for the PostgreSQL sink #59

Triggered via pull request August 24, 2026 13:36
Status Failure
Total duration 7m 59s
Artifacts

ci.yml

on: pull_request
Matrix: build-ubuntu
build result
15s
build result
Fit to window
Zoom out
Zoom in

Annotations

49 errors
build-ubuntu (22.x, 6.0)
Process completed with exit code 1.
test/db/postgres/schemaMigrations.integration.test.ts > PostgreSQL Schema Migration Integration Tests > is idempotent — re-running migrations does not duplicate the version row: test/db/postgres/schemaMigrations.integration.test.ts#L74
AssertionError: expected [ 1, 2, 3 ] to deeply equal [ 1, 2 ] - Expected + Received [ 1, 2, + 3, ] ❯ test/db/postgres/schemaMigrations.integration.test.ts:74:53
test/db/postgres/schemaMigrations.integration.test.ts > PostgreSQL Schema Migration Integration Tests > creates schema_migrations and the app tables and records version 1: test/db/postgres/schemaMigrations.integration.test.ts#L42
AssertionError: expected [ 1, 2, 3 ] to deeply equal [ 1, 2 ] - Expected + Received [ 1, 2, + 3, ] ❯ test/db/postgres/schemaMigrations.integration.test.ts:42:53
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > getRepos > returns the seeded repos: test/db/postgres/repo.integration.test.ts#L93
AssertionError: expected [ 'list-2' ] to deeply equal ArrayContaining ["list-1", "list-2"] - Expected + Received - ArrayContaining [ - "list-1", + [ "list-2", ] ❯ test/db/postgres/repo.integration.test.ts:93:21
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > createRepo > persists the row and stamps a generated _id: src/db/postgres/schemaMigrations.ts#L145
error: relation "schema_migrations" does not exist ❯ node_modules/pg/lib/client.js:694:17 ❯ runMigrations src/db/postgres/schemaMigrations.ts:145:22 ❯ connect src/db/postgres/helper.ts:55:3 ❯ query src/db/postgres/helper.ts:63:16 ❯ createRepo src/db/postgres/repo.ts:90:18 ❯ test/db/postgres/repo.integration.test.ts:48:23 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { length: 116, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '21', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > writeAudit > upserts an existing action: src/db/postgres/schemaMigrations.ts#L145
error: relation "schema_migrations" does not exist ❯ node_modules/pg/lib/client.js:694:17 ❯ runMigrations src/db/postgres/schemaMigrations.ts:145:22 ❯ connect src/db/postgres/helper.ts:55:3 ❯ query src/db/postgres/helper.ts:63:16 ❯ writeAudit src/db/postgres/pushes.ts:210:3 ❯ test/db/postgres/pushes.integration.test.ts:64:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { length: 116, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '21', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > permission JSONB > keeps other users intact when removing one: test/db/postgres/repo.integration.test.ts#L160
AssertionError: expected undefined to deeply equal [ 'bob' ] - Expected: [ "bob", ] + Received: undefined ❯ test/db/postgres/repo.integration.test.ts:160:37
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > permission JSONB > adds a user without duplication: test/db/postgres/repo.integration.test.ts#L117
AssertionError: expected undefined to deeply equal [ 'alice' ] - Expected: [ "alice", ] + Received: undefined ❯ test/db/postgres/repo.integration.test.ts:117:37
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > permission JSONB > starts with empty arrays: test/db/postgres/repo.integration.test.ts#L103
AssertionError: expected undefined to deeply equal [] - Expected: [] + Received: undefined ❯ test/db/postgres/repo.integration.test.ts:103:37
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > getRepos > returns the seeded repos: src/db/postgres/repo.ts#L64
error: relation "repos" does not exist ❯ node_modules/pg-pool/index.js:45:11 ❯ getRepos src/db/postgres/repo.ts:64:18 ❯ test/db/postgres/repo.integration.test.ts:91:19 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { length: 104, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '73', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > getRepo / getRepoByUrl / getRepoById > finds by name (lower-cased lookup): test/db/postgres/repo.integration.test.ts#L62
AssertionError: expected undefined to be 'findme' // Object.is equality - Expected: "findme" + Received: undefined ❯ test/db/postgres/repo.integration.test.ts:62:27
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > createRepo > persists the row and stamps a generated _id: src/db/postgres/schemaMigrations.ts#L145
error: relation "schema_migrations" does not exist ❯ node_modules/pg/lib/client.js:694:17 ❯ runMigrations src/db/postgres/schemaMigrations.ts:145:22 ❯ connect src/db/postgres/helper.ts:55:3 ❯ query src/db/postgres/helper.ts:63:16 ❯ createRepo src/db/postgres/repo.ts:90:18 ❯ test/db/postgres/repo.integration.test.ts:48:23 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { length: 116, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '21', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > deletePush > deletes a push by id: src/db/postgres/pushes.ts#L197
error: relation "pushes" does not exist ❯ node_modules/pg-pool/index.js:45:11 ❯ deletePush src/db/postgres/pushes.ts:197:3 ❯ test/db/postgres/pushes.integration.test.ts:174:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { length: 105, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '13', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPushes > filters by authorised flag: test/db/postgres/pushes.integration.test.ts#L157
AssertionError: expected undefined to be defined ❯ test/db/postgres/pushes.integration.test.ts:157:30
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > writeAudit > upserts an existing action: src/db/postgres/pushes.ts#L210
error: relation "pushes" does not exist ❯ node_modules/pg-pool/index.js:45:11 ❯ writeAudit src/db/postgres/pushes.ts:210:3 ❯ test/db/postgres/pushes.integration.test.ts:68:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { length: 105, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '13', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
build-ubuntu (24.x, 8.0)
Process completed with exit code 1.
test/db/postgres/users.integration.test.ts > PostgreSQL Users Integration Tests > findUser > finds a user by username (case-insensitive): src/db/postgres/users.ts#L106
error: relation "users" does not exist ❯ node_modules/pg-pool/index.js:45:11 ❯ createUser src/db/postgres/users.ts:106:3 ❯ test/db/postgres/users.integration.test.ts:63:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { length: 104, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '13', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
test/db/postgres/schemaMigrations.integration.test.ts > PostgreSQL Schema Migration Integration Tests > is idempotent — re-running migrations does not duplicate the version row: test/db/postgres/schemaMigrations.integration.test.ts#L74
AssertionError: expected [ 1, 2, 3 ] to deeply equal [ 1, 2 ] - Expected + Received [ 1, 2, + 3, ] ❯ test/db/postgres/schemaMigrations.integration.test.ts:74:53
test/db/postgres/schemaMigrations.integration.test.ts > PostgreSQL Schema Migration Integration Tests > creates schema_migrations and the app tables and records version 1: test/db/postgres/schemaMigrations.integration.test.ts#L42
AssertionError: expected [ 1, 2, 3 ] to deeply equal [ 1, 2 ] - Expected + Received [ 1, 2, + 3, ] ❯ test/db/postgres/schemaMigrations.integration.test.ts:42:53
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > permission JSONB > starts with empty arrays: test/db/postgres/repo.integration.test.ts#L103
AssertionError: expected undefined to deeply equal [] - Expected: [] + Received: undefined ❯ test/db/postgres/repo.integration.test.ts:103:37
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > getRepos > returns the seeded repos: test/db/postgres/repo.integration.test.ts#L93
AssertionError: expected [] to deeply equal ArrayContaining ["list-1", "list-2"] - Expected + Received - ArrayContaining [ - "list-1", - "list-2", - ] + [] ❯ test/db/postgres/repo.integration.test.ts:93:21
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > createRepo > persists the row and stamps a generated _id: src/db/postgres/schemaMigrations.ts#L145
error: relation "schema_migrations" does not exist ❯ node_modules/pg/lib/client.js:694:17 ❯ runMigrations src/db/postgres/schemaMigrations.ts:145:22 ❯ connect src/db/postgres/helper.ts:55:3 ❯ query src/db/postgres/helper.ts:63:16 ❯ createRepo src/db/postgres/repo.ts:90:18 ❯ test/db/postgres/repo.integration.test.ts:48:23 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { length: 116, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '21', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > deletePush > deletes a push by id: src/db/postgres/pushes.ts#L191
error: relation "pushes" does not exist ❯ node_modules/pg-pool/index.js:45:11 ❯ getPush src/db/postgres/pushes.ts:191:18 ❯ test/db/postgres/pushes.integration.test.ts:175:14 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { length: 105, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '18', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
build-ubuntu (24.x, 7.0)
Process completed with exit code 1.
test/db/postgres/users.integration.test.ts > PostgreSQL Users Integration Tests > createUser > lowercases username and email on insert: src/db/postgres/users.ts#L55
error: relation "users" does not exist ❯ node_modules/pg-pool/index.js:45:11 ❯ findUser src/db/postgres/users.ts:55:18 ❯ test/db/postgres/users.integration.test.ts:55:21 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { length: 105, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '107', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
test/db/postgres/schemaMigrations.integration.test.ts > PostgreSQL Schema Migration Integration Tests > is idempotent — re-running migrations does not duplicate the version row: test/db/postgres/schemaMigrations.integration.test.ts#L74
AssertionError: expected [ 1, 2, 3 ] to deeply equal [ 1, 2 ] - Expected + Received [ 1, 2, + 3, ] ❯ test/db/postgres/schemaMigrations.integration.test.ts:74:53
test/db/postgres/schemaMigrations.integration.test.ts > PostgreSQL Schema Migration Integration Tests > creates schema_migrations and the app tables and records version 1: test/db/postgres/schemaMigrations.integration.test.ts#L42
AssertionError: expected [ 1, 2, 3 ] to deeply equal [ 1, 2 ] - Expected + Received [ 1, 2, + 3, ] ❯ test/db/postgres/schemaMigrations.integration.test.ts:42:53
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > getRepos > returns the seeded repos: test/db/postgres/repo.integration.test.ts#L93
AssertionError: expected [ 'list-2' ] to deeply equal ArrayContaining ["list-1", "list-2"] - Expected + Received - ArrayContaining [ - "list-1", + [ "list-2", ] ❯ test/db/postgres/repo.integration.test.ts:93:21
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > getRepo / getRepoByUrl / getRepoById > finds by name (lower-cased lookup): test/db/postgres/repo.integration.test.ts#L62
AssertionError: expected undefined to be 'findme' // Object.is equality - Expected: "findme" + Received: undefined ❯ test/db/postgres/repo.integration.test.ts:62:27
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > createRepo > persists the row and stamps a generated _id: src/db/postgres/schemaMigrations.ts#L145
error: relation "schema_migrations" does not exist ❯ node_modules/pg/lib/client.js:694:17 ❯ runMigrations src/db/postgres/schemaMigrations.ts:145:22 ❯ connect src/db/postgres/helper.ts:55:3 ❯ query src/db/postgres/helper.ts:63:16 ❯ createRepo src/db/postgres/repo.ts:90:18 ❯ test/db/postgres/repo.integration.test.ts:48:23 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { length: 116, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '21', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > authorise > authorises a push and resets cancel/reject flags: src/db/postgres/pushes.ts#L191
error: relation "pushes" does not exist ❯ node_modules/pg-pool/index.js:45:11 ❯ getPush src/db/postgres/pushes.ts:191:18 ❯ test/db/postgres/pushes.integration.test.ts:196:23 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { length: 105, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '18', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > writeAudit > upserts an existing action: src/db/postgres/pushes.ts#L210
error: relation "pushes" does not exist ❯ node_modules/pg-pool/index.js:45:11 ❯ writeAudit src/db/postgres/pushes.ts:210:3 ❯ test/db/postgres/pushes.integration.test.ts:68:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { length: 105, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '13', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
build-ubuntu (22.x, 8.0)
Process completed with exit code 1.
test/db/postgres/schemaMigrations.integration.test.ts > PostgreSQL Schema Migration Integration Tests > is idempotent — re-running migrations does not duplicate the version row: test/db/postgres/schemaMigrations.integration.test.ts#L74
AssertionError: expected [ 1, 2, 3 ] to deeply equal [ 1, 2 ] - Expected + Received [ 1, 2, + 3, ] ❯ test/db/postgres/schemaMigrations.integration.test.ts:74:53
test/db/postgres/schemaMigrations.integration.test.ts > PostgreSQL Schema Migration Integration Tests > creates schema_migrations and the app tables and records version 1: test/db/postgres/schemaMigrations.integration.test.ts#L42
AssertionError: expected [ 1, 2, 3 ] to deeply equal [ 1, 2 ] - Expected + Received [ 1, 2, + 3, ] ❯ test/db/postgres/schemaMigrations.integration.test.ts:42:53
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > getRepo / getRepoByUrl / getRepoById > finds by url exactly: src/db/postgres/schemaMigrations.ts#L145
error: relation "schema_migrations" does not exist ❯ node_modules/pg/lib/client.js:694:17 ❯ runMigrations src/db/postgres/schemaMigrations.ts:145:22 ❯ connect src/db/postgres/helper.ts:55:3 ❯ query src/db/postgres/helper.ts:63:16 ❯ createRepo src/db/postgres/repo.ts:90:18 ❯ test/db/postgres/repo.integration.test.ts:67:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { length: 116, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '21', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPush > retrieves a push by id: src/db/postgres/pushes.ts#L210
error: relation "pushes" does not exist ❯ node_modules/pg-pool/index.js:45:11 ❯ writeAudit src/db/postgres/pushes.ts:210:3 ❯ test/db/postgres/pushes.integration.test.ts:98:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { length: 105, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '13', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
build-ubuntu (22.x, 7.0)
Process completed with exit code 1.
test/db/postgres/schemaMigrations.integration.test.ts > PostgreSQL Schema Migration Integration Tests > is idempotent — re-running migrations does not duplicate the version row: test/db/postgres/schemaMigrations.integration.test.ts#L74
AssertionError: expected [ 1, 2, 3 ] to deeply equal [ 1, 2 ] - Expected + Received [ 1, 2, + 3, ] ❯ test/db/postgres/schemaMigrations.integration.test.ts:74:53
test/db/postgres/schemaMigrations.integration.test.ts > PostgreSQL Schema Migration Integration Tests > creates schema_migrations and the app tables and records version 1: test/db/postgres/schemaMigrations.integration.test.ts#L42
AssertionError: expected [ 1, 2, 3 ] to deeply equal [ 1, 2 ] - Expected + Received [ 1, 2, + 3, ] ❯ test/db/postgres/schemaMigrations.integration.test.ts:42:53
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > getRepos > returns the seeded repos: src/db/postgres/repo.ts#L90
error: relation "repos" does not exist ❯ node_modules/pg-pool/index.js:45:11 ❯ createRepo src/db/postgres/repo.ts:90:18 ❯ test/db/postgres/repo.integration.test.ts:89:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { length: 104, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '13', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > writeAudit > upserts an existing action: src/db/postgres/schemaMigrations.ts#L145
error: relation "schema_migrations" does not exist ❯ node_modules/pg/lib/client.js:694:17 ❯ runMigrations src/db/postgres/schemaMigrations.ts:145:22 ❯ connect src/db/postgres/helper.ts:55:3 ❯ query src/db/postgres/helper.ts:63:16 ❯ writeAudit src/db/postgres/pushes.ts:210:3 ❯ test/db/postgres/pushes.integration.test.ts:64:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { length: 116, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '21', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
build result
Process completed with exit code 1.