Skip to content

[Bug]: column p1.raw_min_quantity does not exist #14389

@dennis-duran

Description

@dennis-duran

Package.json file

{
  "name": "@thor/backend",
  "version": "0.0.1",
  "description": "A starter for Medusa projects.",
  "author": "Medusa (https://medusajs.com)",
  "license": "MIT",
  "keywords": [
    "sqlite",
    "postgres",
    "typescript",
    "ecommerce",
    "headless",
    "medusa"
  ],
  "scripts": {
    "build": "medusa build",
    "type-check": "tsc --noEmit",
    "seed": "medusa exec ./src/scripts/seed.ts",
    "reseed": "medusa exec ./src/scripts/reseed.ts",
    "config:show": "npx tsx src/scripts/printMedusaConfig.ts",
    "db:build": "yarn medusa db:create && yarn medusa db:migrate && yarn run seed && yarn medusa user -e [email protected] -p supersecret -i admin",
    "db:build-default": "yarn medusa db:create && yarn medusa db:migrate && npx medusa exec src/scripts/default-instalation-seed.ts && yarn medusa user -e [email protected] -p supersecret -i admin",
    "start": "medusa start",
    "dev": "medusa develop",
    "test:integration:http": "TEST_TYPE=integration:http NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit",
    "test:integration:modules": "TEST_TYPE=integration:modules NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit",
    "test:unit": "TEST_TYPE=unit NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --forceExit"
  },
  "dependencies": {
    "@hookform/resolvers": "^3.10.0",
    "@medusajs/admin-sdk": "~2.12.0",
    "@medusajs/cli": "~2.12.0",
    "@medusajs/draft-order": "~2.12.0",
    "@medusajs/framework": "~2.12.0",
    "@medusajs/icons": "~2.12.0",
    "@medusajs/medusa": "~2.12.0",
    "@mikro-orm/core": "6.4.16",
    "@mikro-orm/knex": "6.4.16",
    "@mikro-orm/migrations": "6.4.16",
    "@mikro-orm/postgresql": "6.4.16",
    "algoliasearch": "^5.37.0",
    "awilix": "^8.0.1",
    "dotenv": "^17.2.3",
    "pg": "^8.13.0",
    "resend": "^6.1.3"
  },
  "peerDependencies": {
    "@tanstack/react-query": "5.64.2",
    "react-hook-form": "7.49.1",
    "react-router-dom": "6.20.1",
    "zod": "3.25.76"
  },
  "devDependencies": {
    "@faker-js/faker": "^10.0.0",
    "@medusajs/test-utils": "2.12.0",
    "@mikro-orm/cli": "6.4.16",
    "@swc/core": "1.5.7",
    "@swc/jest": "^0.2.36",
    "@types/jest": "^29.5.13",
    "@types/node": "^20.0.0",
    "@types/react": "^18.3.2",
    "@types/react-dom": "^18.2.25",
    "jest": "^29.7.0",
    "prop-types": "^15.8.1",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "ts-node": "^10.9.2",
    "typescript": "^5.6.2",
    "vite": "^5.2.11",
    "yalc": "^1.0.0-pre.53"
  },
  "engines": {
    "node": ">=20"
  }
}

Node.js version

v22.20.0

Database and its version

PostgreSQL 16.11

Operating system name and version

Ubuntu 24.04.1

Browser name

Chrome

What happended?

If my application runs in production and I try to create a product, I get the error "column p1.raw_min_quantity does not exist". However, when the application runs in development mode, everything works.

Expected behavior

Product created successfully

Actual behavior

N/A

Link to reproduction repo

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions