fix(entity): set the default value of UpdateDateColumn to CURRENT_TIMESTAMP#2913
fix(entity): set the default value of UpdateDateColumn to CURRENT_TIMESTAMP#2913
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
📝 WalkthroughWalkthroughThis PR adds a Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Fix future TypeORM migrations by explicitly setting the default value for
@UpdateDateColumntoCURRENT_TIMESTAMPacross all entities. This prevents migrations from incorrectly generating withdatetime('now').How Has This Been Tested?
Try to generate a TypeORM migration before/after with:
pnpm migration:generate testThe migration after this change doesn't contain all the changes on the
updatedAtcolumns.Screenshots / Logs (if applicable)
N/A
Checklist:
pnpm buildpnpm i18n:extractSummary by CodeRabbit