Commit b2d7b76
committed
Fixed a case when parent table does not have records,
Fk table tries to insert entries from previous table
and gets an error Failed to add constraint during alter
Now if parent table has 0 records, then fk table will also be empty1 parent 6305c08 commit b2d7b76
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1739 | 1739 | | |
1740 | 1740 | | |
1741 | 1741 | | |
1742 | | - | |
1743 | 1742 | | |
1744 | 1743 | | |
1745 | 1744 | | |
| |||
2812 | 2811 | | |
2813 | 2812 | | |
2814 | 2813 | | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
2815 | 2820 | | |
2816 | 2821 | | |
2817 | 2822 | | |
| |||
0 commit comments