Migration Question on adding On Delete Cascade #3340
-
Hello, I added
When I looked online on how to migrate this, I saw that I have to create a new temptable and switch them however I just randomly added this code and it worked. Tests are passing
I'm not sure how my tests passed since I didnt provide any change in the function. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Oh okay, I got lost in the web documentation but after reading the documentation in the code and reading the code, I realized it does the switch! So I guess my migration actually works. Just quick question can I migrate any table like this since essentially it switches to a new one? Like even if I add a column would the only difference be this function being slower than m.addColumn ? |
Beta Was this translation helpful? Give feedback.
Oh okay, I got lost in the web documentation but after reading the documentation in the code and reading the code, I realized it does the switch! So I guess my migration actually works. Just quick question can I migrate any table like this since essentially it switches to a new one? Like even if I add a column would the only difference be this function being slower than m.addColumn ?