Index: temp/trunk/data/downloads/module/mdl_epsilon.php
===================================================================
--- temp/trunk/data/downloads/module/mdl_epsilon.php	(revision 7423)
+++ temp/trunk/data/downloads/module/mdl_epsilon.php	(revision 7424)
@@ -61,4 +61,7 @@
 	if(count($objPage->arrErr) == 0) {
 		
+		// ÈÆÍÑ¹àÌÜ¤òÄÉ²Ã
+		sfAlterMemo();
+		
 		// ÍøÍÑ¥³¥ó¥Ó¥Ë¤Ë¥Á¥§¥Ã¥¯¤¬Æþ¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¥Ï¥¤¥Õ¥ó¶èÀÚ¤ê¤ËÊÔ½¸¤¹¤ë
 		$convCnt = count($_POST["convenience"]);
@@ -70,6 +73,8 @@
 		}
 		
-		sfprintr($convenience);
+		// DEL/INS¤ÇÅÐÏ¿¤¹¤ë¡£
+		$delsql = "DELETE FROM dtb_payment";
 		
+	
 		// javascript¼Â¹Ô
 		//$objPage->tpl_onload = "window.close();";
Index: temp/trunk/data/lib/slib.php
===================================================================
--- temp/trunk/data/lib/slib.php	(revision 7180)
+++ temp/trunk/data/lib/slib.php	(revision 7424)
@@ -69,4 +69,46 @@
 						relname";
 			$arrRet = $objQuery->getAll($sql, array($table_name));
+			if(count($arrRet) > 0) {
+				return true;
+			}
+		}else if ($db_type == "mysql") {
+			$sql = "SHOW TABLE STATUS LIKE ?";
+			$arrRet = $objQuery->getAll($sql, array($table_name));
+			if(count($arrRet) > 0) {
+				return true;
+			}
+		}
+	}
+	return false;
+}
+
+// ¥«¥é¥à¤ÎÂ¸ºß¥Á¥§¥Ã¥¯
+function sfColumnExists($table_name, $col_name, $dsn = "") {
+	if($dsn == "") {
+		if(defined('DEFAULT_DSN')) {
+			$dsn = DEFAULT_DSN;
+		} else {
+			return;
+		}
+	}
+	
+	$objQuery = new SC_Query($dsn, true, true);
+	// Àµ¾ï¤ËÀÜÂ³¤µ¤ì¤Æ¤¤¤ë¾ì¹ç
+	if(!$objQuery->isError()) {
+		list($db_type) = split(":", $dsn);
+		// postgresql¤Èmysql¤È¤Ç½èÍý¤òÊ¬¤±¤ë
+		if ($db_type == "pgsql") {
+			$sql = "SELECT
+					    a.attname
+					FROM
+					    pg_class c, pg_attribute a
+					WHERE
+					    c.relname=? AND
+					    a.attname=? AND
+					    c.oid=a.attrelid AND
+					    a.attnum > 0
+					ORDER BY
+					    a.attnum";
+			$arrRet = $objQuery->getAll($sql, array($table_name, $col_name));
 			if(count($arrRet) > 0) {
 				return true;
