แจ้งการใช้งาน 3.50.7.7
ใช้งานกับระบบจริง
1.
2.
3.
ยังไม่พบปัญหาอะไร
ALTER TABLE xray_items MODIFY COLUMN doctor_fee DOUBLE(15,3)
ALTER TABLE xray_head MODIFY COLUMN xray_price DOUBLE(15,3)
ALTER TABLE visit_pttype_change MODIFY COLUMN old_paid_amount DOUBLE(15,3)
ALTER TABLE visit_pttype MODIFY COLUMN paid_amount DOUBLE(15,3)
ALTER TABLE visit_pttype MODIFY COLUMN max_debt_amount DOUBLE(15,3)
ALTER TABLE visit_pttype MODIFY COLUMN discount_percent DOUBLE(15,3)
ALTER TABLE village_store_type ADD `village_store_type_name` VARCHAR(100) NOT NULL
ALTER TABLE village_store ADD `village_store_type_id` INT NOT NULL
ALTER TABLE village_store ADD `village_store_phone` VARCHAR(100) NULL
ALTER TABLE village_store ADD `village_store_address` VARCHAR(200) NULL
ALTER TABLE village_store ADD `village_store_name` VARCHAR(200) NOT NULL
ALTER TABLE village_store ADD `village_id` INT NOT NULL
ALTER TABLE village_school_class ADD `village_school_class_id` INT NOT NULL
ALTER TABLE village_organization_type ADD `village_organization_type_name` VARCHAR(150) NOT NULL
ALTER TABLE village_organization ADD `village_organization_type_id` INT NULL
ALTER TABLE village ADD `longitude` VARCHAR(50) NULL
ALTER TABLE village ADD `latitude` VARCHAR(50) NULL
ALTER TABLE stock_snapshot_detail MODIFY COLUMN total_price DOUBLE(15,5)
ALTER TABLE stock_po_detail MODIFY COLUMN stock_po_total DOUBLE(15,5)
ALTER TABLE stock_po_detail MODIFY COLUMN stock_po_ref_price DOUBLE(15,5)
ALTER TABLE stock_po_detail MODIFY COLUMN stock_po_price DOUBLE(15,5)
ALTER TABLE stock_item MODIFY COLUMN unit_cost DOUBLE(15,5)
ALTER TABLE stock_item MODIFY COLUMN dummy_left_price DOUBLE(15,3)
ALTER TABLE stock_department_item_level ADD `max_level` INT NULL
ALTER TABLE stock_department_item_level ADD `min_level` INT NULL
ALTER TABLE stock_department_item_level ADD `item_id` INT NOT NULL
ALTER TABLE stock_department_item_level ADD `department_id` INT NOT NULL
ALTER TABLE stock_department ADD `status_active` CHAR(1) NULL
ALTER TABLE stock_deliver_detail MODIFY COLUMN stock_deliver_price DOUBLE(15,5)
ALTER TABLE rx_summary MODIFY COLUMN sum_price DOUBLE(15,3)
ALTER TABLE report_sks MODIFY COLUMN page_amount DOUBLE(15,3)
ALTER TABLE report_sks MODIFY COLUMN total_sum DOUBLE(15,3)
ALTER TABLE report_sks MODIFY COLUMN rcpt_sum DOUBLE(15,3)
ALTER TABLE report_sks MODIFY COLUMN rcpt03 DOUBLE(15,3)
ALTER TABLE report_sks MODIFY COLUMN rcpt01 DOUBLE(15,3)
ALTER TABLE rcpt_debt_cancel MODIFY COLUMN total_amount DOUBLE(15,3)
ALTER TABLE rcpt_debt_cancel MODIFY COLUMN discount_amount DOUBLE(15,3)
ALTER TABLE rcpt_debt_cancel MODIFY COLUMN amount DOUBLE(15,3)
ALTER TABLE rcpt_debt MODIFY COLUMN total_amount DOUBLE(15,3)
ALTER TABLE rcpt_debt MODIFY COLUMN discount_amount DOUBLE(15,3)
ALTER TABLE rcpt_current_detail MODIFY COLUMN total_amount DOUBLE(15,3)
ALTER TABLE rcpt_current_detail MODIFY COLUMN discount DOUBLE(15,3)
ALTER TABLE rcpt_current_detail MODIFY COLUMN amount DOUBLE(15,3)
ALTER TABLE rcpt_current MODIFY COLUMN total_amount DOUBLE(15,3)
ALTER TABLE rcpt_current MODIFY COLUMN discount_amount DOUBLE(15,3)
ALTER TABLE rcpt_current MODIFY COLUMN amount DOUBLE(15,3)
ALTER TABLE rcpt_credit_detail MODIFY COLUMN total_amount DOUBLE(15,3)
ALTER TABLE rcpt_credit MODIFY COLUMN total_amount DOUBLE(15,3)
ALTER TABLE rcpt_credit MODIFY COLUMN discount DOUBLE(15,3)
ALTER TABLE pttype_package_detail MODIFY COLUMN price DOUBLE(15,3)
ALTER TABLE physic_list MODIFY COLUMN price DOUBLE(15,3)
ALTER TABLE person_wbc_service MODIFY COLUMN body_weight DOUBLE(15,3)
ALTER TABLE person_wbc MODIFY COLUMN birth_weight DOUBLE(15,3)
ALTER TABLE person_anc_labor_detail MODIFY COLUMN body_weight DOUBLE(15,3)
ALTER TABLE patient_hospital_refer MODIFY COLUMN service_price DOUBLE(15,3)
ALTER TABLE operation_anes MODIFY COLUMN df_price DOUBLE(15,3)
ALTER TABLE opdscreen MODIFY COLUMN cholesterol DOUBLE(15,3)
ALTER TABLE opd_ipd_transfer MODIFY COLUMN sum_price DOUBLE(15,3)
ALTER TABLE opd_ipd_transfer MODIFY COLUMN price DOUBLE(15,3)
ALTER TABLE lab_order_service MODIFY COLUMN price DOUBLE(15,3)
ALTER TABLE lab_items MODIFY COLUMN service_cost DOUBLE(15,3)
ALTER TABLE ipt_pttype MODIFY COLUMN discount_percent DOUBLE(15,3)
ALTER TABLE ipt_labour_medication MODIFY COLUMN price DOUBLE(15,3)
ALTER TABLE ipt_labour_child_med MODIFY COLUMN price DOUBLE(15,3)
ALTER TABLE ipt_labour_child MODIFY COLUMN temperature DOUBLE(15,3)
ALTER TABLE ipd_df MODIFY COLUMN price DOUBLE(15,3)
ALTER TABLE house ADD `longitude` VARCHAR(100) NULL
ALTER TABLE house ADD `latitude` VARCHAR(100) NULL
ALTER TABLE dtmain_save MODIFY COLUMN fee DOUBLE(15,3)
ALTER TABLE doctor_fee_list MODIFY COLUMN df_unit DOUBLE(15,3)
ALTER TABLE doctor_fee_list MODIFY COLUMN approve_amount DOUBLE(15,3)
ALTER TABLE doctor_fee_list MODIFY COLUMN original_fee DOUBLE(15,3)
ALTER TABLE doctor_df_rate MODIFY COLUMN price DOUBLE(15,3)
ALTER TABLE doctor_df_oper_list MODIFY COLUMN calc_price DOUBLE(15,3)
ALTER TABLE doctor_df_oper_list MODIFY COLUMN df_price DOUBLE(15,3)
ALTER TABLE company_contact_discount MODIFY COLUMN discount DOUBLE(15,3)
ALTER TABLE bedno MODIFY COLUMN charge_price_1 DOUBLE(15,3)
ALTER TABLE bedno MODIFY COLUMN nurse_charge_price DOUBLE(15,3)
ALTER TABLE bedno MODIFY COLUMN food_charge_price DOUBLE(15,3)
ALTER TABLE bedno MODIFY COLUMN room_charge_price DOUBLE(15,3)
ALTER TABLE ar_receive_head MODIFY COLUMN total_amount DOUBLE(15,3)
ALTER TABLE ar_receive_detail MODIFY COLUMN amount DOUBLE(15,3)
ALTER TABLE ar_original_detail MODIFY COLUMN total_amount DOUBLE(15,3)
ALTER TABLE ar_original_detail MODIFY COLUMN discount DOUBLE(15,3)
ALTER TABLE ar_original_detail MODIFY COLUMN amount DOUBLE(15,3)
ALTER TABLE ar_head MODIFY COLUMN max_debt_amount DOUBLE(15,3)
ALTER TABLE ar_head MODIFY COLUMN original_amount DOUBLE(15,3)
ALTER TABLE ar_head MODIFY COLUMN debit_adjust_amount DOUBLE(15,3)
ALTER TABLE ar_head MODIFY COLUMN credit_adjust_amount DOUBLE(15,3)
ALTER TABLE ar_head MODIFY COLUMN receive_money_total DOUBLE(15,3)
ALTER TABLE ar_head MODIFY COLUMN total_amount DOUBLE(15,3)
ALTER TABLE ar_adjust_head MODIFY COLUMN adjust_discount DOUBLE(15,3)
ALTER TABLE ar_adjust_head MODIFY COLUMN adjust_amount DOUBLE(15,3)
ALTER TABLE ar_adjust MODIFY COLUMN discount DOUBLE(15,3)
ALTER TABLE ar_adjust MODIFY COLUMN amount DOUBLE(15,3)
CREATE TABLE village_store_type ( `village_store_type_id` INT NOT NULL )
CREATE TABLE village_store ( `village_store_id` INT NOT NULL )
CREATE TABLE village_organization_type ( `village_organization_type_id` INT NOT NULL )
CREATE TABLE stock_department_item_level ( `stock_dep_item_level_id` INT NOT NULL )
2.49.10.12
[code=sql]
ALTER TABLE xray_report ADD `xray_priority_id` int NULL
ALTER TABLE xray_report ADD `request_depcode` varchar(3) NULL
ALTER TABLE xray_report ADD `xray_note` text NULL
ALTER TABLE xray_report ADD `opitemrece_guid` varchar(38) NULL
ALTER TABLE xray_report ADD `xray_icd10` varchar(7) NULL
ALTER TABLE xray_report ADD `doctor_fee` double(15,3) NULL
ALTER TABLE xray_report ADD `report_doctor` varchar(10) NULL
ALTER TABLE xray_rent ADD `phone` varchar(100) NULL
ALTER TABLE xray_rent ADD `rent_reason_id` int NULL
ALTER TABLE xray_rent ADD `comment` varchar(250) NULL
ALTER TABLE xray_rent ADD `track_depcode` char(3) NULL
ALTER TABLE xray_rent ADD `checkin` char(1) NULL
ALTER TABLE xray_rent ADD `return_time` time NULL
ALTER TABLE xray_rent ADD `return_date` date NULL
ALTER TABLE xray_rent ADD `rent_user` varchar(150) NULL
ALTER TABLE xray_rent ADD `rent_depcode` char(3) NULL
ALTER TABLE xray_rent ADD `rent_time` time NULL
ALTER TABLE xray_rent ADD `rent_date` date NULL
ALTER TABLE xray_rent ADD `xn` int NOT NULL
ALTER TABLE xray_rent ADD `hn` varchar(9) NULL
ALTER TABLE xray_priority ADD `priority_name` varchar(200) NULL
ALTER TABLE xray_items_group ADD `name` varchar(200) NULL
ALTER TABLE xray_items ADD `doctor_fee` double(15,3) NULL
ALTER TABLE xray_items ADD `xray_items_group` int NULL
ALTER TABLE xray_head ADD `xray_price` double(15,3) NULL
ALTER TABLE xray_head ADD `xray_priority_id` int NULL
ALTER TABLE xray_head ADD `department_name` varchar(100) NULL
ALTER TABLE xray_head ADD `department_code` varchar(4) NULL
ALTER TABLE wbc_vaccine ADD `wbc_vaccine_code` varchar(20) NULL
ALTER TABLE wbc_vaccine ADD `wbc_vaccine_name` varchar(150) NOT NULL
ALTER TABLE wbc_service ADD `wbc_service_code` varchar(20) NULL
ALTER TABLE wbc_service ADD `wbc_service_name` varchar(150) NOT NULL
ALTER TABLE wbc_period ADD `wbc_period_name` varchar(100) NULL
ALTER TABLE vn_stat ADD `debt_id_list` varchar(50) NULL
ALTER TABLE vital_sign_data ADD `an` varchar(9) NULL
ALTER TABLE vital_sign_data ADD `vn` varchar(13) NULL
ALTER TABLE vital_sign_data ADD `hn` varchar(9) NOT NULL
ALTER TABLE vital_sign_data ADD `vital_sign_datetime` datetime NULL
ALTER TABLE vital_sign_data ADD `staff` varchar(20) NULL
ALTER TABLE vital_sign_data ADD `vital_sign_value` varchar(200) NOT NULL
ALTER TABLE vital_sign_data ADD `vital_sign_id` int NOT NULL
ALTER TABLE vital_sign ADD `vital_sign_numbered` char(1) NULL
ALTER TABLE vital_sign ADD `vital_sign_std_max` varchar(200) NULL
ALTER TABLE vital_sign ADD `vital_sign_std_min` varchar(200) NULL
ALTER TABLE vital_sign ADD `vital_sign_unit` varchar(100) NULL
ALTER TABLE vital_sign ADD `vital_sign_name` varchar(200) NOT NULL
ALTER TABLE visit_pttype_change ADD `change_datetime` datetime NULL
ALTER TABLE visit_pttype_change ADD `station` varchar(25) NULL
ALTER TABLE visit_pttype_change ADD `staff` varchar(25) NULL
ALTER TABLE visit_pttype_change ADD `old_paid_amount` double(15,3) NULL
ALTER TABLE visit_pttype_change ADD `new_pttype` char(2) NULL
ALTER TABLE visit_pttype_change ADD `old_pttype` char(2) NULL
ALTER TABLE visit_pttype_change ADD `department` char(3) NULL
ALTER TABLE visit_pttype_change ADD `vn` varchar(13) NOT NULL
ALTER TABLE visit_pttype ADD `paid_amount` double(15,3) NULL
ALTER TABLE visit_pttype ADD `max_debt_amount` double(15,3) NULL
ALTER TABLE visit_pttype ADD `contract_id` int NULL
ALTER TABLE visit_pttype ADD `company_id` int NULL
ALTER TABLE visit_pttype ADD `discount_percent` double(15,3) NULL
ALTER TABLE visit_pttype ADD `pttype_order` int NULL
ALTER TABLE visit_pay_plan ADD `item_expire` char(1) NULL
ALTER TABLE visit_pay_plan ADD `end_date` date NULL
ALTER TABLE visit_pay_plan ADD `start_date` date NULL
ALTER TABLE visit_pay_plan ADD `max_qty` int NULL
ALTER TABLE visit_pay_plan ADD `icode` varchar(7) NOT NULL
ALTER TABLE visit_pay_plan ADD `vn` varchar(13) NOT NULL
ALTER TABLE visit_pay_plan ADD `hn` varchar(9) NOT NULL
ALTER TABLE village_temple_type ADD `village_temple_type_name` varchar(200) NOT NULL
ALTER TABLE village_temple ADD `village_temple_type_id` int NULL
ALTER TABLE village_temple ADD `priest_count` int NULL
ALTER TABLE village_temple ADD `temple_name` varchar(200) NOT NULL
ALTER TABLE village_temple ADD `village_id` int NOT NULL
ALTER TABLE village_survey_item ADD `unit_name` varchar(50) NULL
ALTER TABLE village_survey_item ADD `item_group` int NULL
ALTER TABLE village_survey_item ADD `count_sql` varchar(250) NULL
ALTER TABLE village_survey_item ADD `village_survey_item_name` varchar(200) NOT NULL
ALTER TABLE village_survey_detail ADD `survey_value` int NOT NULL
ALTER TABLE village_survey_detail ADD `village_survey_item_id` int NOT NULL
ALTER TABLE village_survey_detail ADD `village_id` int NOT NULL
ALTER TABLE village_student ADD `village_school_class_id` int NOT NULL
ALTER TABLE village_student ADD `person_id` int NOT NULL
ALTER TABLE village_student ADD `village_school_id` int NOT NULL
ALTER TABLE village_store_type ADD `village_store_type_name` varchar(100) NOT NULL
ALTER TABLE village_store ADD `village_store_type_id` int NOT NULL
ALTER TABLE village_store ADD `village_store_phone` varchar(100) NULL
ALTER TABLE village_store ADD `village_store_address` varchar(200) NULL
ALTER TABLE village_store ADD `village_store_name` varchar(200) NOT NULL
ALTER TABLE village_store ADD `village_id` int NOT NULL
ALTER TABLE village_school_type ADD `school_type_name` varchar(200) NULL
ALTER TABLE village_school_class ADD `village_school_class_name` varchar(150) NOT NULL
ALTER TABLE village_school ADD `school_type_id` int NOT NULL
ALTER TABLE village_school ADD `school_name` varchar(200) NULL
ALTER TABLE village_school ADD `village_id` int NOT NULL
ALTER TABLE village_priest ADD `person_id` int NOT NULL
ALTER TABLE village_priest ADD `village_temple_id` int NOT NULL
ALTER TABLE village_organization_type ADD `village_organization_type_name` varchar(150) NOT NULL
ALTER TABLE village_organization_member ADD `person_id` int NOT NULL
ALTER TABLE village_organization_member ADD `member_date` date NULL
ALTER TABLE village_organization_member ADD `village_organization_id` int NOT NULL
ALTER TABLE village_organization ADD `village_organization_type_id` int NULL
ALTER TABLE village_organization ADD `village_organization_name` varchar(200) NOT NULL
ALTER TABLE village_organization ADD `village_id` int NOT NULL
ALTER TABLE village_club_member ADD `end_date` date NULL
ALTER TABLE village_club_member ADD `begin_date` date NULL
ALTER TABLE village_club_member ADD `person_id` int NOT NULL
ALTER TABLE village_club_member ADD `village_club_id` int NOT NULL
ALTER TABLE village_club ADD `club_std_id` int NULL
ALTER TABLE village_club ADD `village_club_name` varchar(200) NOT NULL
ALTER TABLE village_club ADD `village_id` int NOT NULL
ALTER TABLE village ADD `longitude` varchar(50) NULL
ALTER TABLE village ADD `latitude` varchar(50) NULL
ALTER TABLE village ADD `village_code` varchar(10) NULL
ALTER TABLE village ADD `hos_guid` varchar(38) NULL
ALTER TABLE village ADD `village_name` varchar(200) NOT NULL
ALTER TABLE village ADD `village_moo` varchar(10) NOT NULL
ALTER TABLE village ADD `address_id` char(6) NOT NULL
ALTER TABLE sys_app_script ADD `comment_text` text NULL
ALTER TABLE sys_app_script ADD `script_type` char(3) NULL
ALTER TABLE sys_app_script ADD `script_dfm` longtext NULL
ALTER TABLE surveil_member_log ADD `data_sync` char(1) NULL
ALTER TABLE surveil_member_log ADD `op_type` varchar(10) NULL
ALTER TABLE surveil_member_log ADD `sv_guid` varchar(38) NOT NULL
ALTER TABLE surveil_member ADD `data_sync` char(1) NULL
ALTER TABLE surveil_member ADD `sv_guid` varchar(38) NULL
ALTER TABLE surveil_member ADD `hospcode` char(5) NULL
ALTER TABLE stock_warehouse ADD `oldcode` varchar(20) NULL
ALTER TABLE stock_supplier_item ADD `trade_name` varchar(150) NULL
ALTER TABLE stock_supplier ADD `company_code` varchar(10) NULL
ALTER TABLE stock_supplier ADD `company_type` varchar(50) NULL
ALTER TABLE stock_snapshot_head ADD `location_id` int NULL
ALTER TABLE stock_snapshot_head ADD `stock_type` char(1) NULL
ALTER TABLE stock_snapshot_head ADD `snapshot_period` int NULL
ALTER TABLE stock_snapshot_head ADD `snapshot_user` varchar(25) NULL
ALTER TABLE stock_snapshot_head ADD `snapshot_datetime` datetime NULL
ALTER TABLE stock_snapshot_head ADD `snapshot_date` date NULL
ALTER TABLE stock_snapshot_detail ADD `total_price` double(15,5) NULL
ALTER TABLE stock_snapshot_detail ADD `left_qty` int NULL
ALTER TABLE stock_snapshot_detail ADD `item_id` int NOT NULL
ALTER TABLE stock_snapshot_detail ADD `stock_snapshot_id` int NOT NULL
ALTER TABLE stock_return_list ADD `stock_return_unit_qty` int NULL
ALTER TABLE stock_return_list ADD `stock_draw_list_id` int NOT NULL
ALTER TABLE stock_return_list ADD `stock_return_qty` int NOT NULL
ALTER TABLE stock_return_list ADD `item_list_id` int NOT NULL
ALTER TABLE stock_return_list ADD `stock_return_id` int NOT NULL
ALTER TABLE stock_return ADD `remark` varchar(250) NULL
ALTER TABLE stock_return ADD `department_id` int NOT NULL
ALTER TABLE stock_return ADD `stock_return_date` date NULL
ALTER TABLE stock_return ADD `stock_draw_id` int NOT NULL
ALTER TABLE stock_po_type ADD `po_type_name` varchar(200) NULL
ALTER TABLE stock_po_detail ADD `remark` varchar(250) NULL
ALTER TABLE stock_po_detail ADD `trade_name` varchar(150) NULL
ALTER TABLE stock_po_detail MODIFY COLUMN stock_po_total double(15,5)
ALTER TABLE stock_po_detail MODIFY COLUMN stock_po_ref_price double(15,5)
ALTER TABLE stock_po_detail MODIFY COLUMN stock_po_price double(15,5)
ALTER TABLE stock_po ADD `po_type_id` int NULL
ALTER TABLE stock_opitemrece_list ADD `hos_guid` varchar(38) NOT NULL
ALTER TABLE stock_opitemrece_list ADD `stock_draw_list_id` int NULL
ALTER TABLE stock_opitemrece_list ADD `vn` varchar(13) NULL
ALTER TABLE stock_opitemrece_err ADD `resolve_status` varchar(10) NULL
ALTER TABLE stock_opitemrece_err ADD `department_id` int NULL
ALTER TABLE stock_opitemrece ADD `dep` char(1) NULL
ALTER TABLE stock_opitemrece ADD `vn` varchar(13) NULL
ALTER TABLE stock_manual_head ADD `doc_no` varchar(100) NULL
ALTER TABLE stock_manual_head ADD `department_id` int NULL
ALTER TABLE stock_manual_head ADD `authorize_date` date NULL
ALTER TABLE stock_manual_head ADD `authorizer` varchar(50) NULL
ALTER TABLE stock_manual_head ADD `approve` char(1) NULL
ALTER TABLE stock_manual_head ADD `note` varchar(250) NULL
ALTER TABLE stock_manual_head ADD `staff` varchar(50) NULL
ALTER TABLE stock_manual_head ADD `draw_date` date NULL
ALTER TABLE stock_manual_detail ADD `qty` int NOT NULL
ALTER TABLE stock_manual_detail ADD `stock_manual_id` int NOT NULL
ALTER TABLE stock_manual_detail ADD `stock_draw_list_id` int NOT NULL
ALTER TABLE stock_item_standard ADD `name` varchar(150) NULL
ALTER TABLE stock_item_regist ADD `atc_group` varchar(10) NULL
ALTER TABLE stock_item_regist ADD `country` varchar(100) NULL
ALTER TABLE stock_item_regist ADD `manufacturer` varchar(150) NULL
ALTER TABLE stock_item_regist ADD `strength` varchar(150) NULL
ALTER TABLE stock_item_regist ADD `dosage_form` varchar(100) NULL
ALTER TABLE stock_item_regist ADD `trade_name` varchar(150) NULL
ALTER TABLE stock_item_regist ADD `company_code` varchar(10) NULL
ALTER TABLE stock_item_regist ADD `tcode` varchar(50) NULL
ALTER TABLE stock_item_regist ADD `standard_code` varchar(15) NULL
ALTER TABLE stock_item ADD `unit_cost` double(15,5) NULL
ALTER TABLE stock_item ADD `dummy_left_price` double(15,3) NULL
ALTER TABLE stock_item ADD `dummy_left_qty` int NULL
ALTER TABLE stock_item ADD `standard_code` varchar(15) NULL
ALTER TABLE stock_group_standard ADD `name` varchar(150) NOT NULL
ALTER TABLE stock_draw_list ADD `confirm_empty` char(1) NULL
ALTER TABLE stock_department_item_level ADD `max_level` int NULL
ALTER TABLE stock_department_item_level ADD `min_level` int NULL
ALTER TABLE stock_department_item_level ADD `item_id` int NOT NULL
ALTER TABLE stock_department_item_level ADD `department_id` int NOT NULL
ALTER TABLE stock_department ADD `status_active` char(1) NULL
ALTER TABLE stock_department ADD `oldcode` varchar(20) NULL
ALTER TABLE stock_deliver_detail ADD `empty_stock` char(1) NULL
ALTER TABLE stock_deliver_detail MODIFY COLUMN stock_deliver_price double(15,5)
ALTER TABLE stock_adjust_head ADD `reason` varchar(250) NULL
ALTER TABLE stock_adjust_head ADD `authorize_date` date NULL
ALTER TABLE stock_adjust_head ADD `authorizer` varchar(20) NULL
ALTER TABLE stock_adjust_head ADD `approve` char(1) NULL
ALTER TABLE stock_adjust_head ADD `staff` varchar(20) NULL
ALTER TABLE stock_adjust_head ADD `adjust_date` date NULL
ALTER TABLE stock_adjust_detail ADD `original_qty` int NULL
ALTER TABLE stock_adjust_detail ADD `qty` int NOT NULL
ALTER TABLE stock_adjust_detail ADD `stock_draw_list_id` int NOT NULL
ALTER TABLE stock_adjust_detail ADD `stock_adj_head_id` int NOT NULL
ALTER TABLE sticker_control ADD `sticker_copy` int NULL
ALTER TABLE sticker_control ADD `header_copy` int NULL
ALTER TABLE sss_chronic_list ADD `name` varchar(250) NOT NULL
ALTER TABLE sss_chronic_detail ADD `max_icd` varchar(10) NULL
ALTER TABLE sss_chronic_detail ADD `min_icd` varchar(10) NOT NULL
ALTER TABLE sss_chronic_detail ADD `id` int NOT NULL
ALTER TABLE spclty ADD `no_service_charge_doctor` char(1) NULL
ALTER TABLE spclty ADD `no_service_charge` char(1) NULL
ALTER TABLE service_time ADD `last_send_time` datetime NULL
ALTER TABLE service_time ADD `service19` time NULL
ALTER TABLE screen_doctor ADD `depcode` char(3) NULL
ALTER TABLE rx_summary ADD `pttype` char(2) NULL
ALTER TABLE rx_summary ADD `income` char(2) NULL
ALTER TABLE rx_summary ADD `sum_price` double(15,3) NULL
ALTER TABLE rx_summary ADD `qty` int NULL
ALTER TABLE rx_summary ADD `department` char(3) NOT NULL
ALTER TABLE rx_summary ADD `rx_date` date NOT NULL
ALTER TABLE rx_summary ADD `icode` varchar(7) NOT NULL
ALTER TABLE rx_operator ADD `allow_rx_edit` char(1) NULL
ALTER TABLE rx_operator ADD `print_rcpt` char(1) NULL
ALTER TABLE rx_operator ADD `prepare_date_time` datetime NULL
ALTER TABLE rx_operator ADD `prepare_staff` varchar(25) NULL
ALTER TABLE rx_operator ADD `order_date` date NULL
ALTER TABLE rx_operator ADD `prepare_rx` char(1) NULL
ALTER TABLE rx_doctor ADD `prepare_rx_count` int NULL
ALTER TABLE rx_doctor ADD `depcode` char(3) NULL
ALTER TABLE rx_doctor ADD `rcpt_print` char(1) NULL
ALTER TABLE rx_doctor ADD `send_depcode` char(3) NULL
ALTER TABLE rx_doctor ADD `rcpt_depcode` char(3) NULL
ALTER TABLE rx_doctor ADD `finance_checkin_datetime` datetime NULL
ALTER TABLE rx_doctor ADD `finance_checkin_com` varchar(20) NULL
ALTER TABLE rx_doctor ADD `finance_checkin` char(1) NULL
ALTER TABLE rx_doctor ADD `rx_date` date NULL
ALTER TABLE rx_doctor ADD `prepare_datetime` datetime NULL
ALTER TABLE rx_doctor ADD `prepare_staff` varchar(25) NULL
ALTER TABLE rx_doctor ADD `prepare_rx` char(1) NULL
ALTER TABLE rx_depcode MODIFY COLUMN vn varchar(13)
ALTER TABLE risk_report MODIFY COLUMN risk_level varchar(200)
ALTER TABLE reporttemplate ADD `ignore_presetvalue` char(1) NULL
ALTER TABLE report_sks ADD `page_amount` double(15,3) NULL
ALTER TABLE report_sks ADD `pttype` char(2) NULL
ALTER TABLE report_sks ADD `std_group` char(2) NULL
ALTER TABLE report_sks ADD `billnumber` varchar(10) NULL
ALTER TABLE report_sks ADD `billcode` varchar(10) NULL
ALTER TABLE report_sks ADD `bill_name` varchar(200) NULL
ALTER TABLE report_sks ADD `staff_position` varchar(150) NULL
ALTER TABLE report_sks ADD `staff_name` varchar(150) NULL
ALTER TABLE report_sks ADD `bill_date` date NULL
ALTER TABLE report_sks ADD `patient_name` varchar(250) NULL
ALTER TABLE report_sks ADD `total_sum` double(15,3) NULL
ALTER TABLE report_sks ADD `rcpt_sum` double(15,3) NULL
ALTER TABLE report_sks ADD `rcpt03` double(15,3) NULL
ALTER TABLE report_sks ADD `rcpt01` double(15,3) NULL
ALTER TABLE report_sks ADD `finance_number` varchar(7) NULL
ALTER TABLE report_sks ADD `billno` varchar(100) NULL
ALTER TABLE report_sks ADD `bookno` varchar(100) NULL
ALTER TABLE report_sks ADD `row_number` int NULL
ALTER TABLE report_sks ADD `hn` varchar(9) NULL
ALTER TABLE report_sks ADD `vn` varchar(13) NOT NULL
ALTER TABLE replicate_trigger_service ADD `slave_information` varchar(100) NULL
ALTER TABLE replicate_trigger_service ADD `service_host_name` varchar(50) NULL
ALTER TABLE replicate_trigger_service ADD `transaction_queue` int NULL
ALTER TABLE replicate_trigger_service ADD `transaction_process` int NULL
ALTER TABLE replicate_trigger_service ADD `last_service_active` datetime NULL
ALTER TABLE replicate_trigger ADD `sync_priority` char(1) NULL
ALTER TABLE replicate_trigger ADD `sync_state` int NULL
ALTER TABLE replicate_trigger ADD `data_type3` varchar(15) NULL
ALTER TABLE replicate_trigger ADD `data_type2` varchar(15) NULL
ALTER TABLE replicate_trigger ADD `data_type` varchar(15) NULL
ALTER TABLE replicate_trigger ADD `trigger_date` datetime NULL
ALTER TABLE replicate_trigger ADD `pkvalue3` varchar(250) NULL
ALTER TABLE replicate_trigger ADD `pkvalue2` varchar(250) NULL
ALTER TABLE replicate_trigger ADD `pkvalue1` varchar(250) NULL
ALTER TABLE replicate_trigger ADD `pkname3` varchar(100) NULL
ALTER TABLE replicate_trigger ADD `pkname2` varchar(100) NULL
ALTER TABLE replicate_trigger ADD `pkname1` varchar(100) NULL
ALTER TABLE replicate_trigger ADD `table_name` varchar(100) NULL
ALTER TABLE referout ADD `confirm_diagnosis` varchar(7) NULL
ALTER TABLE referout ADD `confirm_text` text NULL
ALTER TABLE referout ADD `confirm_date` date NULL
ALTER TABLE referout ADD `depcode` char(3) NULL
ALTER TABLE referin ADD `refer_point` varchar(10) NULL
ALTER TABLE referin ADD `depcode` char(3) NULL
ALTER TABLE rcpt_print_detail ADD `total_amount` double(15,3) NULL
ALTER TABLE rcpt_print_detail ADD `discount` double(15,3) NULL
ALTER TABLE rcpt_print ADD `total_amount` double(15,3) NULL
ALTER TABLE rcpt_debt_detail ADD `total_amount` double(15,3) NULL
ALTER TABLE rcpt_debt_detail ADD `discount` double(15,3) NULL
ALTER TABLE rcpt_debt_cancel ADD `reason` varchar(250) NULL
ALTER TABLE rcpt_debt_cancel ADD `total_amount` double(15,3) NULL
ALTER TABLE rcpt_debt_cancel ADD `discount_amount` double(15,3) NULL
ALTER TABLE rcpt_debt_cancel ADD `cancel_computer` varchar(25) NULL
ALTER TABLE rcpt_debt_cancel ADD `computer` varchar(25) NULL
ALTER TABLE rcpt_debt_cancel ADD `pt_type` char(3) NULL
ALTER TABLE rcpt_debt_cancel ADD `amount` double(15,3) NULL
ALTER TABLE rcpt_debt_cancel ADD `cancel_staff` varchar(15) NULL
ALTER TABLE rcpt_debt_cancel ADD `staff` varchar(15) NULL
ALTER TABLE rcpt_debt_cancel ADD `cancel_datetime` datetime NULL
ALTER TABLE rcpt_debt_cancel ADD `debt_time` time NULL
ALTER TABLE rcpt_debt_cancel ADD `debt_date` date NULL
ALTER TABLE rcpt_debt_cancel ADD `hn` varchar(9) NOT NULL
ALTER TABLE rcpt_debt_cancel ADD `vn` varchar(13) NOT NULL
ALTER TABLE rcpt_debt_cancel ADD `debt_id` int NOT NULL
ALTER TABLE rcpt_debt ADD `debt_doc_id` varchar(50) NULL
ALTER TABLE rcpt_debt ADD `remark` varchar(50) NULL
ALTER TABLE rcpt_debt ADD `ar_transfer_staff` varchar(25) NULL
ALTER TABLE rcpt_debt ADD `ar_transfer_datetime` datetime NULL
ALTER TABLE rcpt_debt ADD `ar_transfer` char(1) NULL
ALTER TABLE rcpt_debt ADD `debt_date_time` datetime NULL
ALTER TABLE rcpt_debt ADD `total_amount` double(15,3) NULL
ALTER TABLE rcpt_debt ADD `discount_amount` double(15,3) NULL
ALTER TABLE rcpt_debt ADD `pttype` char(2) NULL
ALTER TABLE rcpt_current_detail ADD `total_amount` double(15,3) NULL
ALTER TABLE rcpt_current_detail ADD `discount` double(15,3) NULL
ALTER TABLE rcpt_current_detail ADD `amount` double(15,3) NULL
ALTER TABLE rcpt_current_detail ADD `income` char(2) NOT NULL
ALTER TABLE rcpt_current ADD `total_amount` double(15,3) NULL
ALTER TABLE rcpt_current ADD `discount_amount` double(15,3) NULL
ALTER TABLE rcpt_current ADD `pttype` char(2) NULL
ALTER TABLE rcpt_current ADD `computer` varchar(25) NULL
ALTER TABLE rcpt_current ADD `pt_type` char(3) NULL
ALTER TABLE rcpt_current ADD `amount` double(15,3) NULL
ALTER TABLE rcpt_current ADD `staff` varchar(15) NULL
ALTER TABLE rcpt_current ADD `current_time` time NULL
ALTER TABLE rcpt_current ADD `current_date` date NULL
ALTER TABLE rcpt_current ADD `hn` varchar(9) NULL
ALTER TABLE rcpt_current ADD `vn` varchar(13) NULL
ALTER TABLE rcpt_credit_detail ADD `total_amount` double(15,3) NULL
ALTER TABLE rcpt_credit ADD `total_amount` double(15,3) NULL
ALTER TABLE rcpt_credit ADD `discount` double(15,3) NULL
ALTER TABLE rcpt_computer ADD `activate` char(1) NULL
ALTER TABLE rcpt_computer ADD `current_rcpt_book_number` varchar(50) NOT NULL
ALTER TABLE rcpt_bill_type_head ADD `bookno` int NULL
ALTER TABLE rcpt_bill_type_head ADD `department` char(3) NULL
ALTER TABLE rcpt_bill_type_head ADD `rcpt_bill_type_active` char(1) NULL
ALTER TABLE rcpt_bill_type_head ADD `rcpt_bill_type_name` varchar(250) NULL
ALTER TABLE rcpt_bill_type_detail ADD `pttype` char(2) NOT NULL
ALTER TABLE rcpt_bill_type_detail ADD `rcpt_bill_type_id` int NOT NULL
ALTER TABLE pttypehistory MODIFY COLUMN pttypeno varchar(50)
ALTER TABLE pttype_package_detail ADD `price` double(15,3) NOT NULL
ALTER TABLE pttype_package_detail ADD `income` char(2) NOT NULL
ALTER TABLE pttype_package_detail ADD `pttype_package_id` int NOT NULL
ALTER TABLE pttype_package ADD `package_name` varchar(150) NOT NULL
ALTER TABLE pttype ADD `use_package` char(1) NULL
ALTER TABLE pttype ADD `admit_fee_code` varchar(7) NULL
ALTER TABLE pttype ADD `separate_debt_id` char(1) NULL
ALTER TABLE pttype ADD `rcp_bookno` int NULL
ALTER TABLE pttype ADD `separate_rcpno` char(1) NULL
ALTER TABLE pttype ADD `rx_pay_debit_tr` char(1) NULL
ALTER TABLE pttype ADD `debt_due_day` int NULL
ALTER TABLE pttype ADD `fee_code2_paidst` char(2) NULL
ALTER TABLE pttype ADD `fee_code_paidst` char(2) NULL
ALTER TABLE pttype ADD `pttype_information` longtext NULL
ALTER TABLE pttype ADD `print_csmb_statement` char(1) NULL
ALTER TABLE pttype ADD `allow_finance_edit` char(1) NULL
ALTER TABLE ptnote ADD `prsc_note_text` varchar(250) NULL
ALTER TABLE pt_walk ADD `name` varchar(100) NULL
ALTER TABLE psychia_visit_type ADD `psychia_type_id` int NOT NULL
ALTER TABLE psychia_visit ADD `psychia_couseling_id` int NULL
ALTER TABLE psychia_visit ADD `doctor` varchar(7) NULL
ALTER TABLE psychia_visit ADD `age_text` varchar(200) NULL
ALTER TABLE psychia_visit ADD `service_desc` varchar(250) NULL
ALTER TABLE psychia_visit ADD `type_desc` varchar(250) NULL
ALTER TABLE psychia_visit ADD `visit_time` time NULL
ALTER TABLE psychia_visit ADD `visit_date` date NULL
ALTER TABLE psychia_visit ADD `pt_type` char(3) NULL
ALTER TABLE psychia_type ADD `name` varchar(150) NULL
ALTER TABLE psychia_service_list ADD `vn` varchar(13) NULL
ALTER TABLE psychia_service_list ADD `comment_text` varchar(200) NULL
ALTER TABLE psychia_service_list ADD `doctor` varchar(7) NULL
ALTER TABLE psychia_service_list ADD `psychia_service_id` int NULL
ALTER TABLE psychia_service_list ADD `hn` varchar(9) NULL
ALTER TABLE psychia_service ADD `name` varchar(150) NULL
ALTER TABLE psychia_report_code ADD `icd_code_max` varchar(7) NULL
ALTER TABLE psychia_report_code ADD `icd_code_min` varchar(7) NULL
ALTER TABLE psychia_report_code ADD `name` varchar(250) NULL
ALTER TABLE psychia_member_type ADD `psychia_type_id` int NOT NULL
ALTER TABLE psychia_member ADD `psychia_type_text` varchar(200) NULL
ALTER TABLE psychia_member ADD `regdate` date NULL
ALTER TABLE psychia_counseling ADD `name` varchar(150) NULL
ALTER TABLE printserver ADD `print_mode` varchar(25) NULL
ALTER TABLE pq_ipdorder ADD `ward` varchar(4) NULL
ALTER TABLE pq_doctor ADD `depcode` char(3) NULL
ALTER TABLE physic_status ADD `name` varchar(150) NULL
ALTER TABLE physic_member ADD `dch_status_id` int NULL
ALTER TABLE physic_member ADD `doctor` varchar(7) NULL
ALTER TABLE physic_member ADD `physic_status_id` int NULL
ALTER TABLE physic_member ADD `dchdate` date NULL
ALTER TABLE physic_member ADD `regdate` date NULL
ALTER TABLE physic_member ADD `member_id` int NULL
ALTER TABLE physic_main ADD `hn` varchar(9) NULL
ALTER TABLE physic_main ADD `service_time` time NULL
ALTER TABLE physic_main ADD `vstdate` date NULL
ALTER TABLE physic_main ADD `type_text` varchar(250) NULL
ALTER TABLE physic_main ADD `doctor_text` varchar(250) NULL
ALTER TABLE physic_main ADD `progress_text` longtext NULL
ALTER TABLE physic_main ADD `plan_text` longtext NULL
ALTER TABLE physic_main ADD `problem_text` longtext NULL
ALTER TABLE physic_main ADD `physic_chronic_id` int NULL
ALTER TABLE physic_main ADD `service_text` varchar(250) NULL
ALTER TABLE physic_list ADD `opi_guid` varchar(38) NULL
ALTER TABLE physic_list ADD `price` double(15,3) NULL
ALTER TABLE physic_list ADD `icode` varchar(7) NULL
ALTER TABLE physic_items ADD `price` double(15,3) NULL
ALTER TABLE physic_dch_status ADD `name` varchar(150) NULL
ALTER TABLE physic_chronic ADD `name` varchar(150) NULL
ALTER TABLE person_wbc_vaccine_detail ADD `wbc_vaccine_id` int NOT NULL
ALTER TABLE person_wbc_vaccine_detail ADD `person_wbc_service_id` int NOT NULL
ALTER TABLE person_wbc_service_detail ADD `wbc_service_id` int NOT NULL
ALTER TABLE person_wbc_service_detail ADD `person_wbc_service_id` int NOT NULL
ALTER TABLE person_wbc_service ADD `wbc_period_id` int NULL
ALTER TABLE person_wbc_service ADD `weight_grade` int NULL
ALTER TABLE person_wbc_service ADD `service_time` time NULL
ALTER TABLE person_wbc_service ADD `body_weight` double(15,3) NULL
ALTER TABLE person_wbc_service ADD `service_note` varchar(250) NULL
ALTER TABLE person_wbc_service ADD `service_date` date NOT NULL
ALTER TABLE person_wbc_service ADD `person_wbc_id` int NOT NULL
ALTER TABLE person_wbc ADD `person_wbc_regdate` date NOT NULL
ALTER TABLE person_wbc ADD `ba_status_id` int NULL
ALTER TABLE person_wbc ADD `baby_status_id` int NULL
ALTER TABLE person_wbc ADD `vaccine_mmr_date` date NULL
ALTER TABLE person_wbc ADD `vaccine_opv3_date` date NULL
ALTER TABLE person_wbc ADD `vaccine_opv2_date` date NULL
ALTER TABLE person_wbc ADD `vaccine_opv1_date` date NULL
ALTER TABLE person_wbc ADD `vaccine_dtp3_date` date NULL
ALTER TABLE person_wbc ADD `vaccine_dtp2_date` date NULL
ALTER TABLE person_wbc ADD `vaccine_dtp1_date` date NULL
ALTER TABLE person_wbc ADD `vaccine_hbv3_date` date NULL
ALTER TABLE person_wbc ADD `vaccine_hbv2_date` date NULL
ALTER TABLE person_wbc ADD `vaccine_hbv1_date` date NULL
ALTER TABLE person_wbc ADD `vaccine_bcg_date` date NULL
ALTER TABLE person_wbc ADD `period5_grade` int NULL
ALTER TABLE person_wbc ADD `period5_bw` int NULL
ALTER TABLE person_wbc ADD `period4_grade` int NULL
ALTER TABLE person_wbc ADD `period4_bw` int NULL
ALTER TABLE person_wbc ADD `period3_grade` int NULL
ALTER TABLE person_wbc ADD `period3_bw` int NULL
ALTER TABLE person_wbc ADD `period2_grade` int NULL
ALTER TABLE person_wbc ADD `period2_bw` int NULL
ALTER TABLE person_wbc ADD `period1_grade` int NULL
ALTER TABLE person_wbc ADD `period1_bw` int NULL
ALTER TABLE person_wbc ADD `breast_feed_status_id` int NULL
ALTER TABLE person_wbc ADD `baby_service2_date` date NULL
ALTER TABLE person_wbc ADD `baby_service1_date` date NULL
ALTER TABLE person_wbc ADD `birth_weight` double(15,3) NULL
ALTER TABLE person_wbc ADD `person_wbc_no` varchar(20) NULL
ALTER TABLE person_wbc ADD `person_id` int NOT NULL
ALTER TABLE person_parent ADD `parent_type_id` int NOT NULL
ALTER TABLE person_parent ADD `parent_id` int NOT NULL
ALTER TABLE person_parent ADD `person_id` int NOT NULL
ALTER TABLE person_chronic ADD `clinic` char(3) NOT NULL
ALTER TABLE person_chronic ADD `person_id` int NOT NULL
ALTER TABLE person_anc_service_detail ADD `anc_doctor_code` varchar(7) NULL
ALTER TABLE person_anc_service_detail ADD `anc_service_id` int NOT NULL
ALTER TABLE person_anc_service_detail ADD `person_anc_service_id` int NOT NULL
ALTER TABLE person_anc_service ADD `anc_service_note` varchar(250) NULL
ALTER TABLE person_anc_service ADD `anc_service_date` date NULL
ALTER TABLE person_anc_service ADD `person_anc_id` int NOT NULL
ALTER TABLE person_anc_risk ADD `anc_risk_id` int NOT NULL
ALTER TABLE person_anc_risk ADD `person_anc_id` int NOT NULL
ALTER TABLE person_anc_labor_detail ADD `body_weight` double(15,3) NOT NULL
ALTER TABLE person_anc_labor_detail ADD `child_no` int NOT NULL
ALTER TABLE person_anc_labor_detail ADD `person_anc_id` int NOT NULL
ALTER TABLE person_anc_lab ADD `anc_lab_result` varchar(150) NULL
ALTER TABLE person_anc_lab ADD `anc_lab_id` int NOT NULL
ALTER TABLE person_anc_lab ADD `person_anc_service_id` int NOT NULL
ALTER TABLE person_anc ADD `edc` date NULL
ALTER TABLE person_anc ADD `labor_status_id` int NULL
ALTER TABLE person_anc ADD `anc_finish` char(1) NULL
ALTER TABLE person_anc ADD `current_preg_age` int NULL
ALTER TABLE person_anc ADD `dead_child_count` int NULL
ALTER TABLE person_anc ADD `alive_child_count` int NULL
ALTER TABLE person_anc ADD `labor_doctor_type_id` int NULL
ALTER TABLE person_anc ADD `labor_place_id` int NULL
ALTER TABLE person_anc ADD `labor_date` date NULL
ALTER TABLE person_anc ADD `preg_begin_date` date NULL
ALTER TABLE person_anc ADD `preg_no` int NULL
ALTER TABLE person_anc ADD `post_labor_service2_date` date NULL
ALTER TABLE person_anc ADD `post_labor_service1_date` date NULL
ALTER TABLE person_anc ADD `anc_vc_result_id` int NULL
ALTER TABLE person_anc ADD `psycho_eval_score` int NULL
ALTER TABLE person_anc ADD `risk_refer_date` date NULL
ALTER TABLE person_anc ADD `risk_list` varchar(250) NULL
ALTER TABLE person_anc ADD `first_doctor_date` date NULL
ALTER TABLE person_anc ADD `pre_labor_service4_date` date NULL
ALTER TABLE person_anc ADD `pre_labor_service3_date` date NULL
ALTER TABLE person_anc ADD `pre_labor_service2_date` date NULL
ALTER TABLE person_anc ADD `pre_labor_service1_date` date NULL
ALTER TABLE person_anc ADD `blood_hct_grade` int NULL
ALTER TABLE person_anc ADD `blood_hct_result` varchar(10) NULL
ALTER TABLE person_anc ADD `blood_of_result` varchar(10) NULL
ALTER TABLE person_anc ADD `blood_hiv2_result` varchar(25) NULL
ALTER TABLE person_anc ADD `blood_hiv1_result` varchar(25) NULL
ALTER TABLE person_anc ADD `blood_vdrl2_result` varchar(25) NULL
ALTER TABLE person_anc ADD `blood_vdrl1_result` varchar(25) NULL
ALTER TABLE person_anc ADD `blood_check2_date` date NULL
ALTER TABLE person_anc ADD `blood_check1_date` date NULL
ALTER TABLE person_anc ADD `vaccine_tt_complete` char(1) NULL
ALTER TABLE person_anc ADD `vaccine_tt4_date` date NULL
ALTER TABLE person_anc ADD `vaccine_tt3_date` date NULL
ALTER TABLE person_anc ADD `vaccine_tt2_date` date NULL
ALTER TABLE person_anc ADD `vaccine_tt1_date` date NULL
ALTER TABLE person_anc ADD `anc_register_staff` varchar(25) NULL
ALTER TABLE person_anc ADD `anc_register_date` date NULL
ALTER TABLE person_anc ADD `person_anc_no` int NULL
ALTER TABLE person_anc ADD `person_id` int NOT NULL
ALTER TABLE person ADD `drug_allergy` varchar(150) NULL
ALTER TABLE person ADD `family_position_id` int NULL
ALTER TABLE person ADD `home_position_id` int NULL
ALTER TABLE person ADD `income_per_year` int NULL
ALTER TABLE person ADD `hos_guid` varchar(38) NULL
ALTER TABLE person ADD `death_date` date NULL
ALTER TABLE person ADD `current_age` int NULL
ALTER TABLE person ADD `blood_group` varchar(5) NULL
ALTER TABLE person ADD `village_id` int NULL
ALTER TABLE person ADD `club_list` varchar(250) NULL
ALTER TABLE person ADD `chronic_disease_list` varchar(250) NULL
ALTER TABLE person ADD `has_house_regist` char(1) NULL
ALTER TABLE person ADD `birthdate` date NULL
ALTER TABLE person ADD `house_regist_type_id` int NULL
ALTER TABLE person ADD `marrystatus` char(1) NULL
ALTER TABLE person ADD `religion` char(2) NULL
ALTER TABLE person ADD `occupation` char(3) NULL
ALTER TABLE person ADD `education` char(1) NULL
ALTER TABLE person ADD `citizenship` char(2) NULL
ALTER TABLE person ADD `nationality` char(2) NULL
ALTER TABLE person ADD `sex` char(1) NULL
ALTER TABLE person ADD `pcode` char(2) NULL
ALTER TABLE person ADD `lname` varchar(50) NOT NULL
ALTER TABLE person ADD `fname` varchar(50) NOT NULL
ALTER TABLE person ADD `pname` varchar(25) NOT NULL
ALTER TABLE person ADD `cid` varchar(13) NULL
ALTER TABLE person ADD `house_id` int NOT NULL
ALTER TABLE pe_code MODIFY COLUMN doctor varchar(7)
ALTER TABLE patient_vaccine ADD `staff` varchar(25) NULL
ALTER TABLE patient_vaccine ADD `vaccine_date` date NULL
ALTER TABLE patient_vaccine ADD `baby_code` int NOT NULL
ALTER TABLE patient_vaccine ADD `hn` varchar(9) NOT NULL
ALTER TABLE patient_realname ADD `staff` varchar(50) NULL
ALTER TABLE patient_realname ADD `real_name` varchar(200) NULL
ALTER TABLE patient_hospital_refer ADD `staff` varchar(25) NULL
ALTER TABLE patient_hospital_refer ADD `note` text NULL
ALTER TABLE patient_hospital_refer ADD `service_price` double(15,3) NULL
ALTER TABLE patient_hospital_refer ADD `hospcode` varchar(5) NOT NULL
ALTER TABLE patient_hospital_refer ADD `phr_date` date NULL
ALTER TABLE patient_hospital_refer ADD `hn` varchar(9) NOT NULL
ALTER TABLE patient_history ADD `active_problem` text NULL
ALTER TABLE patient_file ADD `hn` varchar(9) NOT NULL
ALTER TABLE patient_file ADD `file_source_id` int NULL
ALTER TABLE patient_file ADD `file_category_id` int NOT NULL
ALTER TABLE patient_file ADD `file_data` longblob NULL
ALTER TABLE patient_file ADD `staff` varchar(25) NULL
ALTER TABLE patient_file ADD `file_datetime` datetime NULL
ALTER TABLE patient_file ADD `file_description` varchar(250) NULL
ALTER TABLE patient_file ADD `file_name` varchar(250) NOT NULL
ALTER TABLE parent_type ADD `parent_type_code` varchar(20) NULL
ALTER TABLE parent_type ADD `parent_type_name` varchar(100) NOT NULL
ALTER TABLE papregist ADD `cid` varchar(13) NOT NULL
ALTER TABLE papregist ADD `result_text` varchar(250) NULL
ALTER TABLE papregist ADD `result_number` int NULL
ALTER TABLE papregist ADD `screener_name` varchar(150) NULL
ALTER TABLE papregist ADD `report_date` date NULL
ALTER TABLE papregist ADD `receive_date` date NULL
ALTER TABLE ovstoprt ADD `ovst_diag_id` int NULL
ALTER TABLE ovstoprt ADD `ovst_oper_type` int NOT NULL
ALTER TABLE ovstoprt ADD `icd9cm` varchar(7) NOT NULL
ALTER TABLE ovstoprt ADD `vn` varchar(13) NOT NULL
ALTER TABLE ovst_sticker ADD `send_time` datetime NULL
ALTER TABLE ovst_sticker ADD `depcode` varchar(3) NULL
ALTER TABLE ovst_sticker ADD `printed` char(1) NULL
ALTER TABLE ovst_sticker ADD `vstdate` date NULL
ALTER TABLE ovst_rx_room ADD `entry_staff` varchar(20) NULL
ALTER TABLE ovst_rx_room ADD `depcode` char(3) NULL
ALTER TABLE ovst_rx_room ADD `doctor` varchar(7) NULL
ALTER TABLE ovst_rx_room ADD `vn` varchar(13) NOT NULL
ALTER TABLE ovst_oper_type ADD `name` varchar(100) NOT NULL
ALTER TABLE ovst_finance ADD `department_type` char(3) NULL
ALTER TABLE ovst_finance ADD `finance_status` int NULL
ALTER TABLE ovst_department MODIFY COLUMN doctor varchar(7)
ALTER TABLE ovaccident MODIFY COLUMN icd10 varchar(7)
ALTER TABLE opitemrece_summary ADD `hos_guid` varchar(38) NOT NULL
ALTER TABLE opitemrece_summary ADD `department` char(3) NULL
ALTER TABLE opitemrece_summary ADD `sum_price` double(15,3) NULL
ALTER TABLE opitemrece_summary ADD `qty` int NULL
ALTER TABLE opitemrece_summary ADD `income` char(2) NULL
ALTER TABLE opitemrece_summary ADD `icode` varchar(7) NOT NULL
ALTER TABLE opitemrece_summary ADD `rxdate` date NULL
ALTER TABLE opitemrece_log ADD `new_delta` longtext NULL
ALTER TABLE opitemrece_log ADD `old_delta` longtext NULL
ALTER TABLE opitemrece_log ADD `station` varchar(20) NULL
ALTER TABLE opitemrece_log ADD `staff` varchar(20) NULL
ALTER TABLE opitemrece_log ADD `event_date_time` datetime NULL
ALTER TABLE opitemrece_log ADD `department` char(3) NULL
ALTER TABLE opitemrece_log ADD `vn` varchar(13) NULL
ALTER TABLE opitemrece_charge ADD `charge_money` double(15,3) NULL
ALTER TABLE opitemrece_charge ADD `vn` varchar(13) NULL
ALTER TABLE opitemrece_charge ADD `charge_guid` varchar(38) NULL
ALTER TABLE opitemrece_charge ADD `icode` varchar(7) NULL
ALTER TABLE opitemrece_charge ADD `pttype` char(2) NULL
ALTER TABLE opitemrece ADD `stock_department_id` int NULL
ALTER TABLE opitemrece ADD `cost` double(15,3) NULL
ALTER TABLE operation_wound ADD `operation_wound_name` varchar(150) NULL
ALTER TABLE operation_type ADD `name` varchar(200) NULL
ALTER TABLE operation_time_type ADD `operation_time_type_name` varchar(150) NULL
ALTER TABLE operation_screen_in ADD `bw` double(15,3) NULL
ALTER TABLE operation_screen_in ADD `postoperative_record` longtext NULL
ALTER TABLE operation_screen_in ADD `perioperative_record` longtext NULL
ALTER TABLE operation_screen_in ADD `last_meal_hour` int NULL
ALTER TABLE operation_recovery_room ADD `rr_score` int NULL
ALTER TABLE operation_recovery_room ADD `doctor` varchar(7) NULL
ALTER TABLE operation_recovery_room ADD `leave_room_time` time NULL
ALTER TABLE operation_recovery_room ADD `leave_room_date` date NULL
ALTER TABLE operation_recovery_room ADD `enter_room_time` time NULL
ALTER TABLE operation_recovery_room ADD `enter_room_date` date NULL
ALTER TABLE operation_list ADD `operation_time_type_id` int NULL
ALTER TABLE operation_list ADD `operation_type_id` int NULL
ALTER TABLE operation_list ADD `send_spclty` char(2) NULL
ALTER TABLE operation_list ADD `npo_date_time` datetime NULL
ALTER TABLE operation_list ADD `disease_text` varchar(100) NULL
ALTER TABLE operation_list ADD `age_text` varchar(50) NULL
ALTER TABLE operation_list ADD `spclty` char(2) NULL
ALTER TABLE operation_invent ADD `opi_guid` varchar(38) NULL
ALTER TABLE operation_intra_complication ADD `complication_id` int NOT NULL
ALTER TABLE operation_detail ADD `operation_order_number` int NULL
ALTER TABLE operation_detail ADD `operation_wound_id` int NULL
ALTER TABLE operation_detail ADD `opitemrece_guid` varchar(38) NULL
ALTER TABLE operation_complication ADD `name` varchar(200) NULL
ALTER TABLE operation_blood ADD `note` varchar(250) NULL
ALTER TABLE operation_blood ADD `unit_cc` int NULL
ALTER TABLE operation_blood ADD `blood_type_id` int NULL
ALTER TABLE operation_blood ADD `rh_id` int NULL
ALTER TABLE operation_anes_invent ADD `doctor` varchar(10) NULL
ALTER TABLE operation_anes_invent ADD `opi_guid` varchar(38) NULL
ALTER TABLE operation_anes ADD `df_opitemrece_guid` varchar(38) NULL
ALTER TABLE operation_anes ADD `df_price` double(15,3) NULL
ALTER TABLE operation_anes ADD `df_icode` varchar(7) NULL
ALTER TABLE operation_agent ADD `opi_guid` varchar(38) NULL
ALTER TABLE oper_formula ADD `ipt_oper_code` int NULL
ALTER TABLE opduser ADD `max_station` int NULL
ALTER TABLE opduser ADD `nhso_password` varchar(250) NULL
ALTER TABLE opduser ADD `nhso_user` varchar(250) NULL
ALTER TABLE opduser MODIFY COLUMN doctorcode varchar(7)
ALTER TABLE opdscreen_prevention ADD `etc_text` text NULL
ALTER TABLE opdscreen_prevention ADD `etc_check` char(1) NULL
ALTER TABLE opdscreen_prevention ADD `spread_check` char(1) NULL
ALTER TABLE opdscreen_prevention ADD `convulsion_check` char(1) NULL
ALTER TABLE opdscreen_prevention ADD `fall_check` char(1) NULL
ALTER TABLE opdscreen ADD `cholesterol` double(15,3) NULL
ALTER TABLE opdscreen ADD `peak_flow` int NULL
ALTER TABLE opdscreen ADD `walk_id` int NULL
ALTER TABLE opdscreen ADD `symptom` varchar(200) NULL
ALTER TABLE opd_observe ADD `ward` varchar(4) NULL
ALTER TABLE opd_observe ADD `roomno` varchar(6) NULL
ALTER TABLE opd_observe ADD `bedno` varchar(6) NULL
ALTER TABLE opd_ipd_transfer ADD `sum_price` double(15,3) NULL
ALTER TABLE opd_ipd_transfer ADD `price` double(15,3) NULL
ALTER TABLE opd_ipd_transfer ADD `sp_use` varchar(9) NULL
ALTER TABLE opd_ipd_transfer ADD `drugusage` varchar(9) NULL
ALTER TABLE opd_ipd_transfer ADD `qty` int NULL
ALTER TABLE opd_ipd_transfer ADD `icode` varchar(7) NOT NULL
ALTER TABLE opd_ipd_transfer ADD `an` varchar(9) NULL
ALTER TABLE opd_ipd_transfer ADD `vn` varchar(13) NOT NULL
ALTER TABLE opd_hn_change ADD `opd_hn_change_id` int NULL
ALTER TABLE opd_hn_change ADD `change_type` varchar(10) NULL
ALTER TABLE opd_hn_change ADD `staff` varchar(50) NULL
ALTER TABLE opd_hn_change ADD `change_date` datetime NULL
ALTER TABLE opd_hn_change ADD `new_hn` varchar(9) NULL
ALTER TABLE opd_hn_change ADD `old_hn` varchar(9) NULL
ALTER TABLE opd_finance_head ADD `claim_code` varchar(25) NULL
ALTER TABLE opd_finance_head ADD `oper_name2` varchar(150) NULL
ALTER TABLE opd_finance_head ADD `oper_name1` varchar(150) NULL
ALTER TABLE opd_finance_head ADD `dx_name2` varchar(150) NULL
ALTER TABLE opd_finance_head ADD `dx_name1` varchar(150) NULL
ALTER TABLE opd_finance_head ADD `doctor` varchar(7) NULL
ALTER TABLE opd_card_request ADD `service_ok` char(1) NULL
ALTER TABLE opd_card_request ADD `checkout_date_time` datetime NULL
ALTER TABLE opd_card_request ADD `checkout_staff` varchar(150) NULL
ALTER TABLE opd_allergy ADD `display_order` int NULL
ALTER TABLE opd_allergy ADD `allergy_type` char(1) NULL
ALTER TABLE onlineuser ADD `gateway` varchar(50) NULL
ALTER TABLE onlineuser ADD `database_server` varchar(150) NULL
ALTER TABLE onlineuser ADD `os_name` varchar(100) NULL
ALTER TABLE onlineuser ADD `antivirus_update` varchar(10) NULL
ALTER TABLE onlineuser ADD `antivirus_version` varchar(50) NULL
ALTER TABLE onlineuser ADD `antivirus_name` varchar(150) NULL
ALTER TABLE oapp_xray ADD `xray_side` int NULL
ALTER TABLE oapp_xray ADD `xray_type` int NULL
ALTER TABLE oapp_xray ADD `xray_pt_status` int NULL
ALTER TABLE oapp_xray ADD `xray_room_id` int NULL
ALTER TABLE oapp_xray ADD `xray_items_code` int NOT NULL
ALTER TABLE oapp_xray ADD `oapp_id` int NOT NULL
ALTER TABLE oapp_temp ADD `next_pttype` char(2) NULL
ALTER TABLE oapp_temp ADD `nexttime_end` time NULL
ALTER TABLE oapp_temp ADD `patient_visit` char(1) NULL
ALTER TABLE oapp_temp ADD `ward` varchar(4) NULL
ALTER TABLE oapp_temp ADD `doctor_schedule_id` int NULL
ALTER TABLE oapp_temp ADD `label_color` int NULL
ALTER TABLE oapp_temp ADD `endtime` time NULL
ALTER TABLE oapp_temp ADD `enddate` date NULL
ALTER TABLE oapp_temp ADD `print_sticker` char(1) NULL
ALTER TABLE oapp_temp ADD `app_no` tinyint NULL
ALTER TABLE oapp_temp ADD `note2` text NULL
ALTER TABLE oapp_temp ADD `note1` text NULL
ALTER TABLE oapp_temp ADD `contact_point` varchar(250) NULL
ALTER TABLE oapp_temp ADD `app_cause` varchar(250) NULL
ALTER TABLE oapp_temp ADD `app_user` varchar(150) NULL
ALTER TABLE oapp_temp ADD `spclty` char(2) NULL
ALTER TABLE o