Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Version control of MDF files

I'm working on a web app (it is in asp.net mvc framework beta in visual studio 2008) and want to version control it. How do I version control the database files (*.mdf, binary) in the App_Data folder.

Is there a way to just store the tables-and-whatever definition of the database or do I really need to version control it's contents?

like image 994
Spoike Avatar asked Dec 08 '08 12:12

Spoike


1 Answers

Export the database structure as creation scripts, and potentially export some table (reference) data as insert scripts, then check those into source control.

Definitely do NOT attempt to put the database binaries (*.mdf) into source control.

like image 130
Rob Williams Avatar answered Sep 25 '22 19:09

Rob Williams