rabin 3 years ago
parent
commit
5a9a429b02
2 changed files with 13 additions and 1 deletions
  1. 12 0
      database/project.php
  2. 1 1
      src/Data.php

+ 12 - 0
database/project.php

@@ -258,6 +258,18 @@ return array
 			//'list'		=> true,
 		),
 
+		'config'		=> array
+		(
+			'type' 		=> 'varchar-2000',
+			'name' 		=> '基础配置-用于与数据推送的项目约定的配置信息,可以是json格式,也可是字符串',
+			'default' 	=> '',
+			'desc' 		=> '基础配置',
+			'match' 	=> 'option',
+			'update'	=> 'textarea',
+			//'edit'		=> true,
+			//'list'		=> true,
+		),
+
 		'push'		=> array
 		(
 			'type' 		=> 'varchar-2000',

+ 1 - 1
src/Data.php

@@ -179,7 +179,7 @@ class Data
         $col = implode(',', $header);
         $sql = $this->createInsertSql('data', $col, $body);
 
-        $file = Dever::data() . 'upload/data.sql';
+        $file = Dever::data() . 'data.sql';
         if (is_file($file)) {
         	unlink($file);
         }