Holloアップデートしたら500返ってくるようになったが

ふむ

hollo-1          | 784 |   }
hollo-1          | 785 | 
hollo-1          | 786 |   function ErrorResponse(x) {
hollo-1          | 787 |     query && (query.cursorFn || query.describeFirst) && write(Sync)
hollo-1          | 788 |     const error = Errors.postgres(parseError(x))
hollo-1          |                                ^
hollo-1          | PostgresError: column accountOwners_account.instance_host does not exist
hollo-1          |  code: "42703"
hollo-1          | 
hollo-1          |       at ErrorResponse (/app/node_modules/postgres/src/connection.js:788:26)
hollo-1          |       at handle (/app/node_modules/postgres/src/connection.js:744:36)
hollo-1          |       at data (/app/node_modules/postgres/src/connection.js:478:9)
hollo-1          |       at emit (node:events:48:48)
hollo-1          |       at addChunk (node:stream:1731:22)
hollo-1          |       at readableAddChunk (node:stream:1686:30)
hollo-1          |       at data (node:net:44:9)

@esurio1673 データベースのスキーママイグレーションが実行されていないようです。

うーん?

at 05:47:54 PM  ❯ sudo docker compose exec hollo bun run migrate
$ bunx drizzle-kit migrate
[bun] Warning: async_hooks.createHook is not implemented in Bun. Hooks can still be created but will never be called.
drizzle-kit: v0.21.0
drizzle-orm: v0.30.10

No config path provided, using default path
Reading config file '/app/drizzle.config.ts'
Using 'postgres' driver for database querying
[⣷] applying migrations...{
  severity_local: "NOTICE",
  severity: "NOTICE",
  code: "42P06",
  message: "schema \"drizzle\" already exists, skipping",
  file: "schemacmds.c",
  line: "131",
  routine: "CreateSchemaCommand",
}
{
  severity_local: "NOTICE",
  severity: "NOTICE",
  code: "42P07",
  message: "relation \"__drizzle_migrations\" already exists, skipping",
  file: "parse_utilcmd.c",
  line: "207",
  routine: "transformCreateStmt",
}
64475 |     };
64476 |     query2.execute();
64477 |   }
64478 |   function ErrorResponse(x2) {
64479 |     query && (query.cursorFn || query.describeFirst) && write(Sync);
64480 |     const error3 = Errors.postgres(parseError(x2));
                                  ^
PostgresError: function any_value(text) does not exist
 code: "42883"

      at ErrorResponse (/app/node_modules/drizzle-kit/bin.cjs:64480:27)
      at handle (/app/node_modules/drizzle-kit/bin.cjs:78264:19)
      at data (/app/node_modules/drizzle-kit/bin.cjs:78075:9)
      at emit (node:events:48:48)
      at addChunk (node:stream:1731:22)
      at readableAddChunk (node:stream:1686:30)
      at data (node:net:44:9)

フォロー

@esurio1673 あ、PostgreSQLの最小サポートバージョンが16に上がったからそうなったようですね。

ログインして会話に参加
Fedibird

様々な目的に使える、日本の汎用マストドンサーバーです。安定した利用環境と、多数の独自機能を提供しています。