Skip to content

Create tables in D1 #3

@some-molasses

Description

@some-molasses

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions