-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UN-101: Migrate database to Turso and Libsql #115
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Most of the grunt work has been done. New migrations were generated and pushed to turso with no issues but there is still work to do where there is now some type incompatibilities. |
transaction files have been migrated to sqlite syntax also now, pr needs to be tested at this point, posts created / selected etc, same for comments. I am unable to login to the app at the moment so I cannot test this myself. |
Bigint does not exist in sqlite but I noticed this was used for the consumed offsets, sqlite integers have a max value of 263 - 1 == 9223372036854775807 so I figure this should be fine. |
Fix this: |
Migration from Vercel/PostgreSQL to Turso/LibSQL
Overview
This PR implements a significant infrastructure change, moving our database from Vercel's PostgreSQL to Turso's LibSQL. This migration offers several advantages:
Implementation Details
Configuration Notes
.env.local
.env
Database Ownership
Next Steps
Additional Considerations
Please review these changes carefully, particularly focusing on SQLite-specific adaptations and any performance implications.