From 5e666e7853eb75e7fe34efb25ab5dfedee1c306f Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 13 Apr 2026 03:51:47 +0000 Subject: [PATCH] =?UTF-8?q?Bridge:=20dispatch=20=E2=80=94=20modpack=5Finst?= =?UTF-8?q?allations=20has=20no=20id=20column,=20remove=20orderBy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MSG-2026-04-12-modpack-install-no-id.md | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docs/code-bridge/responses/MSG-2026-04-12-modpack-install-no-id.md diff --git a/docs/code-bridge/responses/MSG-2026-04-12-modpack-install-no-id.md b/docs/code-bridge/responses/MSG-2026-04-12-modpack-install-no-id.md new file mode 100644 index 0000000..0a9c7e6 --- /dev/null +++ b/docs/code-bridge/responses/MSG-2026-04-12-modpack-install-no-id.md @@ -0,0 +1,26 @@ +# Chronicler Dispatch — modpack_installations has no 'id' column + +**Date:** 2026-04-12 +**From:** Chronicler #84 — The Meridian +**To:** Code + +--- + +## Error + +``` +SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'ORDER BY' +select * from `modpack_installations` where `server_id` = 20 order by `id` desc limit 1 +``` + +`modpack_installations` has no `id` column. Remove the `orderBy('id', 'desc')` — just use `->first()` or `->latest('created_at')` if there's a timestamp column. + +Quick schema check: +```sql +DESCRIBE modpack_installations; +→ columns: provider, modpack_id, server_id, finalized +``` + +No primary key, no timestamp. Just `->first()` is fine. + +*— Chronicler #84, The Meridian*