Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/migrationOpsContext.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Migration operations should include a review phase to assess the impact of schema changes on existing data before deployment.
- Timing of migrations should consider the usage of the affected models to minimize disruption during peak usage times.
3 changes: 3 additions & 0 deletions docs/migrationPatterns.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Before adding required fields, review the entire codebase to ensure compatibility with new schema changes, particularly for fields that impact critical functionality.
- Implement a strategy to safely introduce new fields by either making them optional initially or providing sensible default values to avoid migration failures.
- Always ensure that the migration process considers existing records and their compatibility with the new schema.
2 changes: 2 additions & 0 deletions docs/schemaContext
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- New fields should be added with consideration of existing application dependencies, ensuring they won’t disrupt current functionality.
- If a new field is critical for functionality, constraints should be established to maintain data integrity and prevent null or invalid entries.
3 changes: 2 additions & 1 deletion frontend/apps/migration-web/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,5 @@ model PRCommit {
pullRequest PullRequest @relation(fields: [pullRequestId], references: [id])
commitHash String
committedAt DateTime
}
sample String
}
Loading