fix: defineMikroOrmCliConfig helper to provide default db credentials (#8131)
This commit is contained in:
1 parent
1bd1d4f394
commit
5bb870948a
2 files changed
+9
No files matched your search
@@ -20,6 +20,9 @@ describe("defineMikroOrmCliConfig", () => {
|
|||||||
expect(config).toEqual({
|
expect(config).toEqual({
|
||||||
entities: [{}],
|
entities: [{}],
|
||||||
type: "postgresql",
|
type: "postgresql",
|
||||||
|
host: "127.0.0.1",
|
||||||
|
user: "postgres",
|
||||||
|
password: "",
|
||||||
dbName: "medusa-fulfillment",
|
dbName: "medusa-fulfillment",
|
||||||
migrations: {
|
migrations: {
|
||||||
generator: expect.any(Function),
|
generator: expect.any(Function),
|
||||||
@@ -36,6 +39,9 @@ describe("defineMikroOrmCliConfig", () => {
|
|||||||
entities: [{}],
|
entities: [{}],
|
||||||
type: "postgresql",
|
type: "postgresql",
|
||||||
dbName: "medusa-my-test",
|
dbName: "medusa-my-test",
|
||||||
|
host: "127.0.0.1",
|
||||||
|
user: "postgres",
|
||||||
|
password: "",
|
||||||
migrations: {
|
migrations: {
|
||||||
generator: expect.any(Function),
|
generator: expect.any(Function),
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -56,6 +56,9 @@ export function defineMikroOrmCliConfig(
|
|||||||
return {
|
return {
|
||||||
type: "postgresql",
|
type: "postgresql",
|
||||||
dbName: databaseName,
|
dbName: databaseName,
|
||||||
|
host: "127.0.0.1",
|
||||||
|
user: "postgres",
|
||||||
|
password: "",
|
||||||
...options,
|
...options,
|
||||||
entities,
|
entities,
|
||||||
migrations: {
|
migrations: {
|
||||||
|
|||||||
Reference in new issue
Block a user