From 355228c44981a8f5b62af0349b6ba79c8ae09963 Mon Sep 17 00:00:00 2001 From: Jon Jahr Date: Wed, 21 Dec 2022 00:43:29 -0800 Subject: [PATCH] docs: add a note about running migrations after changing database type (#2699) * Add note to run migrations I think it will be helpful to remind newbies to run migrations after they change their `database_type`. I'm a newbie and today I got stuck for a while because I didn't know I had to run migrations after I changed from `sqlite` to `postgres`. * Add H3 header "Changing Database Type" --- docs/content/usage/configurations.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/content/usage/configurations.md b/docs/content/usage/configurations.md index 5e2d1b59bc..d90f1b94bc 100644 --- a/docs/content/usage/configurations.md +++ b/docs/content/usage/configurations.md @@ -80,6 +80,14 @@ DATABASE_URL= Where `` is the URL of your PostgreSQL database. +### Changing Database Type + +Remember to run migrations after you change your database type to `postgres` from another type: + +```bash +medusa migrations run +``` + ### Common Configuration As Medusa internally uses [Typeorm](https://typeorm.io/) to connect to the database, the following configurations are also available: