Please help me understand this.
I have two .net servers: -Production -Staging
Whenever I add a new table fields to my existing DB, I have to do code first migration, I also have to add this new field to the class type in my model.cs, then I have to ask my Network admin to run the sql queries to alter table, all of this is on Staging.
Now I am ready to move to production, so I ask my network administrator to alter tables in production, and i was waiting for the site to go down as the files in
wwwroot/productionfiles
doesn't have my new changes with respect to code first migration, but the site didn't do down, the site works.
I am confused, I thought I need to follow the same steps for production as I have always followed in staging?
- why did my production server worked only with an "alter table" for the database
- yet my staging server always requires me to run "alter table..." for the database, then run code first migration in my code???
help me understand.