--- Updater-orig.cs	2007-08-08 16:17:30.000000000 -0400
+++ Updater.cs	2007-08-08 16:20:23.000000000 -0400
@@ -119,8 +119,28 @@ namespace FSpot.Database {
 						" WHERE icon LIKE \"stock_icon:f-spot-other.png\"");
 			});
 			
-			// Update to version 7.0
-			//AddUpdate (new Version (7,0),delegate () {
+                        //Version 7.0, add a md5sum field to photos
+			AddUpdate (new Version (7,0),delegate () {
+				System.Console.WriteLine ("Will add a md5sum field to photos!");
+				string tmp_photos = MoveTableToTemp ("photos");
+				ExecuteNonQuery (
+					"CREATE TABLE photos (                                     " +
+					"	id                 INTEGER PRIMARY KEY NOT NULL,   " +
+					"       time               INTEGER NOT NULL,	   	   " +
+					"       directory_path     STRING NOT NULL,		   " +
+					"       name               STRING NOT NULL,		   " +
+					"       description        TEXT NOT NULL,	           " +
+					"       roll_id            INTEGER NOT NULL,		   " +
+                                        "       md5sum             STRING NOT NULL,                " +
+					"       default_version_id INTEGER NOT NULL		   " +
+					")");
+				ExecuteScalar (String.Format("INSERT INTO photos SELECT id, time, directory_path, name, description, rollid, '', default_version_id FROM {0}", tmp_photos));
+
+			//});
+
+
+			// Update to version 8.0
+			//AddUpdate (new Version (8,0),delegate () {
 			//	do update here
 			//});
 
