From a8b41e74ee135562dbdc9291ad6905adbfbe505a Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Wed, 13 Nov 2024 17:04:16 +0530 Subject: [PATCH 1/2] fix: do not update the .env.template file with the database name --- packages/medusa/src/commands/db/create.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/medusa/src/commands/db/create.ts b/packages/medusa/src/commands/db/create.ts index d8aac928e806b..5dd2d6b48ad85 100644 --- a/packages/medusa/src/commands/db/create.ts +++ b/packages/medusa/src/commands/db/create.ts @@ -138,7 +138,7 @@ export async function dbCreate({ if (await dbExists(client, dbName)) { logger.info(`Database "${dbName}" already exists`) - envEditor.set("DB_NAME", dbName) + envEditor.set("DB_NAME", dbName, { withEmptyTemplateValue: true }) await envEditor.save() logger.info(`Updated .env file with "DB_NAME=${dbName}"`) From b455df0ba6e923928f92b30ac3afb0717a71bd6b Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Wed, 13 Nov 2024 17:04:55 +0530 Subject: [PATCH 2/2] Create gentle-dancers-count.md --- .changeset/gentle-dancers-count.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/gentle-dancers-count.md diff --git a/.changeset/gentle-dancers-count.md b/.changeset/gentle-dancers-count.md new file mode 100644 index 0000000000000..aa70f11cab91d --- /dev/null +++ b/.changeset/gentle-dancers-count.md @@ -0,0 +1,5 @@ +--- +"@medusajs/medusa": patch +--- + +fix: do not update the .env.template file with the database name