Commit 61babb8
Fix #[foreign_key] / #[referenced_by] compile checks to be table-pair specific (#117)
* Initial plan
* Fix foreign_key/referenced_by compile checks to include both table names
The compile error check identifiers previously used `this_table` as a
suffix, which meant that having ANY foreign_key or referenced_by
attribute on a table would satisfy the check, even if it referenced a
different table. Now the identifiers include both the referenced and
referencing table names, ensuring compile errors are correctly raised
when specific table pairs are missing their attributes.
Co-authored-by: tamaro-skaljic <49238587+tamaro-skaljic@users.noreply.github.com>
* Run cargo fmt on derive-input/src/internal/dsl/method.rs
Co-authored-by: tamaro-skaljic <49238587+tamaro-skaljic@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: tamaro-skaljic <49238587+tamaro-skaljic@users.noreply.github.com>1 parent 3f1959f commit 61babb8
1 file changed
+18
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2537 | 2537 | | |
2538 | 2538 | | |
2539 | 2539 | | |
2540 | | - | |
| 2540 | + | |
| 2541 | + | |
2541 | 2542 | | |
2542 | 2543 | | |
2543 | 2544 | | |
2544 | 2545 | | |
2545 | | - | |
| 2546 | + | |
| 2547 | + | |
2546 | 2548 | | |
2547 | 2549 | | |
2548 | 2550 | | |
| |||
2839 | 2841 | | |
2840 | 2842 | | |
2841 | 2843 | | |
2842 | | - | |
| 2844 | + | |
| 2845 | + | |
2843 | 2846 | | |
2844 | 2847 | | |
2845 | 2848 | | |
2846 | 2849 | | |
2847 | 2850 | | |
2848 | | - | |
| 2851 | + | |
| 2852 | + | |
2849 | 2853 | | |
2850 | 2854 | | |
2851 | 2855 | | |
| |||
3285 | 3289 | | |
3286 | 3290 | | |
3287 | 3291 | | |
3288 | | - | |
| 3292 | + | |
| 3293 | + | |
| 3294 | + | |
| 3295 | + | |
3289 | 3296 | | |
3290 | | - | |
| 3297 | + | |
3291 | 3298 | | |
3292 | 3299 | | |
3293 | 3300 | | |
3294 | | - | |
| 3301 | + | |
| 3302 | + | |
| 3303 | + | |
| 3304 | + | |
3295 | 3305 | | |
3296 | | - | |
| 3306 | + | |
3297 | 3307 | | |
3298 | 3308 | | |
3299 | 3309 | | |
| |||
0 commit comments