Skip to content

Fix den-dev docker-compose startup (MySQL prefix index & missing tsx loader) - #3404

Open
mohitdebian wants to merge 1 commit into
different-ai:devfrom
mohitdebian:fix/3392-den-dev-docker
Open

Fix den-dev docker-compose startup (MySQL prefix index & missing tsx loader)#3404
mohitdebian wants to merge 1 commit into
different-ai:devfrom
mohitdebian:fix/3392-den-dev-docker

Conversation

@mohitdebian

@mohitdebian mohitdebian commented Jul 31, 2026

Copy link
Copy Markdown

PR: Fix den-dev docker-compose startup

Title

Fix den-dev docker-compose startup (MySQL prefix index & missing tsx loader)

Description

This PR resolves two bugs preventing docker-compose.den-dev.yml from successfully starting the den API against a local MySQL database.

Root Cause

  1. drizzle-kit fails with a SQL syntax error when generating the schema because it double-wraps interpolated column identifiers on prefix-length indexes (e.g., sql\${table.token}(191)``).
  2. The den service fails to start because it attempts to load extensionless TypeScript schema files natively in Node without a loader. The den service command had a missing --import tsx argument.

Solution Overview

  1. Changed the prefix index definition in auth.ts to use sql.raw("token(191)") to avoid the drizzle-kit interpolation bug.
  2. Added the missing --import tsx argument to the second Node invocation in the docker compose den service command.

Testing Performed

  • Validated that docker compose -f packaging/docker/docker-compose.den-dev.yml up no longer fails on drizzle-kit push.
  • Validated that the den API successfully starts without ERR_MODULE_NOT_FOUND errors.

Screenshots

N/A

Risks

None. This strictly targets developer tooling and local database provisioning.

Follow-up Improvements

None needed.

Fixes #3392

@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, v0 Jul 31, 2026 11:18pm

@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

@mohitdebian is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

den-dev docker-compose: two bugs prevent den from starting against local MySQL (drizzle-kit index syntax + missing --import tsx)

1 participant