From c9ce9189822c849a87f1c4ade446c037ef74266d Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 14 Oct 2024 09:58:39 +0300 Subject: [PATCH] docs: small structure fixed to db command reference (#9446) --- .../app/medusa-cli/commands/db/page.mdx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/www/apps/resources/app/medusa-cli/commands/db/page.mdx b/www/apps/resources/app/medusa-cli/commands/db/page.mdx index e6ad4c82ef..8f70bd6835 100644 --- a/www/apps/resources/app/medusa-cli/commands/db/page.mdx +++ b/www/apps/resources/app/medusa-cli/commands/db/page.mdx @@ -154,6 +154,8 @@ Use this command if you're setting up a Medusa project or database manually. +--- + ## db\:create Creates a database for the Medusa application with the specified name, if it doesn't exit. @@ -170,7 +172,7 @@ Use this command if you want to only create a database. -## Options +### Options @@ -229,6 +231,8 @@ Use this command if you want to only create a database.
+--- + ## db\:generate Generate a migration file for the latest changes in one or more modules. @@ -237,7 +241,7 @@ Generate a migration file for the latest changes in one or more modules. npx medusa db:generate ``` -## Arguments +### Arguments @@ -268,6 +272,8 @@ npx medusa db:generate
+--- + ## db\:migrate Run the latest migrations to reflect changes on the database, and sync link definitions with the database. @@ -363,6 +369,8 @@ Use this command if you've updated the Medusa packages, or you've created custom +--- + ## db\:rollback Revert the last migrations ran on one or more modules. @@ -371,6 +379,8 @@ Revert the last migrations ran on one or more modules. npx medusa db:rollback ``` +### Arguments + @@ -400,6 +410,8 @@ npx medusa db:rollback
+--- + ## db\:sync-links Sync the database with the link definitions in your application, including the definitions in Medusa's modules.