diff --git a/apps/backend/src/db/knexfile.ts b/apps/backend/src/db/knexfile.ts index e0d0a6e..87684df 100644 --- a/apps/backend/src/db/knexfile.ts +++ b/apps/backend/src/db/knexfile.ts @@ -71,6 +71,9 @@ const config: { [key: string]: Knex.Config } = { migrations: { directory: "./migrations", extension: "js", + loadExtensions: [".js"], + disableMigrationsListValidation: true, + schemaName: "public", }, seeds: { directory: "./seeds", @@ -82,4 +85,6 @@ const config: { [key: string]: Knex.Config } = { }, }; -export default config; +// Use export = for CommonJS compatibility with Knex +// This compiles to module.exports = config +export = config;