MIGRATION INSTRUCTIONS
# PostgreSQL 17 → 18 Migration Instructions for LynxPrompt
## What the script does:
1. Creates timestamped backup directory
2. Dumps both databases from running v17 containers (in both custom and SQL formats)
3. Backs up the actual data directories
4. Stops old containers
5. Removes old data directories
6. Starts new PostgreSQL 18 containers (fresh initialization)
7. Restores all data from dumps
8. Verifies table counts
9. Starts all services
## To execute on watchtower:
### Option 1: Copy script and run manuallywhen to use it
Community prompt sourced from the open-source GitHub repo GeiserX/LynxPrompt (Apache-2.0). A "MIGRATION INSTRUCTIONS" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
GeiserX/LynxPrompt · Apache-2.0
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions