Skip to content

chore(env): drop dead dialect + define fields from env.js exports#261

Merged
CryptoJones merged 1 commit into
masterfrom
chore/env-drop-dead-dialect-define
May 19, 2026
Merged

chore(env): drop dead dialect + define fields from env.js exports#261
CryptoJones merged 1 commit into
masterfrom
chore/env-drop-dead-dialect-define

Conversation

@CryptoJones
Copy link
Copy Markdown
Owner

Summary

Drop two dead/misleading fields from app/config/env.js:

Verification

  • grep -rn "env\.dialect\|env\.define" app/ server.js tests/ returns nothing.
  • npm run lint && npm test — 688 passing, no regressions

Test plan

  • Local lint + test pass
  • Migration runner and runtime both unaffected (they construct their own Sequelize configs)

Proudly Made in Nebraska. Go Big Red! 🌽 https://xkcd.com/2347/

`app/config/env.js` exported two fields neither consumer reads:

  - `dialect: 'postgres'` — `db.config.js` (line 28) and
    `sequelize-cli.config.js` (line 20) both hardcode `'postgres'`
    inline; neither references `env.dialect`.

  - `define: { timestamps: false }` — both consumers override with
    `define: { schema: 'dbo', timestamps: true }`, so the `false`
    in env.js was both dead AND misleading (a reader scanning env.js
    could conclude the runtime has timestamps disabled when in fact
    PR #148 flipped both consumers to `true`).

Verified via grep — nothing in app/, server.js, or tests/ touches
`env.dialect` or `env.define`. Drop both. No behavior change;
just stops env.js from misrepresenting the runtime.

688 tests still pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@CryptoJones CryptoJones merged commit 998a37b into master May 19, 2026
3 checks passed
@CryptoJones CryptoJones deleted the chore/env-drop-dead-dialect-define branch May 19, 2026 13:22
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.

1 participant