Skip to content

Add Database Guard on Generator - #13

Merged
PenguinBoi12 merged 1 commit into
mainfrom
worktree-fix-generator-database-guard
Jul 31, 2026
Merged

Add Database Guard on Generator#13
PenguinBoi12 merged 1 commit into
mainfrom
worktree-fix-generator-database-guard

Conversation

@PenguinBoi12

Copy link
Copy Markdown
Contributor

grace generate model and grace generate migration doesn't check whether a database was configured before running in a --no-database project, model would write a partial model file then crash with a raw alembic traceback, and migration would crash outright. This MR fixes that by adding a guard.

@PenguinBoi12 PenguinBoi12 added the enhancement New feature or request label Jul 31, 2026
@PenguinBoi12
PenguinBoi12 force-pushed the worktree-fix-generator-database-guard branch from 4c280da to c135039 Compare July 31, 2026 03:27
@PenguinBoi12
PenguinBoi12 merged commit 6fff500 into main Jul 31, 2026
2 checks passed
@PenguinBoi12
PenguinBoi12 deleted the worktree-fix-generator-database-guard branch July 31, 2026 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant