General version if new field or new state is handled correctly

Source: Internet
Author: User

Principle: If a version needs to add new fields or new state, the program must consider compatibility with historical old data, that is, the premise of proper operation of the program can not rely on the complete maintenance of history
Practice of proper implementation:
1 If a version involves new fields or new states, program compatibility scenarios and historical data maintenance scripts must be given during the design phase.
2 The correct release order is: Execute the DDL script first (if new field), then publish the application (the program is compatible with historical data), and finally execute the DML script to maintain historical data.

Benefits of this approach:
1 if the script does not maintain the data fully, the compatible program will work without rolling back the program.
2 forced encoding supports DDL-first release.
3 The program will not reject the service if the publishing order is insane.

We need to do this:
1 The design phase must consider the compatibility plan
2 The DDL script executes first and the program must be able to execute correctly

General version if new field or new state is handled correctly

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.