App Version upgrade

Source: Internet
Author: User

/**
* 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.