hell yeah table time
We need to add the tables from the Notion into D1. I think a simple reset script is our easiest way to do this.
Write this in the other repo - if you run npx wrangler dev, it should spin up a local worker on your PC that will let you test it. This can be really simple - literally just add to the existing script that creates the items table to add all of the other tables.
Some safeguards on accidentally deleting the entire prod database with this script might be nice, but i can't think of any so idk add them if u think of some
Feel free to let @some-molasses know when this is done and they can run it on the production D1 instance.
hell yeah table time
We need to add the tables from the Notion into D1. I think a simple reset script is our easiest way to do this.
Write this in the other repo - if you run
npx wrangler dev, it should spin up a local worker on your PC that will let you test it. This can be really simple - literally just add to the existing script that creates theitemstable to add all of the other tables.Some safeguards on accidentally deleting the entire prod database with this script might be nice, but i can't think of any so idk add them if u think of some
Feel free to let @some-molasses know when this is done and they can run it on the production D1 instance.