Week Log 3
Rewrite of Week Log using Next.js, Typescript, PostgreSQL and Prisma
🧪 Continuing with the chat app experiment
19th December 2020
I did some work experimenting with prisma migrations and (for sake of an exercise) converting the experiment into a very simple chat app. My first task was to set up a way to create the initial database, and it turns out prisma migrations will do this by default if you create a schema and migrate it into an empty database.
Migrations is a preview feature in Prisma, so it's not entirely polished yet. But so far it's working pretty well, I made some tweaks and it followed along. Its changes were pretty destructive by default, though (eg. dropping and adding a column instead of renaming). Completely fine for an experimental app, but needing a bit of attention writing custom migrations if you have an existing dataset.
Otherwise the chat app is progressing smoothly, and Next.js / React has been pleasant to work with.