upload_upload.php 1.3 KB

123456789101112131415161718
  1. <?php return array (
  2. 'time' => 1480978557,
  3. 'table' => 'upload_upload',
  4. 'create' => 'DROP TABLE IF EXISTS `upload_upload`;CREATE TABLE `upload_upload`(`id` INT(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL COMMENT \'配置ID\',`name` VARCHAR(24) NOT NULL DEFAULT \'\' COMMENT \'配置名\',`width` INT(11) NOT NULL DEFAULT 0 COMMENT \'限制宽度\',`height` INT(11) NOT NULL DEFAULT 0 COMMENT \'限制高度\',`size` INT(11) NOT NULL DEFAULT 0 COMMENT \'限制大小(字节)\',`type` VARCHAR(255) NOT NULL DEFAULT \'\' COMMENT \'限制文件后缀类型-多个用逗号隔开\',`cover` INT(1) NOT NULL DEFAULT \'1\' COMMENT \'是否覆盖\',`state` TINYINT(1) NOT NULL DEFAULT \'1\' COMMENT \'状态\',`cdate` INT(11) NOT NULL DEFAULT 0 COMMENT \'录入时间\') ENGINE = innodb',
  5. 'struct' =>
  6. array (
  7. 'id' => 0,
  8. 'name' => 1,
  9. 'width' => 2,
  10. 'height' => 3,
  11. 'size' => 4,
  12. 'type' => 5,
  13. 'cover' => 6,
  14. 'state' => 7,
  15. 'cdate' => 8,
  16. ),
  17. 'insert' => 'INSERT INTO `upload_upload` (name,cover,type,state,cdate) VALUES ("默认图片配置",1,"jpg,png,gif",1,1480978557),("默认音频配置",1,"mp3",1,1480978557),("默认视频配置",1,"mp4",1,1480978557),("默认文件配置",1,"jpg,png,gif,doc,pdf,rar,zip,xls,xlsx,docx",1,1480978557)',
  18. );