Checking primary key
Checking structure phase 2
ALTER TABLE village_student_vaccine ADD `epi_autistic_screen_type_id` int NULL
ALTER TABLE village_student ADD `out_region` char(1) NULL
ALTER TABLE village_student ADD `hos_guid` varchar(38) NULL
ALTER TABLE village_student ADD `school_room_no` int NULL
ALTER TABLE village_student ADD `village_school_room_id` int NULL
ALTER TABLE village_student ADD `discharge_date` date NULL
ALTER TABLE village_student ADD `discharge` char(1) 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 stock_po ADD `pr_ref_no` varchar(100) NULL
ALTER TABLE stock_po ADD `delivery_ref_date` date NULL
ALTER TABLE stock_po ADD `reference_id` int NULL
ALTER TABLE stock_po ADD `note` text NULL
ALTER TABLE stock_po ADD `cancel_reason` varchar(100) NULL
ALTER TABLE stock_po ADD `po_cancel` char(1) NULL
ALTER TABLE stock_po ADD `deliver_cancel` char(1) NULL
ALTER TABLE stock_po ADD `stock_po_discount_total` double(15,3) NULL
ALTER TABLE stock_po ADD `stock_po_discount` int NULL
ALTER TABLE stock_po ADD `stock_po_vat` double(15,3) NULL
ALTER TABLE stock_po ADD `stock_po_tax` char(1) NULL
ALTER TABLE stock_po ADD `po_type_id` int NULL
ALTER TABLE stock_po ADD `deliver_complete` char(1) NULL
ALTER TABLE stock_po ADD `deliver_count` int NULL
ALTER TABLE stock_po ADD `supplier_agent_id` int NULL
ALTER TABLE stock_po ADD `bdg_year` int NULL
ALTER TABLE stock_po ADD `po_item_amount` int NULL
ALTER TABLE stock_po ADD `po_amount` double(15,3) NULL
ALTER TABLE stock_po ADD `stock_po_confirm` char(1) NULL
ALTER TABLE stock_po ADD `paid_status_id` int NULL
ALTER TABLE stock_po ADD `purchase_type` int NULL
ALTER TABLE stock_po ADD `item_type` int NULL
ALTER TABLE stock_po ADD `budget_id` int NULL
ALTER TABLE stock_po ADD `supplier_id` int NULL
ALTER TABLE stock_po ADD `stock_po_date` date NULL
ALTER TABLE stock_po ADD `stock_po_no` varchar(30) NULL
ALTER TABLE stock_po ADD `warehouse_id` int NULL
ALTER TABLE stock_item ADD `item_code` varchar(25) NULL
ALTER TABLE stock_item ADD `unit_price` double(15,3) NULL
ALTER TABLE stock_item ADD `barcode_number` varchar(30) NULL
ALTER TABLE stock_item ADD `stock_class_id` int NULL
ALTER TABLE stock_item ADD `stock_item_cost_type_id` int NULL
ALTER TABLE stock_item ADD `fix_department` char(1) NULL
ALTER TABLE stock_item ADD `default_department_id` int NULL
ALTER TABLE stock_item ADD `newcode` varchar(20) NULL
ALTER TABLE stock_item ADD `oldcode` varchar(20) NULL
ALTER TABLE stock_item ADD `old_unit_cost` double(15,5) 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(30) NULL
ALTER TABLE stock_item ADD `reorder_qty` int NULL
ALTER TABLE stock_item ADD `reorder_level` int NULL
ALTER TABLE stock_item ADD `icode` varchar(7) NULL
ALTER TABLE stock_item ADD `item_package_name` varchar(30) NULL
ALTER TABLE stock_item ADD `item_unit_qty` int NULL
ALTER TABLE stock_item ADD `item_standard_price` double(15,3) NULL
ALTER TABLE stock_item ADD `item_use_status` char(1) NULL
ALTER TABLE stock_item ADD `item_type` int NULL
ALTER TABLE stock_item ADD `item_unit` varchar(50) NULL
ALTER TABLE stock_item ADD `item_name` varchar(250) NULL
ALTER TABLE nondrugitems ADD `ipd_default_pay` int NULL
ALTER TABLE dttm ADD `charge_area_qty` char(1) NULL
ALTER TABLE dttm ADD `thai_name` varchar(250) NULL
ALTER TABLE dttm ADD `dttm_guid` varchar(38) NULL
ALTER TABLE dttm ADD `active_status` char(1) NULL
ALTER TABLE dttm ADD `charge_per_qty` char(1) NULL
ALTER TABLE dttm ADD `unit` varchar(20) NULL
ALTER TABLE dttm ADD `dttm_group_id` int NULL
ALTER TABLE dttm ADD `ipd_price3` double(15,3) NULL
ALTER TABLE dttm ADD `ipd_price2` double(15,3) NULL
ALTER TABLE dttm ADD `ipd_price1` double(15,3) NULL
ALTER TABLE dttm ADD `opd_price3` double(15,3) NULL
ALTER TABLE dttm ADD `opd_price2` double(15,3) NULL
ALTER TABLE dttm ADD `opd_price1` double(15,3) NULL
ALTER TABLE dttm ADD `icode` varchar(7) NULL
ALTER TABLE dttm ADD `icd9cm` varchar(9) NULL
ALTER TABLE dttm ADD `icd10` varchar(9) NULL
ALTER TABLE dttm ADD `treatment` char(1) NULL
ALTER TABLE dttm ADD `vorder` int NULL
ALTER TABLE dttm ADD `requiredtc` char(1) NULL
ALTER TABLE dttm ADD `name` varchar(250) NULL
ALTER TABLE drugitems ADD `ipd_default_pay` int NULL
ALTER TABLE diagtype ADD `nhso_code` varchar(1) NULL
ALTER TABLE datadictionary ADD `update_staff` varchar(25) NULL
ALTER TABLE datadictionary ADD `mark_update` char(1) NULL
ALTER TABLE datadictionary ADD `last_update` datetime NULL
ALTER TABLE datadictionary ADD `description` text NULL
ALTER TABLE datadictionary ADD `field_type` varchar(150) NULL
ALTER TABLE datadictionary ADD `fieldname` varchar(50) NOT NULL
CREATE TABLE village_student ( `village_student_id` int NOT NULL )
CREATE TABLE stock_po ( `stock_po_id` int NOT NULL )
CREATE TABLE stock_item ( `item_id` int NOT NULL )
CREATE TABLE dttm ( `code` varchar(10) NOT NULL )
CREATE TABLE datadictionary ( `tablename` varchar(50) NOT NULL )
Checking structure phase 1
Table opdscreen has hos_guid
Table patient has hos_guid
Table ovst has hos_guid
Table opitemrece has hos_guid
Update hosxp_dll_field data ...
Upgrade MySQL Start