/** 
 * <feature scope="SanteDB.Persistence.Data.ADO" id="20200812-01" name="Update:20200812-01" applyRange="1.1.0.0-1.2.0.0"  invariantName="npgsql">
 *	<summary>Update: Removes phonetic value columns (built in db functions should be used)</summary>
 *	<remarks>This removes phonetic value columns</remarks>
 *	<isInstalled>select ck_patch('20200812-01')</isInstalled>
 * </feature>
 */

BEGIN TRANSACTION ;

ALTER TABLE cd_name_tbl DROP COLUMN phon_cs;
ALTER TABLE cd_name_tbl DROP COLUMN phon_alg_id;
ALTER TABLE ref_term_name_tbl DROP COLUMN phon_cs;
ALTER TABLE ref_term_name_tbl DROP COLUMN phon_alg_id;
ALTER TABLE phon_val_tbl DROP COLUMN phon_cs;
ALTER TABLE phon_val_tbl DROP COLUMN alg_id;

SELECT REG_PATCH('20200812-01');
COMMIT;