Data version upgrading method, device and equipment and computer storage medium
By obtaining and encapsulating the target upgrade image of the application image and data upgrade program, the problem of inefficient application version upgrade efficiency and mismatch in the B/S architecture is solved, and flexible and efficient data version upgrade is achieved.
Patent Information
- Application Number
- CN202411425848.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2025-01-14
AI Technical Summary
During the application version upgrade process of B/S architecture, the data upgrade script in the existing technology is pre-set, resulting in low application upgrade efficiency, and the data version upgrade is likely to mismatch with the application version upgrade, resulting in overall upgrade failure.
By receiving user upgrade request information, obtain target upgrade images of encapsulated application images and multiple data upgrade programs, determine the data upgrade program based on the data status information of adjacent versions of the application, encapsulate application images and data upgrade programs, and form the target Upgrade the image for flexible upgrade of applications.
It improves the flexibility and efficiency of application version upgrades, avoids the problem of mismatch between application and data version upgrades, and improves the overall upgrade success rate.
Smart Images

Figure CN119311294A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet of Things, and in particular to a method, device, equipment, computer storage medium and computer program product for data version upgrade. Background Art
[0002] At present, in the process of upgrading the application version of the B / S (Browser / Server) architecture application, the data used by the application also needs to be upgraded to avoid the phenomenon that the application cannot run normally.
[0003] In the related art, the data used by the application is usually upgraded by writing a corresponding data upgrade script. However, since this data upgrade script is pre-set each time it is used, the application data can only be upgraded based on the pre-configured data upgrade script, resulting in low application upgrade efficiency. Summary of the invention
[0004] The embodiments of the present disclosure provide a method, apparatus, device, computer storage medium and computer program product for upgrading a data version, which can improve the upgrading efficiency of application software.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for upgrading a data version, the method comprising:
[0006] Receive upgrade request information input by the user on the target interface, where the upgrade request information includes information about the current version and information about the target version;
[0007] In response to the upgrade request information, a target upgrade image is obtained, where the target upgrade image is obtained by encapsulating the application image and multiple data upgrade programs; the multiple data upgrade programs are data upgrade programs for upgrading the application from version i to version j in sequence according to the version size, where j is greater than i, i is an integer greater than or equal to 1, and j is an integer greater than or equal to 2;
[0008] Determine at least one target data upgrade program from multiple data upgrade programs of the target upgrade image, the at least one target data upgrade program is a data upgrade program that upgrades the application from the current version to the target version in sequence according to the version size, and the target version is less than or equal to version j;
[0009] An application in an application image of a target upgrade image is upgraded based on at least one target data upgrade program.
[0010] In an achievable implementation, before obtaining the target upgrade image in response to the upgrade request information, the method further includes:
[0011] Determine multiple data upgrade procedures based on data status information of adjacent versions of the application;
[0012] Encapsulate the application to obtain an application image;
[0013] The application image and multiple data upgrade programs are packaged to obtain a target upgrade image.
[0014] In one practicable implementation, multiple data upgrade programs are determined based on data status information of adjacent versions of an application program, including:
[0015] Determine corresponding data upgrade logic information based on data status information of adjacent versions of the application;
[0016] Encapsulate the data upgrade logic information to obtain corresponding multiple data upgrade programs.
[0017] In one practicable implementation, encapsulating the application to obtain the application image includes:
[0018] Compile the application code to obtain the compiled code;
[0019] Encapsulate the compiled code to obtain the application image.
[0020] In one practicable implementation, encapsulating the application image and multiple data upgrade programs to obtain a target upgrade image includes:
[0021] Obtain the correspondence between the application image and multiple data upgrade programs;
[0022] According to the correspondence between the application image and the multiple data upgrade programs, the application image and the multiple data upgrade programs are encapsulated to obtain a target upgrade image.
[0023] In one practicable implementation, after encapsulating the application image and the plurality of data upgrade programs to obtain the target upgrade image, the method further includes:
[0024] Store the target upgrade image in the image repository.
[0025] In a second aspect, an embodiment of the present disclosure provides a device for upgrading a data version, the device comprising:
[0026] A receiving module, used to receive upgrade request information input by a user on a target interface, wherein the upgrade request information includes information of a current version and information of a target version;
[0027] an acquisition module, configured to acquire a target upgrade image in response to the upgrade request information, wherein the target upgrade image is obtained by encapsulating an application image and a plurality of data upgrade programs; the plurality of data upgrade programs are data upgrade programs for upgrading the application from version i to version j in sequence according to the version size, wherein j is greater than i, i is an integer greater than or equal to 1, and j is an integer greater than or equal to 2;
[0028] a determination module, configured to determine at least one target data upgrade program from a plurality of data upgrade programs of a target upgrade image, wherein the at least one target data upgrade program is a data upgrade program corresponding to a target version that is upgraded from a current version in sequence according to the version size, and the target version is less than or equal to version j;
[0029] The upgrade module is used to upgrade the application program in the application program image of the target upgrade image based on at least one target data upgrade program.
[0030] In a third aspect, an embodiment of the present disclosure provides a device for data version upgrade, the device comprising a processor and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement a method for data version upgrade as described in any one of the first aspects.
[0031] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, a method for upgrading a data version as described in any one of the first aspects is implemented.
[0032] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements a method for data version upgrade as described in any one of the first aspects.
[0033] The embodiments of the present disclosure provide a method, equipment, device, computer storage medium and computer program product for data version upgrade. The method receives upgrade request information input by a user in a target interface; in response to the upgrade request information, a target upgrade image is obtained. And at least one target data upgrade program is determined from multiple data upgrade programs of the target upgrade image according to the current version information and the target version information in the upgrade request information. Since the target data upgrade program is the data upgrade program corresponding to the target version that the application program is upgraded from the current version in sequence according to the version size, the present disclosure enables the current version of the application program to select the corresponding data upgrade program for upgrade according to the application image, which improves the flexibility of the application program for version upgrade, thereby improving the upgrade efficiency of the application program. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the following is a brief introduction to the drawings required for use in the embodiment of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0035] Figure 1 It is a flowchart of a method for upgrading a data version provided by an embodiment of the present disclosure;
[0036] Figure 2 is a schematic diagram of a target upgrade image provided by an embodiment of the present disclosure;
[0037] Figure 3 is a schematic diagram of an application upgrade based on a data upgrade program provided by an embodiment of the present disclosure;
[0038] Figure 4 It is a flowchart of a method for obtaining a target upgrade image provided by an embodiment of the present disclosure;
[0039] Figure 5 It is a flowchart of a method for obtaining a data upgrade program provided by an embodiment of the present disclosure;
[0040] Figure 6 It is a flowchart of a method for obtaining an application image provided by an embodiment of the present disclosure;
[0041] Figure 7 It is a flowchart of another method for obtaining a target upgrade image provided by an embodiment of the present disclosure;
[0042] Figure 8 is a schematic diagram of a data version upgrade provided by an embodiment of the present disclosure;
[0043] Fig. 9 It is a structural diagram of a data version upgrade device provided by an embodiment of the present disclosure;
[0044] Fig.10 It is a structural diagram of a data version upgrade device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0045] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present invention, rather than to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.
[0046] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0047] Before describing the technical solutions provided by the embodiments of the present disclosure, in order to facilitate the understanding of the embodiments of the present disclosure, the present disclosure specifically describes the problems existing in the related technologies.
[0048] At present, when upgrading the version of a B / S architecture application, the data used by the application also needs to be upgraded to avoid the phenomenon that the application cannot run normally.
[0049] In the related art, the data used by the application is usually upgraded by writing a corresponding data upgrade script. However, this data upgrade script is pre-set each time it is used, and the data of the application can only be upgraded based on the pre-configured data upgrade script, resulting in low upgrade efficiency of the application.
[0050] For example, if the version of the data used by an application is 1, when the version of the data used by the application needs to be upgraded to 2, a script can be written to upgrade the version of the data used by the application from 1 to 2. However, when the version of the data used by the application needs to be upgraded from 2 to 3, the original script for upgrading the version of the data used by the application from 1 to 2 cannot be applied to this upgrade, so a new script for upgrading the version of the data used by the application from 2 to 3 needs to be written.
[0051] In addition, in the related art, the data upgrade script is separated from the application, which easily causes a mismatch between the application's own version upgrade and the data version upgrade used by the application, resulting in overall upgrade failure.
[0052] The embodiments of the present disclosure provide a method, apparatus, device, computer storage medium and computer program product for data version upgrade, which can solve the above-mentioned technical problems existing in the related technologies.
[0053] The embodiments of the present disclosure provide a method, equipment, device, computer storage medium and computer program product for data version upgrade. The method receives upgrade request information input by a user in a target interface; in response to the upgrade request information, a target upgrade image is obtained. And at least one target data upgrade program is determined from multiple data upgrade programs of the target upgrade image according to the current version information and the target version information in the upgrade request information. Since the target data upgrade program is the data upgrade program corresponding to the target version that the application program is upgraded from the current version in sequence according to the version size, the present disclosure enables the current version of the application program to select the corresponding data upgrade program for upgrade according to the application image, which improves the flexibility of the application program for version upgrade, thereby improving the upgrade efficiency of the application program.
[0054] The following is an introduction to the data version upgrade method provided by the embodiment of the present disclosure.
[0055] Figure 1 FIG. 1 is a flow chart showing a method for upgrading a data version provided by an embodiment of the present disclosure. Figure 1 As shown, the method may include the following steps S110-S140.
[0056] S110: receiving upgrade request information input by the user on the target interface.
[0057] The terminal receives the upgrade request information input by the user on the target interface of the terminal through the receiving component.
[0058] The upgrade request information is used to upgrade the version of the application data.
[0059] In one example, the upgrade request information includes information about the current version and information about the target version.
[0060] In the disclosed embodiment, by receiving upgrade request information input by the user in the target interface, the current version information and target version information of the application data can be determined based on the upgrade request information, so that the version of the application data can be accurately upgraded to the target version.
[0061] S120: In response to the upgrade request information, obtain a target upgrade image.
[0062] After receiving the upgrade request information, the terminal obtains the target upgrade image from the storage space storing the target upgrade image.
[0063] The target upgrade image is obtained by encapsulating the application image and multiple data upgrade programs; the multiple data upgrade programs are data upgrade programs that upgrade the application from version i to version j in sequence according to the version size, where j is greater than i, i is an integer greater than or equal to 1, and j is an integer greater than or equal to 2.
[0064] In one example, the storage space storing the target upgrade image may include an image warehouse.
[0065] In another example, the number of data upgrade programs of the target upgrade image is not fixed and may include one, two, or another number.
[0066] In another example, Figure 2 As shown, the target upgrade image corresponding to the application A1 includes the application A1 and a plurality of data upgrade programs, wherein the data upgrade programs include a data upgrade program S1, a data upgrade program S2 and a data upgrade program S3.
[0067] The disclosed embodiment obtains the target upgrade image, thereby facilitating subsequent upgrade of the version of the application data in the target upgrade image.
[0068] S130: Determine at least one target data upgrade program from a plurality of data upgrade programs of the target upgrade image.
[0069] After acquiring the target upgrade image, the terminal determines at least one target data upgrade program from a plurality of data upgrade programs of the target upgrade image according to the received upgrade request information.
[0070] Among them, at least one target data upgrade program is a data upgrade program that upgrades the application from the current version to the target version in sequence according to the version size, and the target version is less than or equal to version j.
[0071] In one example, the upgrade request information input by the user includes current version information 4 and target version information 6. The terminal obtains a data upgrade program for upgrading the version of the data used by the application from 4 to 5 and a data upgrade program for upgrading the version of the data used by the application from 5 to 6 from the target upgrade image according to the received upgrade request information.
[0072] S140: Upgrading the application program in the application image of the target upgrade image based on at least one target data upgrade program.
[0073] After acquiring at least one target data upgrade program, the terminal upgrades the application program in the application program image of the target upgrade image through the target data upgrade program.
[0074] In which case, when the number of target data upgrade programs is greater than 1, the target data upgrade program can be used to upgrade the version of the application data in sequence according to the version size that can be upgraded by the target data upgrade program.
[0075] In one embodiment, after the terminal obtains the data upgrade program for upgrading the version of data used by the application from 4 to 5 and the data upgrade program for upgrading the version of data used by the application from 5 to 6, the terminal first upgrades the data of the application using the data upgrade program for upgrading the version of data used by the application from 4 to 5, so that the version of the data of the application is upgraded to 5. Then, the terminal upgrades the data of the application using the data upgrade program for upgrading the version of data used by the application from 5 to 6, so that the version of the data of the application is upgraded to 6.
[0076] In one example, if Figure 3 As shown, the version line reflects the version update information of the application. The version number of the version line increases from bottom to top, and each version number corresponds to an application. The application V(1) corresponding to version number 1 can be upgraded to application V(2) by upgrading the version through upgrading program (2,0). Similarly, application V(i-1) with a version lower than application V(i) can be upgraded to application V(i-1) through upgrading program (i,0). Application V(j-1) with a version lower than application V(j) can be upgraded to application V(j-1) through upgrading program (j,0).
[0077] The embodiment of the present disclosure receives upgrade request information input by a user in a target interface; in response to the upgrade request information, a target upgrade image is obtained. At least one target data upgrade program is determined from multiple data upgrade programs of the target upgrade image according to the information of the current version and the information of the target version in the upgrade request information. Since the target data upgrade program is the data upgrade program corresponding to the target version that the application program is upgraded from the current version in sequence according to the version size, the present disclosure enables the current version of the application program to select the corresponding data upgrade program for upgrade according to the application image, thereby improving the flexibility of the application program in performing version upgrades, thereby improving the upgrade efficiency of the application program.
[0078] In one embodiment, before obtaining the target upgrade image in response to the upgrade request information, Figure 4 As shown, the method for data version upgrade also includes steps S150-S170.
[0079] S150: Determine multiple data upgrade programs according to data status information of adjacent versions of the application program.
[0080] According to the acquired data status information of adjacent versions of the application data, a plurality of data upgrade programs capable of converting the data status of the lower version data of the application into the data status of the higher version data of the application are developed using the data program management module.
[0081] The data status information may include data structure information.
[0082] S160: Encapsulate the application to obtain an application image.
[0083] After the application is acquired, the application is packaged using the program image making module to obtain the application image.
[0084] S170: Encapsulate the application image and multiple data upgrade programs to obtain a target upgrade image.
[0085] After the application image and the multiple data upgrade programs are acquired, the target upgrade image making module is used to encapsulate the application image and the multiple data upgrade programs to obtain the target upgrade image.
[0086] The disclosed embodiment encapsulates an application image and multiple data upgrade programs into a target upgrade image, thereby avoiding upgrade mismatches caused by separation of the application and the data upgrade program, and at the same time improving the utilization rate of the data upgrade program by repeatedly calling the target upgrade image.
[0087] In one embodiment, multiple data upgrade programs are determined based on data status information of adjacent versions of the application program, such as Figure 5 As shown, it may include step S151 and step S152.
[0088] S151: Determine corresponding data upgrade logic information according to data status information of adjacent versions of the application.
[0089] According to the acquired data status information of adjacent versions of the application data, the corresponding data upgrade logic information is determined by the data program management module.
[0090] The upgrade logic information represents the data state conversion method of the application data.
[0091] In an example, the data structure corresponding to the current version of the application data is of float type, and the data structure corresponding to the target version of the application data is of double type. The corresponding data upgrade logic information is determined to convert the data structure type corresponding to the application data from float type to double type.
[0092] S152: Encapsulate data upgrade logic information to obtain corresponding multiple data upgrade programs.
[0093] After the corresponding data upgrade logic information is obtained, the data upgrade logic information is encapsulated by using a data program management module to produce a corresponding plurality of data upgrade programs.
[0094] The disclosed embodiment determines data upgrade logic information through data status information of adjacent versions of an application program, and encapsulates the data upgrade logic information to obtain multiple data upgrade programs, so as to facilitate subsequent upgrades according to the version of the application program.
[0095] In one embodiment, the application is packaged to obtain an application image, such as Figure 6 As shown, steps S161-S162 may be included.
[0096] S161: Compile the code of the application program to obtain a compiled code.
[0097] The code of the application program to be encapsulated is compiled using a compilation tool to obtain a compiled code corresponding to the application program.
[0098] S162: Encapsulate the compiled code to obtain an application image.
[0099] After the compiled code is obtained by compiling, the compiled code is packaged to obtain an application image.
[0100] The disclosed embodiment compiles and packages an application into an application image, which facilitates calling the application image to improve the efficiency of application upgrade.
[0101] In one embodiment, the application image and multiple data upgrade programs are packaged to obtain a target upgrade image, such as Figure 7 As shown, it may include step S171 and step S172.
[0102] S171: Obtaining the correspondence between the application image and multiple data upgrade programs.
[0103] The target upgrade image making module is used to obtain the correspondence between the application image and multiple data upgrade programs.
[0104] The corresponding relationship between the application image and the multiple data upgrade programs indicates that the multiple data upgrade programs match the application image.
[0105] In the disclosed embodiment, by obtaining the correspondence between the application image and the multiple data upgrade programs, the data upgrade program corresponding to the application to be upgraded can be obtained from the multiple data upgrade programs.
[0106] S172: According to the correspondence between the application image and the multiple data upgrade programs, encapsulate the application image and the multiple data upgrade programs to obtain a target upgrade image.
[0107] After the corresponding relationship between the application image and the multiple data upgrade programs is obtained, the application image and the multiple data upgrade programs are packaged to obtain a target upgrade image.
[0108] The disclosed embodiment can effectively obtain a target upgrade image by obtaining the correspondence between an application image and a plurality of data upgrade programs.
[0109] In one embodiment, after the application image and the multiple data upgrade programs are packaged to obtain the target upgrade image, step S180 may be included.
[0110] S180: Store the target upgrade image in the image warehouse.
[0111] After obtaining the target upgrade image, store the target upgrade image in the image warehouse.
[0112] The embodiment of the present disclosure stores the target upgrade image in the image warehouse, so that the target upgrade image can be repeatedly called, thereby improving the utilization rate of the target upgrade image.
[0113] In one embodiment, the steps of data version upgrade are as follows: Figure 8 As shown, the developer creates corresponding application images for multiple applications and stores them in the application image library. For each application, the developer confirms multiple data upgrade programs. The corresponding application image and multiple data upgrade programs are selected from the application image library and packaged into a target upgrade image, which is then stored in the target upgrade image library.
[0114] The operation and maintenance personnel input data information including the target image, target application and target environment into the application deployment system according to the deployment UI. Among them, the deployment interface layer of the application deployment system is used to provide support for the deployment UI. After the application deployment system obtains the data information input by the operation and maintenance personnel, it obtains the target data upgrade image in the image repository, calculates the jobs (Jobs) that need to be generated for the upgrade through the deployment engine to publish the deployment task, and generates the yaml (YAML Ain't MarkupLanguage) file corresponding to the jobs. At the same time, the deployment (Deployment) yaml file of the application deployment is also generated, and finally the two yaml files are jointly published as an overall deployment task. Among them, the deployment engine can obtain the mapping relationship storage of the application's data storage and the application image version that matches the current data from the database through the business table, which is used to confirm the jobs that need to be generated for the upgrade.
[0115] The application deployment system publishes the deployment task to the Kubernetes system, and creates an upgrade container corresponding to the number of target data upgrade program data according to the yaml file corresponding to the Job. Create an application container according to the yaml file corresponding to the Deployment. Assign the target data upgrade program to the corresponding upgrade container one by one, and obtain upgrade tasks Job1 to Jobn. At the same time, run the application deployment Deployment in the application container to implement data version upgrade.
[0116] like Fig. 9 As shown, the embodiment of the present disclosure further provides a data version upgrade device 900, and the data version upgrade device 900 includes:
[0117] The receiving module 901 is used to receive the upgrade request information input by the user in the target interface, where the upgrade request information includes the information of the current version and the information of the target version;
[0118] The acquisition module 902 is used to obtain a target upgrade image in response to the upgrade request information, where the target upgrade image is obtained by encapsulating the application image and multiple data upgrade programs; the multiple data upgrade programs are data upgrade programs that upgrade the application from version i to version j in sequence according to the version size, where j is greater than i, i is an integer greater than or equal to 1, and j is an integer greater than or equal to 2;
[0119] A determination module 903 is used to determine at least one target data upgrade program from multiple data upgrade programs of the target upgrade image, where the at least one target data upgrade program is a data upgrade program corresponding to a target version that is upgraded from a current version to a target version in sequence according to the version size, and the target version is less than or equal to version j;
[0120] The upgrade module 904 is configured to upgrade the application program in the application program image of the target upgrade image based on at least one target data upgrade program.
[0121] In some embodiments, the determination module 903 is specifically configured to:
[0122] Determine multiple data upgrade procedures based on data status information of adjacent versions of the application;
[0123] Encapsulate the application to obtain an application image;
[0124] The application image and multiple data upgrade programs are packaged to obtain a target upgrade image.
[0125] In some embodiments, the determination module 903 is specifically configured to:
[0126] Determine corresponding data upgrade logic information based on data status information of adjacent versions of the application;
[0127] Encapsulate the data upgrade logic information to obtain corresponding multiple data upgrade programs.
[0128] In some embodiments, the data version upgrade device 900 further includes a compiling module, the compiling module is used to compile the code of the application program to obtain a compiled code;
[0129] Encapsulate the compiled code to obtain the application image.
[0130] In some embodiments, the acquisition module 902 is specifically configured to:
[0131] Obtain the correspondence between the application image and multiple data upgrade programs;
[0132] According to the correspondence between the application image and the multiple data upgrade programs, the application image and the multiple data upgrade programs are encapsulated to obtain a target upgrade image.
[0133] In some embodiments, the data version upgrade device 900 further includes a storage module, and the storage module is used to store the target upgrade image in the image warehouse.
[0134] Fig. 9 Each module / unit in the device shown has the function of realizing Figure 1 , Figure 4 , Figure 5 , Figure 6 and Figure 7 The functions of each step executed by the application system in the present invention can achieve the corresponding technical effects. For the sake of brevity, they will not be repeated here.
[0135] Fig.10 A schematic diagram of the hardware structure of data version upgrade provided by an embodiment of the present disclosure is shown.
[0136] The device for data version upgrade may include a processor 1001 and a memory 1002 storing computer program instructions.
[0137] Specifically, the processor 1001 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0138] The memory 1002 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 1002 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 1002 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 1002 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 1002 is a non-volatile solid-state memory.
[0139] The memory 1002 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure.
[0140] The processor 1001 implements any one of the data version upgrade methods in the above embodiments by reading and executing computer program instructions stored in the memory 1002 .
[0141] In one example, the device for upgrading the data version may further include a communication interface 1003 and a bus 1004. Fig.10 As shown, the processor 1001, the memory 1002, and the communication interface 1003 are connected via a bus 1004 and communicate with each other.
[0142] The communication interface 1003 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0143] Bus 1004 includes hardware, software or both, and couples the components of online data traffic billing equipment to each other. For example, but not limitation, the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), Hyper Transport (HT) interconnection, Industry Standard Architecture (ISA) bus, InfiniBand interconnection, Low Pin Count (LPC) bus, Memory bus, Micro Channel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 1004 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection. In addition, in conjunction with the method for data version upgrade in the above embodiment, the present application embodiment also provides a computer storage medium to achieve. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the data version upgrade methods in the above embodiments is implemented.
[0144] An embodiment of the present application also provides a computer program product, including a computer program, which implements any one of the data version upgrade methods in the above embodiments when the computer program is executed by a processor.
[0145] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0146] The functional blocks shown in the above structural block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable ReadOnly Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0147] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0148] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0149] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. A method for upgrading a data version, characterized in that: include: Receiving upgrade request information input by a user on a target interface, wherein the upgrade request information includes information of a current version and information of a target version; In response to the upgrade request information, a target upgrade image is obtained, where the target upgrade image is obtained by encapsulating an application image and a plurality of data upgrade programs; the plurality of data upgrade programs are data upgrade programs that upgrade the application from version i to version j in sequence according to the version size, where j is greater than i, i is an integer greater than or equal to 1, and j is an integer greater than or equal to 2; Determine at least one target data upgrade program from a plurality of data upgrade programs of the target upgrade image, wherein the at least one target data upgrade program is a data upgrade program corresponding to the target version that the application program is upgraded from a current version in sequence according to the version size, and the target version is less than or equal to version j; The application program in the application image of the target upgrade image is upgraded based on the at least one target data upgrade program.
2. The method according to claim 1, characterized in that Before obtaining the target upgrade image in response to the upgrade request information, the method further includes: Determine multiple data upgrade procedures based on data status information of adjacent versions of the application; Encapsulating the application to obtain the application image; The application image and the multiple data upgrade programs are packaged to obtain the target upgrade image.
3. The method according to claim 2, characterized in that Determining multiple data upgrade programs according to data status information of adjacent versions of the application program includes: Determining corresponding data upgrade logic information according to data status information of adjacent versions of the application program; The data upgrade logic information is encapsulated to obtain a corresponding plurality of data upgrade programs.
4. The method according to claim 2, characterized in that: The step of packaging the application to obtain the application image includes: Compile the code of the application to obtain compiled code; The compiled code is packaged to obtain the application image.
5. The method according to claim 2, characterized in that: The step of encapsulating the application image and the plurality of data upgrade programs to obtain a target upgrade image includes: Acquire the correspondence between the application image and the multiple data upgrade programs; According to the correspondence between the application image and the multiple data upgrade programs, the application image and the multiple data upgrade programs are encapsulated to obtain the target upgrade image.
6. The method according to any one of claims 2 to 5, characterized in that: After encapsulating the application image and the multiple data upgrade programs to obtain the target upgrade image, the method further includes: The target upgrade image is stored in the image warehouse.
7. A device for upgrading data version, characterized in that: The device comprises: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the data version upgrade method according to any one of claims 1-6.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for upgrading the data version according to any one of claims 1 to 6 is implemented.
9. A computer program product, characterized in that It includes a computer program, which, when executed by a processor, implements the method for upgrading the data version as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Upgrading script generation method and device for multi-version database and electronic equipment
CN113901021A
Data processing method and device, electronic equipment and computer readable medium
CN115993981A
Application program upgrading method and device based on execution record table
CN116610345A