Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the correct way to deploy Lightswitch project database changes to existing databases?

If you are using a Lightswitch project to manage your entities and database changes, how do you deploy changes to the entities to an existing, already deployed project database? Is the best way to run schema compare on the two db versions?

like image 399
Don Becker Avatar asked Apr 12 '11 16:04

Don Becker


1 Answers

The LightSwitch Publish wizard automatically creates a change script. It will also stop you if it cannot properly update the database schema (because you have a change that would corrupt data integrity).

LightSwitch does this by examining the destination database and comparing that to the database schema that you are trying to deploy.

like image 59
Michael Washington Avatar answered Nov 04 '22 12:11

Michael Washington