Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions
kevin
@kevinoconnell
whats the easiest way to set up postgres DB migrations in typescript if you already have a working database and you were too lazy to set them up initially? (speaking for a friend, totally not me guys don't worry) ideally can dump a given DB schema and run a command to generate them so others can run it locally much easier i use this https://www.npmjs.com/package/pg for my db
6 replies
2 recasts
5 reactions
kevin
@kevinoconnell
probably will end up using this https://salsita.github.io/node-pg-migrate/ alongside some other stuff but wanted to hear what others have used (who have been in similar spots)
0 reply
0 recast
1 reaction
alex
@alexgrover.eth
Most modern ORMs can introspect your existing schema and do this. I use Drizzle
3 replies
1 recast
5 reactions
atlasmoth
@osuji.eth
Are you using an orm?
1 reply
0 recast
0 reaction
@git
dbmate is language agnostic
0 reply
0 recast
1 reaction
Complexlity
@complexlity
Came here to say drizzle just works but someone already did
0 reply
0 recast
0 reaction
Donald Trump
@foobarbaz
Check out liquibase
0 reply
0 recast
0 reaction