Repository navigation
Add detailed reporting for schema mismatches in 'not like target database' errors - #2778
Conversation
SandPod
left a comment
There was a problem hiding this comment.
Please add some tests that validate this works as expected and produces the correct output for the different scenarios.
b4fc2f1 to
7af7394
Compare
|
@SandPod done, also did some refactoring on comparison (like) methods. |
620f89b to
91a34af
Compare
SandPod
left a comment
There was a problem hiding this comment.
Another round of comments.
It is great to get good test coverage on this part of the code. The time spent there is really valuable.
Please think about the output that the user will see. We should make sure it is as clear as possible so that issues related to a table are nicely grouped together, and issues related to an index are also grouped together.
da816c3 to
d4d052b
Compare
d4d052b to
5a797d7
Compare
SandPod
left a comment
There was a problem hiding this comment.
I think the changes are good now, we just need to polish the message so that the output makes sense to the developer.
|
@SandPod check the new update and let me know if this is good enough. |
8560acd to
41500c4
Compare
41500c4 to
0b77899
Compare
PR Description
Summary:
This PR introduces detailed reporting for schema mismatches in
'not like target database'errors. It adds a structured approach to handle and report differences in tables, columns, indexes, and foreign keys during schema comparison.Key Changes:
toString()method for better readability of schema comparison warnings.Closes: #1262
Pre-launch Checklist
///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.If you need help, consider asking for advice on the discussion board.
Breaking changes