Skip to content

Fix update script#159

Merged
ScriptRaccoon merged 2 commits into
mainfrom
fix-scripts
May 5, 2026
Merged

Fix update script#159
ScriptRaccoon merged 2 commits into
mainfrom
fix-scripts

Conversation

@ScriptRaccoon
Copy link
Copy Markdown
Owner

@ScriptRaccoon ScriptRaccoon commented May 5, 2026

The development server stopped showing data changes after the database was updated with pnpm db:update. The cause was #138, and specifically 1772e4b (removal of migrations). In this change, the script was modified to also delete the local database file before rebuilding it from scratch.

I assume this breaks the database connection in the development server, which is why it no longer reacts to changes.

This PR fixes this issue by excluding the setup step from the update command. A downside is that the setup command now has to be run manually by maintainers whenever the schema changes, with no automatic mechanism in place (since migrations have been removed*). For now, I think this is acceptable, as only a small number of people are actively working on CatDat and they can be informed when schema changes occur.

*Maybe I should bring them back.

@ScriptRaccoon
Copy link
Copy Markdown
Owner Author

@dschepler In case you also had issues with the development server, they should be fixed with this PR.

@ScriptRaccoon ScriptRaccoon merged commit 2b033de into main May 5, 2026
1 check passed
@ScriptRaccoon ScriptRaccoon deleted the fix-scripts branch May 5, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant