technology.4.10.23
I had the same hiccups today that I had last week. My migrations got out of sync, one of them failed, and I scrambled to get it all working again. The post form last week saved my ass.
The original schema had some naming problems. In the assessment table, userId
was userId
. In the proposals and repairs table, it was user_id
. Thus, when I decided not to drop these columns but to hold onto the data, I just renamed each with a post-fix old
– a silly oversight because they should really all be userIdOld
. instead, they became userId_old
and user_id_old
. blah blah I did a bunch of little migrations in dev to try to fix it, prisma kept autogenerating to drop a bunch of shit.
maybe I should start each post with an interpretive problem, or the thing the specific problem I was trying to solve that day, and then write a little how to guide? it’s more fun to just sort of ramble, but the other way would probably help me get more out of these / give them a little more structure / make me articulate what it is i’m actually doing.
example questions:
how do you connect to a remote postgresql database hosted on RDS?
how do you connect to a local postgresql database?
how do you add an array of objects to an interface in Typescript?
what is an interface in typescript?
how do you rollback a prisma migration in production?
how do you pass data from a parent element to a child element in react? in next?
how do you do a find and map based off of properties you get back from your database?
how do you do chatGPT driven development lmao?
how do you write a how to?
how do you succumb to the pressures of industry and toss your dreams of getting your phd and becoming an English Professor out the window?
are you the friend of Rodya who is nothing but a reflection of the current ideological zeitgeist?
is god real?
was foucault bald? yes.
what are the little white patches I get on my tongue when I drink too much coffee?
is it still work if I’m at my desk but reading about sports?
when will I understand algorithms well enough to interview?
when will I not?