package Ġorg . simple . clin ic . storage . migrations Ċ Ċ import Ġandroidx . room . migration . Migration Ċ import Ġandroidx . sqlite . db . Support SQLite Database Ċ import Ġorg . simple . clin ic . storage . in Transaction Ċ import Ġjavax . inject . Inject Ċ Ċ @ Suppress (" ClassName ") Ċ class ĠMigration _ 5 3 _ 5 4 Ġ@ Inject Ġconstructor () Ġ: ĠMigration ( 5 3 , Ġ 5 4 ) Ġ{ ĊĊĠ Ġoverride Ġfun Ġmigrate ( database : ĠSupport SQLite Database ) Ġ{ ĊĠĠĠ Ġdatabase . in Transaction Ġ{ ĊĠĠĠĠĠ Ġexec SQL (""" ĠDROP ĠINDEX Ġ" index _ Blood Pressure Measurement _ patient Uuid " Ġ"" ") ĊĊĠĠĠĠĠ Ġexec SQL (""" ĠALTER ĠTABLE Ġ" Blood Pressure Measurement " ĠR ENAME ĠTO Ġ" Blood Pressure Measurement _ v 5 3 " Ġ"" ") ĊĊĠĠĠĠĠ Ġexec SQL (""" ĊĠĠĠĠĠĠĠ ĠCREATE ĠTABLE ĠIF ĠNOT ĠEXISTS Ġ" Blood Pressure Measurement " Ġ( ĊĠĠĠĠĠĠĠ Ġ" uuid " ĠTEXT ĠNOT ĠNULL , ĊĠĠĠĠĠĠĠ Ġ" syst olic " ĠINTEGER ĠNOT ĠNULL , ĊĠĠĠĠĠĠĠ Ġ" di ast olic " ĠINTEGER ĠNOT ĠNULL , ĊĠĠĠĠĠĠĠ Ġ" sync Status " ĠTEXT ĠNOT ĠNULL , ĊĠĠĠĠĠĠĠ Ġ" user Uuid " ĠTEXT ĠNOT ĠNULL , ĊĠĠĠĠĠĠĠ Ġ" facility Uuid " ĠTEXT ĠNOT ĠNULL , ĊĠĠĠĠĠĠĠ Ġ" patient Uuid " ĠTEXT ĠNOT ĠNULL , ĊĠĠĠĠĠĠĠ Ġ" createdAt " ĠTEXT ĠNOT ĠNULL , ĊĠĠĠĠĠĠĠ Ġ" updatedAt " ĠTEXT ĠNOT ĠNULL , ĊĠĠĠĠĠĠĠ Ġ" deleted At " ĠTEXT , ĊĠĠĠĠĠĠĠ Ġ" re corded At " ĠTEXT ĠNOT ĠNULL , ĊĠĠĠĠĠĠĠ ĠPRIMARY ĠKEY (" uuid ")) ĊĠĠĠĠĠ Ġ"" ") ĊĊĠĠĠĠĠ Ġexec SQL (""" ĊĠĠĠĠĠĠĠ ĠINSERT ĠINTO Ġ" Blood Pressure Measurement " Ġ( ĊĠĠĠĠĠĠĠ Ġ" uuid ", Ġ" syst olic ", Ġ" di ast olic ", Ġ" sync Status ", Ġ" user Uuid ", Ġ" facility Uuid ", ĊĠĠĠĠĠĠĠ Ġ" patient Uuid ", Ġ" createdAt ", Ġ" updatedAt "," deleted At "," re corded At " ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ ĠSELECT Ġ" uuid ", Ġ" syst olic ", Ġ" di ast olic ", Ġ" sync Status ", Ġ" user Uuid ", Ġ" facility Uuid ", ĊĠĠĠĠĠĠĠ Ġ" patient Uuid ", Ġ" createdAt ", Ġ" updatedAt "," deleted At "," re corded At " ĠFROM Ġ" Blood Pressure Measurement _ v 5 3 " ĊĠĠĠĠĠ Ġ"" ") ĊĊĠĠĠĠĠ Ġexec SQL (""" ĠCREATE ĠINDEX Ġ" index _ Blood Pressure Measurement _ patient Uuid " ĠON Ġ" Blood Pressure Measurement " Ġ(" patient Uuid ") Ġ"" ") ĊĊĠĠĠĠĠ Ġexec SQL (""" ĠDROP ĠTABLE Ġ" Blood Pressure Measurement _ v 5 3 " Ġ"" ") ĊĊĠĠĠĠĠ Ġexec SQL (""" ĠDROP ĠTABLE Ġ" Encounter " Ġ"" ") ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ