[PR #293] [MERGED] fix(db): create character images table #4549

Closed
opened 2026-10-22 04:08:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/293
Author: @Morgul
Created: 4/28/2026
Status: ✅ Merged
Merged: 4/28/2026
Merged by: @SpicyMarinara

Base: main ← Head: codex/add-character-images-migration


📝 Commits (1)

  • abc85c0 fix(db): create character images table

📊 Changes

1 file changed (+11 additions, -0 deletions)

View changed files

📝 packages/server/src/db/migrate.ts (+11 -0)

📄 Description

Linked issue

Closes #291

Why this change

  • Character gallery uploads fail on a fresh database because the server expects a character_images table that is not created by the current migration path.

What changed

  • Adds the missing character_images table creation to the server database migration.
  • Includes the columns used by the character image upload/gallery path, including character ID, image path, prompt, source, active flag, timestamps, and optional storage metadata.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually tested against a fresh database.
  • Before this change, attempting to upload a character gallery image failed because the character_images table was missing.
  • With this migration in place, the character gallery upload path no longer fails on the missing table.
  • Also ran pnpm db:push successfully from the branch worktree.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

No screenshot attached. This is a database migration fix for an upload failure path.

Summary by CodeRabbit

  • Chores
    • Added database schema to support character image storage with cascading delete protection and metadata tracking capabilities.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/293 **Author:** [@Morgul](https://github.com/Morgul) **Created:** 4/28/2026 **Status:** ✅ Merged **Merged:** 4/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `codex/add-character-images-migration` --- ### 📝 Commits (1) - [`abc85c0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/abc85c0f05f737ea44fa614216ff9a7bc26099d4) fix(db): create character images table ### 📊 Changes **1 file changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/db/migrate.ts` (+11 -0) </details> ### 📄 Description ## Linked issue Closes #291 ## Why this change - Character gallery uploads fail on a fresh database because the server expects a `character_images` table that is not created by the current migration path. ## What changed - Adds the missing `character_images` table creation to the server database migration. - Includes the columns used by the character image upload/gallery path, including character ID, image path, prompt, source, active flag, timestamps, and optional storage metadata. ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Manually tested against a fresh database. - Before this change, attempting to upload a character gallery image failed because the `character_images` table was missing. - With this migration in place, the character gallery upload path no longer fails on the missing table. - Also ran `pnpm db:push` successfully from the branch worktree. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) No screenshot attached. This is a database migration fix for an upload failure path. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Added database schema to support character image storage with cascading delete protection and metadata tracking capabilities. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:08:37 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4549
No description provided.