/**
* Version_upgrade version Upgrade information table
*/
CREATE table ' Version_upgrade ' (
' id ' smallint (4) unsigned not NULL AUTO _increment,
' app_id ' smallint (4) unsigned not NULL DEFAULT ' 0 ' COMMENT ' client device ID 1 Android Pad 2 Android mobile 3ios phone 4iospad ',
' ver sion_id ' smallint (4) unsigned default ' 0 ' COMMENT ' large version id ',
' Version_mini ' mediumint (8) unsigned default ' 0 ' COMMENT ' Minor version ',
' version_code ' varchar (TEN) default null COMMENT ' version ID 1.2 ',
' type ' tinyint (2) unsigned default null COMMENT ' Upgrade 1 upgrade, 0 not upgrade, 2 forced upgrade ',
' apk_url ' varchar (255) default NULL,
' upgrade_point ' varchar (255) default NULL COMMENT ' Upgrade Hint ',
' status ' tinyint (2) default null,
' create_time ' int (one) default null,
' update_time ' int (one) default NULL,
PRIMARY KEY (' id ')
) Engine=innodb auto_increment=1 DEFAULT Charset=utf8;
/**
* App Table Client table
*/
CREATE TABLE ' app ' (
' ID ' smallint (4) unsigned not NULL auto_increment COMMENT ' primary key ID ',
' Name ' varchar ($) DEFAULT NULL COMMENT ' app type name: Android phone ',
' Is_encryption ' tinyint (1) Not NULL DEFAULT ' 0 ' COMMENT ' is encryption 1 encryption 0 unencrypted ',
' Key ' varchar (a) Not NULL DEFAULT ' 0 ' COMMENT ' encryption key ',
' image_size ' text COMMENT ' press Json_encode to store ',
' Create_time ' int (one) not NULL COMMENT ' creation time ',
' Update_time ' int (one) not NULL COMMENT ' update Time ',
' Status ' tinyint (1) Not NULL DEFAULT ' 1 ' COMMENT ' State 1 Normal 0 delete ',
PRIMARY KEY (' id ')
) Engine=myisam auto_increment=5 DEFAULT Charset=utf8;
Version Table versions table
App Version upgrade