Index: branches/5.2.x/install/upgrades.sql
===================================================================
diff -u -r13845 -r14089
--- branches/5.2.x/install/upgrades.sql	(.../upgrades.sql)	(revision 13845)
+++ branches/5.2.x/install/upgrades.sql	(.../upgrades.sql)	(revision 14089)
@@ -180,3 +180,21 @@
 
 # ===== v 5.1.0 =====
 ALTER TABLE Products CHANGE CachedRating CachedRating varchar(10) NOT NULL default '0';
+
+# ===== v 5.1.1-B1 =====
+ALTER TABLE Orders CHANGE ShippingOption ShippingOption TINYINT(4) NOT NULL DEFAULT '0';
+
+ALTER TABLE ProductFiles CHANGE AddedById AddedById INT(11) NULL DEFAULT NULL;
+UPDATE ProductFiles SET AddedById = NULL WHERE AddedById = 0;
+
+ALTER TABLE Products
+	CHANGE CreatedById CreatedById INT(11) NULL DEFAULT NULL ,
+	CHANGE ModifiedById ModifiedById INT(11) NULL DEFAULT NULL;
+UPDATE Products SET CreatedById = NULL WHERE CreatedById = 0;
+UPDATE Products SET ModifiedById = NULL WHERE ModifiedById = 0;
+
+# ===== v 5.1.1-B2 =====
+
+# ===== v 5.1.1-RC1 =====
+
+# ===== v 5.1.1 =====
\ No newline at end of file
