Skip to content

Add missing DB_SCHEMA to .env template - #70

Merged
lmajano merged 2 commits into
developmentfrom
copilot/fix-missing-db-schema-key
May 14, 2026
Merged

Add missing DB_SCHEMA to .env template#70
lmajano merged 2 commits into
developmentfrom
copilot/fix-missing-db-schema-key

Conversation

CopilotAI commented May 14, 2026

Copy link
Copy Markdown
Contributor

migrate install falsely reports the migration table as already installed when DB_SCHEMA is absent from .env, because cfmigrations can't resolve the target schema.

Change

  • templates/env.example: Added DB_SCHEMA=coldbox after DB_DATABASE in the Database Information section.
 DB_DATABASE=coldbox
+DB_SCHEMA=coldbox
DB_USER=root

Since app.cfc copies this template to .env on project creation, newly scaffolded apps will include the key and migrate install will work without manual intervention.

CopilotAI changed the title [WIP] Fix missing DB_SCHEMA key in .env for migrationsAdd missing DB_SCHEMA to .env templateMay 14, 2026
CopilotAI requested a review from lmajanoMay 14, 2026 20:49
@lmajano
lmajano marked this pull request as ready for review May 14, 2026 20:53
CopilotAI review requested due to automatic review settings May 14, 2026 20:53
@lmajano
lmajano merged commit c788aaa into developmentMay 14, 2026
1 check passed
@lmajano
lmajano deleted the copilot/fix-missing-db-schema-key branch May 14, 2026 20:53

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds DB_SCHEMA=coldbox to the .env template so newly scaffolded apps have a schema set, preventing migrate install from incorrectly reporting the migration table as already installed.

Changes:

  • Add DB_SCHEMA=coldbox entry to templates/env.example after DB_DATABASE.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for freeto 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.

Missing DB_SCHEMA key in generated .env causes migrate install to falsely report table as already installed

3 participants

@lmajano