Emails
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v95View latest version
- Migration of the Deno app to use Drizzle ORM for database management.
- Manually created initial schema migration file for SQLite database in Val Town environment.
- Added Drizzle configuration file at
shared/db/drizzle.config.ts. - Updated
deno.jsonto include a migration task (though execution faced issues). - Manually generated initial migration file at
shared/db/migrations/0000_initial_schema.sqlto define theemailstable schema.
- Ensure the migration file is compatible with Val Town's SQLite setup.
- Update the application to use Drizzle ORM for database operations if required.
- Document any further learnings or adjustments needed for Drizzle integration in Val Town.
- Decided to manually generate migration files due to compatibility issues with
drizzle-kitin Val Town. - Focus on maintaining existing data integrity during migration.
- Use of TypeScript for all code files.
- Adherence to Val Town's specific platform requirements and constraints.
- Running
drizzle-kitdirectly in Val Town environment poses challenges due to module resolution issues. - Manual migration file creation is a viable workaround for initial schema setup in constrained environments like Val Town.