module.exports.up=function(onSuccess,onFailed){
	var dbo=new entity.Base();
	dbo.saveToDB("recipe_drink",["recipe_code","drink_code","quantity"],
		[
			["1","1",0.5],
			["1","2",0.5],
			["1","4",0.5],
			["1","8",0.5],
			["2","1",1],
			["2","8",0.3],
			["2","12",0.4],
			["3","1",1],
			["3","8",0.3],
			["3","12",0.4],
			["4","1",0.4],
			["4","2",0.4],
			["4","3",0.4],
			["4","4",0.4],
			["4","5",0.4],
			["5","1",0.3],
			["5","2",0.3],
			["5","3",0.3],
			["6","1",0.5],
			["6","3",0.5],
			["7","1",0.25],
			["7","3",0.25],
			["7","5",0.25],
			["7","7",0.25]
		],[],onSuccess,onFailed);
}
module.exports.down=function(onSuccess,onFailed){
	//TODO:delete all the data
	var dbo=new entity.Base("recipe_drink");
	dbo.delete("1=1",true);
	onSuccess();
}
@@ -151,27 +151,26 @@
 %09%09%09%5B%221%22,%221%22,
+1
 0
-.5
 %5D,%0A%09%09%09%5B%221%22,%22
@@ -172,19 +172,17 @@
 %221%22,%222%22,
-0.5
+6
 %5D,%0A%09%09%09%5B%22
@@ -188,19 +188,17 @@
 %221%22,%224%22,
-0.5
+6
 %5D,%0A%09%09%09%5B%22
@@ -204,19 +204,17 @@
 %221%22,%228%22,
-0.5
+7
 %5D,%0A%09%09%09%5B%22
@@ -217,24 +217,25 @@
 %09%09%5B%222%22,%221%22,1
+0
 %5D,%0A%09%09%09%5B%222%22,%22
@@ -233,26 +233,24 @@
 %09%09%09%5B%222%22,%228%22,
-0.
 3%5D,%0A%09%09%09%5B%222%22,
@@ -250,26 +250,24 @@
 %09%09%5B%222%22,%2212%22,
-0.
 4%5D,%0A%09%09%09%5B%223%22,
@@ -271,16 +271,17 @@
 3%22,%221%22,1
+0
 %5D,%0A%09%09%09%5B%22
@@ -287,18 +287,16 @@
 %223%22,%228%22,
-0.
 3%5D,%0A%09%09%09%5B
@@ -304,18 +304,16 @@
 3%22,%2212%22,
-0.
 4%5D,%0A%09%09%09%5B
@@ -320,18 +320,16 @@
 %224%22,%221%22,
-0.
 4%5D,%0A%09%09%09%5B
@@ -336,18 +336,16 @@
 %224%22,%222%22,
-0.
 4%5D,%0A%09%09%09%5B
@@ -352,18 +352,16 @@
 %224%22,%223%22,
-0.
 4%5D,%0A%09%09%09%5B
@@ -368,18 +368,16 @@
 %224%22,%224%22,
-0.
 4%5D,%0A%09%09%09%5B
@@ -384,18 +384,16 @@
 %224%22,%225%22,
-0.
 4%5D,%0A%09%09%09%5B
@@ -400,18 +400,16 @@
 %225%22,%221%22,
-0.
 3%5D,%0A%09%09%09%5B
@@ -416,18 +416,16 @@
 %225%22,%222%22,
-0.
 3%5D,%0A%09%09%09%5B
@@ -432,18 +432,16 @@
 %225%22,%223%22,
-0.
 3%5D,%0A%09%09%09%5B
@@ -448,18 +448,16 @@
 %226%22,%221%22,
-0.
 5%5D,%0A%09%09%09%5B
@@ -464,18 +464,16 @@
 %226%22,%223%22,
-0.
 5%5D,%0A%09%09%09%5B
@@ -480,19 +480,18 @@
 %227%22,%221%22,
-0.
 2
+.
 5%5D,%0A%09%09%09%5B
@@ -498,19 +498,18 @@
 %227%22,%223%22,
-0.
 2
+.
 5%5D,%0A%09%09%09%5B
@@ -516,19 +516,18 @@
 %227%22,%225%22,
-0.
 2
+.
 5%5D,%0A%09%09%09%5B
@@ -538,11 +538,10 @@
 %227%22,
-0.
 2
+.
 5%5D%0A%09

change the test data