0
Kavandatud
Better model migration for renaming
In my project I had a table, let's call it table_1
. I decided to rename it to table_2
. Then I generated a model migration using Vertabelo and the resulting code dropped the table_1
, and then created a new table_2
. Fortunately, the table is currently empty, so that's not an issue. However, the next time I'm using the feature, I'd like Vertabelo to notice that I renamed the table, not deleted it.
0
Kavandatud
anonymous 3 aastat tagasi
Customer support service by UserEcho