mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #43] [MERGED] hotfix: restore local data path compatibility #4411
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4411
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
a843546hotfix: restore local data path compatibility0ea08f7chore: 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
packages/server/dataDATABASE_URL=file:...paths from the server package root again so the app, backups, encryption key, and Drizzle CLI stay coherentpackages/server/data/anddata/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
DATA_DIRand DB path resolve topackages/server/data.envcase withDATABASE_URL=file:./data/marinara-engine.dbstill resolves topackages/server/dataDATA_DIRoverride still controls both data dir and DB pathpackages/server/data/marinara-engine.dbanddata/marinara-engine.dbexistpnpm check🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.