From 699ba50e327ea75b87d3ae73d0a1463cd7dd356a Mon Sep 17 00:00:00 2001 From: Brady Miller Date: Mon, 6 Nov 2023 10:57:08 -0800 Subject: [PATCH] prep for after rel-702 branch (#6978) --- _rest_routes.inc.php | 2 +- composer.json | 2 +- sql/7_0_2-to-7_0_3_upgrade.sql | 111 +++++++++++++++++++++++++++++++++ swagger/openemr-api.yaml | 2 +- version.php | 2 +- 5 files changed, 115 insertions(+), 4 deletions(-) create mode 100644 sql/7_0_2-to-7_0_3_upgrade.sql diff --git a/_rest_routes.inc.php b/_rest_routes.inc.php index 3d7853c1f5d..e8ecbfb6364 100644 --- a/_rest_routes.inc.php +++ b/_rest_routes.inc.php @@ -18,7 +18,7 @@ */ /** - * @OA\Info(title="OpenEMR API", version="7.0.0") + * @OA\Info(title="OpenEMR API", version="7.0.3") * @OA\Server(url="/apis/default/") * @OA\SecurityScheme( * securityScheme="openemr_auth", diff --git a/composer.json b/composer.json index 8c4795049d7..d6232a17b2d 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "openemr/openemr", - "version": "7.0.2", + "version": "7.0.3", "description": "OpenEMR is a Free and Open Source electronic health records and medical practice management application", "license": "GPL", "support": { diff --git a/sql/7_0_2-to-7_0_3_upgrade.sql b/sql/7_0_2-to-7_0_3_upgrade.sql new file mode 100644 index 00000000000..4aec76ade22 --- /dev/null +++ b/sql/7_0_2-to-7_0_3_upgrade.sql @@ -0,0 +1,111 @@ +-- +-- Comment Meta Language Constructs: +-- +-- #IfNotTable +-- argument: table_name +-- behavior: if the table_name does not exist, the block will be executed + +-- #IfTable +-- argument: table_name +-- behavior: if the table_name does exist, the block will be executed + +-- #IfColumn +-- arguments: table_name colname +-- behavior: if the table and column exist, the block will be executed + +-- #IfMissingColumn +-- arguments: table_name colname +-- behavior: if the table exists but the column does not, the block will be executed + +-- #IfNotColumnType +-- arguments: table_name colname value +-- behavior: If the table table_name does not have a column colname with a data type equal to value, then the block will be executed + +-- #IfNotColumnTypeDefault +-- arguments: table_name colname value value2 +-- behavior: If the table table_name does not have a column colname with a data type equal to value and a default equal to value2, then the block will be executed + +-- #IfNotRow +-- arguments: table_name colname value +-- behavior: If the table table_name does not have a row where colname = value, the block will be executed. + +-- #IfNotRow2D +-- arguments: table_name colname value colname2 value2 +-- behavior: If the table table_name does not have a row where colname = value AND colname2 = value2, the block will be executed. + +-- #IfNotRow3D +-- arguments: table_name colname value colname2 value2 colname3 value3 +-- behavior: If the table table_name does not have a row where colname = value AND colname2 = value2 AND colname3 = value3, the block will be executed. + +-- #IfNotRow4D +-- arguments: table_name colname value colname2 value2 colname3 value3 colname4 value4 +-- behavior: If the table table_name does not have a row where colname = value AND colname2 = value2 AND colname3 = value3 AND colname4 = value4, the block will be executed. + +-- #IfNotRow2Dx2 +-- desc: This is a very specialized function to allow adding items to the list_options table to avoid both redundant option_id and title in each element. +-- arguments: table_name colname value colname2 value2 colname3 value3 +-- behavior: The block will be executed if both statements below are true: +-- 1) The table table_name does not have a row where colname = value AND colname2 = value2. +-- 2) The table table_name does not have a row where colname = value AND colname3 = value3. + +-- #IfRow +-- arguments: table_name colname value +-- behavior: If the table table_name does have a row where colname = value, the block will be executed. + +-- #IfRow2D +-- arguments: table_name colname value colname2 value2 +-- behavior: If the table table_name does have a row where colname = value AND colname2 = value2, the block will be executed. + +-- #IfRow3D +-- arguments: table_name colname value colname2 value2 colname3 value3 +-- behavior: If the table table_name does have a row where colname = value AND colname2 = value2 AND colname3 = value3, the block will be executed. + +-- #IfRowIsNull +-- arguments: table_name colname +-- behavior: If the table table_name does have a row where colname is null, the block will be executed. + +-- #IfIndex +-- desc: This function is most often used for dropping of indexes/keys. +-- arguments: table_name colname +-- behavior: If the table and index exist the relevant statements are executed, otherwise not. + +-- #IfNotIndex +-- desc: This function will allow adding of indexes/keys. +-- arguments: table_name colname +-- behavior: If the index does not exist, it will be created + +-- #EndIf +-- all blocks are terminated with a #EndIf statement. + +-- #IfNotListReaction +-- Custom function for creating Reaction List + +-- #IfNotListOccupation +-- Custom function for creating Occupation List + +-- #IfTextNullFixNeeded +-- desc: convert all text fields without default null to have default null. +-- arguments: none + +-- #IfTableEngine +-- desc: Execute SQL if the table has been created with given engine specified. +-- arguments: table_name engine +-- behavior: Use when engine conversion requires more than one ALTER TABLE + +-- #IfInnoDBMigrationNeeded +-- desc: find all MyISAM tables and convert them to InnoDB. +-- arguments: none +-- behavior: can take a long time. + +-- #IfDocumentNamingNeeded +-- desc: populate name field with document names. +-- arguments: none + +-- #IfUpdateEditOptionsNeeded +-- desc: Change Layout edit options. +-- arguments: mode(add or remove) layout_form_id the_edit_option comma_separated_list_of_field_ids + +-- #IfVitalsDatesNeeded +-- desc: Change date from zeroes to date of vitals form creation. +-- arguments: none + diff --git a/swagger/openemr-api.yaml b/swagger/openemr-api.yaml index 840186433eb..2ee2c6127fd 100644 --- a/swagger/openemr-api.yaml +++ b/swagger/openemr-api.yaml @@ -1,7 +1,7 @@ openapi: 3.0.0 info: title: 'OpenEMR API' - version: 7.0.0 + version: 7.0.3 servers: - url: /apis/default/ diff --git a/version.php b/version.php index 2f4e4fa6aa3..21f664e6ea3 100644 --- a/version.php +++ b/version.php @@ -16,7 +16,7 @@ // upgrade file is the starting point for the next upgrade. $v_major = '7'; $v_minor = '0'; -$v_patch = '2'; +$v_patch = '3'; $v_tag = '-dev'; // minor revision number, should be empty for production releases // A real patch identifier. This is incremented when we release a patch for a