Skip to content

feat: migrate database - #51

Merged
Railly merged 6 commits into
huge-refactorfrom
feat/migrate-database
Sep 12, 2025
Merged

feat: migrate database#51
Railly merged 6 commits into
huge-refactorfrom
feat/migrate-database

Conversation

@cuevaio

@cuevaio cuevaio commented Sep 12, 2025

Copy link
Copy Markdown
Collaborator

migrated data from xata.io to neon.tech
left scripts to replicate :)

- Changed the import statement for NextRequest from a default import to a type import for better clarity and to align with TypeScript best practices.
- Removed explicit Step type definition and replaced it with a const assertion for STEPS, improving type inference.
- Added a new property 'tx' to TinteBlockSchema for primary text color, enhancing color management capabilities.
- Added Drizzle ORM configuration for PostgreSQL with environment variable validation for DATABASE_URL.
- Implemented database schema with user and theme tables, enhancing data management capabilities.
- Updated package dependencies to include @neondatabase/serverless, drizzle-orm, and dotenv for improved database interaction and environment configuration.
- Introduced new schema definitions for user and theme, allowing for structured data storage and retrieval.
- Created a new script to migrate users from a legacy database to the current PostgreSQL setup.
- Utilized Drizzle ORM for database interactions and included error handling for robust execution.
- Implemented batch processing for efficient data transfer, generating unique IDs for new user entries.
- Created a new script to migrate themes from a legacy database to the current PostgreSQL setup using Drizzle ORM.
- Implemented batch processing for efficient data transfer, generating unique IDs and handling potential duplicates during insertion.
- Enhanced error handling and logging for better visibility during the migration process.
@vercel

vercel Bot commented Sep 12, 2025

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
tinte Ready Ready Preview Comment Sep 12, 2025 8:36pm

@Railly
Railly merged commit 0fc363d into huge-refactor Sep 12, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants