Skip to content

fix!: rename database tables to lowercase#18

Open
johnf wants to merge 1 commit intomainfrom
fix/rename-tables-lowercase
Open

fix!: rename database tables to lowercase#18
johnf wants to merge 1 commit intomainfrom
fix/rename-tables-lowercase

Conversation

@johnf
Copy link
Copy Markdown
Collaborator

@johnf johnf commented Mar 27, 2026

Summary

  • Add @@map directives to Entity and File models so Prisma maps them to lowercase table names (entity, file)
  • Aligns with common MySQL conventions

BREAKING CHANGE: Existing databases must run the migration to rename tables from Entity/File to entity/file.

Test plan

  • pnpm lint passes
  • Migration applies cleanly to existing database

Add @@Map directives to Entity and File models so Prisma maps them to
lowercase table names, aligning with common MySQL conventions.

BREAKING CHANGE: Existing databases must run the migration to rename
tables from Entity/File to entity/file.
@github-actions
Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 100% (🎯 100%) 329 / 329
🔵 Statements 100% (🎯 100%) 339 / 339
🔵 Functions 100% (🎯 100%) 51 / 51
🔵 Branches 100% (🎯 100%) 159 / 159
File CoverageNo changed files found.
Generated in workflow #52 for commit e8d13e2 by the Vitest Coverage Report Action

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.

2 participants