dever 6 years ago
parent
commit
f8b4b42fba
1 changed files with 14 additions and 3 deletions
  1. 14 3
      act/database/score.php

+ 14 - 3
act/database/score.php

@@ -80,13 +80,13 @@ return array
 
 		'score' 		=> array
 		(
-			'type' 		=> 'varchar-80',
+			'type' 		=> 'int-11',
 			'name' 		=> '积分',
 			'default' 	=> '',
 			'desc' 		=> '积分',
 			'match' 	=> 'option',
 			'update'	=> 'text',
-			'order'		=> 'asc',
+			'order'		=> 'desc',
 			'list'		=> true,
 		),
 		
@@ -119,6 +119,17 @@ return array
 		'delete' => false,
 	),
 
+	# 更新表结构
+	'alter' => array
+	(
+		1 => array
+		(
+			array('update', 'score', 'score', 'int-11 0 积分'),
+			//array('add', 'config', 'config', 'int-11 1 配置'),
+		),
+		'version' => 1,
+	),
+
 	# request 请求接口定义
 	'request' => array
 	(
@@ -132,7 +143,7 @@ return array
 				'state' => 1,
 			),
 			'type' => 'all',
-			'order' => array('score' => 'asc','id' => 'desc'),
+			'order' => array('score' => 'desc','id' => 'desc'),
 			'page' => array(10, 'list'),
 			'col' => '*',
 		),