[PR #43] [MERGED] hotfix: restore local data path compatibility #4411

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

📋 Pull Request Information

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

Base: main ← Head: hotfix/restore-user-data-visibility


📝 Commits (2)

  • a843546 hotfix: restore local data path compatibility
  • 0ea08f7 chore: sync android version metadata

📊 Changes

7 files changed (+105 additions, -38 deletions)

View changed files

📝 .env.example (+3 -1)
📝 README.md (+12 -1)
📝 android/app/build.gradle (+1 -1)
📝 packages/server/drizzle.config.cts (+39 -3)
📝 packages/server/src/config/runtime-config.ts (+47 -30)
📝 packages/server/src/index.ts (+2 -1)
📝 packages/server/src/utils/data-dir.ts (+1 -1)

📄 Description

Summary

  • restore local/git installs to the pre-regression storage root under packages/server/data
  • resolve relative DATABASE_URL=file:... paths from the server package root again so the app, backups, encryption key, and Drizzle CLI stay coherent
  • add startup diagnostics and recovery guidance for users who now have both packages/server/data/ and data/

Why

A recent path-selection regression made some installs open a different SQLite database than the one users had been using before. That looks like data loss even when nothing was deleted.

The core objective of this hotfix is to restore visibility of existing user data immediately and safely. It deliberately avoids automatic migration so we do not overwrite, merge, or move the wrong database under uncertainty.

Validation

  • verified runtime resolution with no env override: DATA_DIR and DB path resolve to packages/server/data
  • verified copied .env case with DATABASE_URL=file:./data/marinara-engine.db still resolves to packages/server/data
  • verified explicit DATA_DIR override still controls both data dir and DB path
  • verified dual-location warning when both packages/server/data/marinara-engine.db and data/marinara-engine.db exist
  • ran pnpm check

🔄 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/43 **Author:** [@TheLonelyDevil9](https://github.com/TheLonelyDevil9) **Created:** 4/2/2026 **Status:** ✅ Merged **Merged:** 4/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `hotfix/restore-user-data-visibility` --- ### 📝 Commits (2) - [`a843546`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a8435466babfb47723f844ea3447f04e47ffdb66) hotfix: restore local data path compatibility - [`0ea08f7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0ea08f7c1bc034e01fdc5ded14803d49a52006d0) chore: sync android version metadata ### 📊 Changes **7 files changed** (+105 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+3 -1) 📝 `README.md` (+12 -1) 📝 `android/app/build.gradle` (+1 -1) 📝 `packages/server/drizzle.config.cts` (+39 -3) 📝 `packages/server/src/config/runtime-config.ts` (+47 -30) 📝 `packages/server/src/index.ts` (+2 -1) 📝 `packages/server/src/utils/data-dir.ts` (+1 -1) </details> ### 📄 Description ## Summary - restore local/git installs to the pre-regression storage root under `packages/server/data` - resolve relative `DATABASE_URL=file:...` paths from the server package root again so the app, backups, encryption key, and Drizzle CLI stay coherent - add startup diagnostics and recovery guidance for users who now have both `packages/server/data/` and `data/` ## Why A recent path-selection regression made some installs open a different SQLite database than the one users had been using before. That looks like data loss even when nothing was deleted. The core objective of this hotfix is to restore visibility of existing user data immediately and safely. It deliberately avoids automatic migration so we do not overwrite, merge, or move the wrong database under uncertainty. ## Validation - verified runtime resolution with no env override: `DATA_DIR` and DB path resolve to `packages/server/data` - verified copied `.env` case with `DATABASE_URL=file:./data/marinara-engine.db` still resolves to `packages/server/data` - verified explicit `DATA_DIR` override still controls both data dir and DB path - verified dual-location warning when both `packages/server/data/marinara-engine.db` and `data/marinara-engine.db` exist - ran `pnpm check` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:07:23 +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#4411
No description provided.