chore: Apply defineMikroOrmCliConfig (#7975)

**What**
Ensure all module rely on the same config for the dev db

FIXES CORE-2493
This commit is contained in:
Adrien de Peretti
2024-07-05 13:10:03 +02:00
committed by GitHub
parent 1393f51046
commit f4dd390ab1
21 changed files with 61 additions and 126 deletions

View File

@@ -1,12 +1,6 @@
import * as entities from "./src/models"
import { TSMigrationGenerator } from "@medusajs/utils"
import { defineMikroOrmCliConfig, Modules } from "@medusajs/utils"
module.exports = {
export default defineMikroOrmCliConfig(Modules.API_KEY, {
entities: Object.values(entities),
schema: "public",
clientUrl: "postgres://postgres@localhost/medusa-api-key",
type: "postgresql",
migrations: {
generator: TSMigrationGenerator,
},
}
})