Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 608 Bytes

File metadata and controls

35 lines (22 loc) · 608 Bytes

Setting up a database

Docker Dev Environment

Creating a database

Once your dev containers are running and you are inside the chatbot_server container, it is easy to create a development database.

First, install dependencies.

pnpm install

Then, create the database.

pnpm db:create

Finally, run the migrations to build the most current schema.

pnpm db:migrate

Dropping a database

You can also delete the whole database, which is sometimes useful. Simply run

pnpm db:drop

Note: Any data that was saved will be lost and unrecoverable!