dever 4 年之前
父節點
當前提交
c936e79ce5
共有 1 個文件被更改,包括 50 次插入37 次删除
  1. 50 37
      app/collection/database/info.php

+ 50 - 37
app/collection/database/info.php

@@ -97,6 +97,42 @@ $config = array
             'list'      => true,
         ),
 
+        'desc'      => array
+        (
+            'type'      => 'varchar-800',
+            'name'      => '描述-也用作分享描述',
+            'default'   => '',
+            'desc'      => '描述',
+            'match'     => 'option',
+            'update'    => 'textarea',
+            //'list'        => true,
+        ),
+
+        'pic_cover'     => array
+        (
+            'type'      => 'varchar-150',
+            'name'      => '封面图-用作列表页的图片,也用作分享图片,图片尺寸660*660px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
+            'default'   => '',
+            'desc'      => '封面图',
+            'match'     => 'is_string',
+            'update'    => 'image',
+            'key'       => '1',
+            'place'     => '660*660',
+        ),
+
+        'cate_id'       => array
+        (
+            'type'      => 'int-11',
+            'name'      => '分类',
+            'default'   => '1',
+            'desc'      => '分类',
+            'match'     => 'is_numeric',
+            'update'    => 'select',
+            'option'    => $cate,
+            'search'    => 'select',
+            //'list'        => true,
+        ),
+
         'uid'       => array
         (
             'type'      => 'int-11',
@@ -126,30 +162,6 @@ $config = array
             'update'    => 'text',
         ),
 
-        'desc'      => array
-        (
-            'type'      => 'varchar-800',
-            'name'      => '描述-也用分享描述',
-            'default'   => '',
-            'desc'      => '描述',
-            'match'     => 'is_string',
-            'update'    => 'text',
-            //'list'        => true,
-        ),
-
-        'cate_id'       => array
-        (
-            'type'      => 'int-11',
-            'name'      => '分类',
-            'default'   => '1',
-            'desc'      => '分类',
-            'match'     => 'is_numeric',
-            'update'    => 'select',
-            'option'    => $cate,
-            'search'    => 'select',
-            //'list'        => true,
-        ),
-
         'logo'     => array
         (
             'type'      => 'varchar-150',
@@ -162,18 +174,6 @@ $config = array
             'place'     => '150*150',
         ),
 
-        'pic_cover'     => array
-        (
-            'type'      => 'varchar-150',
-            'name'      => '封面图-用作列表页的图片,也用作分享图片,图片尺寸660*660px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
-            'default'   => '',
-            'desc'      => '封面图',
-            'match'     => 'is_string',
-            'update'    => 'image',
-            'key'       => '1',
-            'place'     => '660*660',
-        ),
-
         'pic_bg'        => array
         (
             'type'      => 'text-255',
@@ -383,7 +383,7 @@ $config = array
     4、当购买成功后,系统会自动使用一个{ticket_name},多余可赠送好友; 
 </p>
 <p>
-    5、好友使用你的{ticket_name}后,将成为你的下级,下级任何行为都会为你带来一定影响;
+    5、好友使用你的{ticket_name}后,将成为你的永久伙伴,伙伴任何行为都会为你带来一定影响;
 </p>",
             'desc'      => '请输入内容',
             'match'     => 'is_string',
@@ -543,6 +543,19 @@ $config = array
             'col' => 'id',
         ),
     ),
+
+    # 更新表结构
+    /*
+    'alter' => array
+    (
+        2 => array
+        (
+            //array('update', 'role', 'role', 'varchar-100 1 角色'),
+            array('add', 'unit', 'unit', 'varchar-80 张 单位'),
+        ),
+        'version' => 2,
+    ),
+    */
     
     # 管理功能
     'manage' => array