Checking STRUCTURE phase 2
ALTER TABLE stock_warehouse_room ADD `stock_warehouse_room_note` VARCHAR(250) NULL
ALTER TABLE stock_warehouse_room ADD `stock_warehouse_room_name` VARCHAR(200) NOT NULL
ALTER TABLE stock_warehouse_room ADD `warehouse_id` INT NOT NULL
ALTER TABLE stock_warehouse ADD `warehouse_code` VARCHAR(10) NULL
ALTER TABLE stock_warehouse ADD `warehouse_active` CHAR(1) NULL
ALTER TABLE stock_warehouse ADD `warehouse_location` VARCHAR(250) NULL
ALTER TABLE stock_warehouse ADD `warehouse_responsible_officer` VARCHAR(200) NULL
ALTER TABLE stock_supplier_type ADD `stock_supplier_type_name` VARCHAR(150) NOT NULL
ALTER TABLE stock_supplier_agent_type ADD `stock_supplier_agent_type_name` VARCHAR(150) NOT NULL
ALTER TABLE stock_supplier_agent ADD `supplier_agent_position` VARCHAR(100) NULL
ALTER TABLE stock_supplier_agent ADD `stock_supplier_agent_type_id` INT NULL
ALTER TABLE stock_supplier ADD `supplier_suffix` VARCHAR(100) NULL
ALTER TABLE stock_supplier ADD `supplier_title` VARCHAR(100) NULL
ALTER TABLE stock_supplier ADD `transport_day` INT NULL
ALTER TABLE stock_supplier ADD `warehouse_id` INT NULL
ALTER TABLE stock_supplier ADD `stock_supplier_type_id` INT NULL
ALTER TABLE stock_request_committee ADD `stock_committee_position_id` INT NOT NULL
ALTER TABLE stock_request_committee ADD `stock_committee_id` INT NOT NULL
ALTER TABLE stock_request_committee ADD `stock_request_id` INT NOT NULL
ALTER TABLE stock_request ADD `supplier_id` INT NULL
ALTER TABLE stock_request ADD `stock_subject_person` VARCHAR(150) NULL
ALTER TABLE stock_request ADD `stock_subject` VARCHAR(150) NULL
ALTER TABLE stock_request ADD `bdg_year` INT NULL
ALTER TABLE stock_po_committee ADD `stock_committee_position_id` INT NULL
ALTER TABLE stock_po_committee ADD `stock_committee_id` INT NOT NULL
ALTER TABLE stock_po_committee ADD `stock_po_id` INT NOT NULL
ALTER TABLE stock_po ADD `deliver_day` INT NULL
ALTER TABLE stock_plan_list ADD `total_po_amount` DOUBLE(15,3) NULL
ALTER TABLE stock_plan_list ADD `total_po_qty` INT NULL
ALTER TABLE stock_plan_list ADD `period4_po_amount` DOUBLE(15,3) NULL
ALTER TABLE stock_plan_list ADD `period3_po_amount` DOUBLE(15,3) NULL
ALTER TABLE stock_plan_list ADD `period2_po_amount` DOUBLE(15,3) NULL
ALTER TABLE stock_plan_list ADD `period1_po_amount` DOUBLE(15,3) NULL
ALTER TABLE stock_plan_list ADD `period4_po_qty` INT NULL
ALTER TABLE stock_plan_list ADD `period3_po_qty` INT NULL
ALTER TABLE stock_plan_list ADD `period2_po_qty` INT NULL
ALTER TABLE stock_plan_list ADD `period1_po_qty` INT NULL
ALTER TABLE stock_plan_list ADD `item_type_name` VARCHAR(100) NULL
ALTER TABLE stock_plan_list ADD `inc_percent` DOUBLE(15,3) NULL
ALTER TABLE stock_plan_list ADD `unit_cost` DOUBLE(15,3) NULL
ALTER TABLE stock_plan_list ADD `current_qty` INT NULL
ALTER TABLE stock_plan_list ADD `last_3_year_qty` INT NULL
ALTER TABLE stock_plan_list ADD `last_2_year_qty` INT NULL
ALTER TABLE stock_plan_list ADD `last_1_year_qty` INT NULL
ALTER TABLE stock_plan_list ADD `total_amount` DOUBLE(15,3) NULL
ALTER TABLE stock_plan_list ADD `period4_amount` DOUBLE(15,3) NULL
ALTER TABLE stock_plan_list ADD `period3_amount` DOUBLE(15,3) NULL
ALTER TABLE stock_plan_list ADD `period2_amount` DOUBLE(15,3) NULL
ALTER TABLE stock_plan_list ADD `period1_amount` DOUBLE(15,3) NULL
ALTER TABLE stock_plan_list ADD `item_unit` VARCHAR(100) NULL
ALTER TABLE stock_plan_list ADD `item_name` VARCHAR(250) NULL
ALTER TABLE stock_item_warehouse ADD `max_qty` INT NULL
ALTER TABLE stock_item_warehouse ADD `min_qty` INT NULL
ALTER TABLE stock_item_warehouse ADD `stock_item_warehouse_temperature` DOUBLE(15,3) NULL
ALTER TABLE stock_item_warehouse ADD `stock_warehouse_shelf_name` VARCHAR(100) NULL
ALTER TABLE stock_item_warehouse ADD `stock_warehouse_room_id` INT NULL
ALTER TABLE stock_item_warehouse ADD `stock_item_warehouse_id` INT NOT NULL
ALTER TABLE stock_item_picture ADD `item_picture_description` text NULL
ALTER TABLE stock_item_picture ADD `item_picture_datetime` datetime NULL
ALTER TABLE stock_item_picture ADD `item_picture` longblob NULL
ALTER TABLE stock_item_picture ADD `item_id` INT NOT NULL
ALTER TABLE stock_item ADD `gpo_vmi` CHAR(1) NULL
ALTER TABLE stock_item ADD `last_active_date` DATE NULL
ALTER TABLE stock_item ADD `avg_lead_day` DOUBLE(15,3) NULL
ALTER TABLE stock_item ADD `onhand_qty` INT NULL
ALTER TABLE stock_item ADD `safety_stock` INT NULL
ALTER TABLE stock_item ADD `item_note` VARCHAR(200) NULL
ALTER TABLE stock_item ADD `stock_item_regdate` DATE NULL
ALTER TABLE stock_item ADD `bdg_nextyear_percent` DOUBLE(15,3) NULL
ALTER TABLE stock_item ADD `item_regno` VARCHAR(100) NULL
ALTER TABLE stock_deliver ADD `inv_receive_no` VARCHAR(25) NULL
ALTER TABLE stock_committee_position ADD `stock_committee_position_name` VARCHAR(150) NOT NULL
ALTER TABLE stock_committee ADD `stock_committee_position` VARCHAR(250) NULL
ALTER TABLE stock_committee ADD `stock_committee_name` VARCHAR(250) NOT NULL
ALTER TABLE stock_class ADD `oldcode` VARCHAR(20) NULL
ALTER TABLE stock_borrow ADD `return_qty` INT NULL
ALTER TABLE stock_borrow ADD `borrow_qty` INT NULL
ALTER TABLE person_epi ADD `vaccine_opv5_date` DATE NULL
ALTER TABLE person_epi ADD `vaccine_dtp5_date` DATE NULL
ALTER TABLE person_epi ADD `vaccine_je3_date` DATE NULL
ALTER TABLE person_epi ADD `vaccine_je2_date` DATE NULL
ALTER TABLE person_epi ADD `vaccine_je1_date` DATE NULL
ALTER TABLE person_epi ADD `vaccine_opv4_date` DATE NULL
ALTER TABLE person_epi ADD `vaccine_dtp4_date` DATE NULL
ALTER TABLE patient_evaluate_checklist ADD `evaluate_check` CHAR(1) NULL
ALTER TABLE patient_evaluate_checklist ADD `evaluate_form_list_id` INT NOT NULL
ALTER TABLE patient_evaluate_checklist ADD `patient_evaluate_id` INT NOT NULL
ALTER TABLE patient_evaluate ADD `vn_an` VARCHAR(12) NULL
ALTER TABLE patient_evaluate ADD `evaluate_staff` VARCHAR(50) NULL
ALTER TABLE patient_evaluate ADD `evaluate_form_id` INT NOT NULL
ALTER TABLE patient_evaluate ADD `patient_evaluate_time` TIME NULL
ALTER TABLE patient_evaluate ADD `patient_evaluate_date` DATE NULL
ALTER TABLE patient_evaluate ADD `hn` VARCHAR(9) NOT NULL
ALTER TABLE evaluate_form_list ADD `evaluate_form_list_name` VARCHAR(250) NULL
ALTER TABLE evaluate_form_list ADD `evaluate_form_id` INT NOT NULL
ALTER TABLE evaluate_form ADD `evaluate_form_name` VARCHAR(250) NOT NULL
ALTER TABLE clinic_subtype ADD `clinic_subtype_id` INT NOT NULL
ALTER TABLE acupunture_visit_detail ADD `acupunture_point_id` INT NOT NULL
ALTER TABLE acupunture_visit_detail ADD `acupunture_right_side` CHAR(1) NULL
ALTER TABLE acupunture_visit_detail ADD `acupunture_left_side` CHAR(1) NULL
ALTER TABLE acupunture_visit_detail ADD `acupunture_visit_id` INT NOT NULL
ALTER TABLE acupunture_visit ADD `acupunture_result` longtext NULL
ALTER TABLE acupunture_visit ADD `acupunture_visit_no` INT NULL
ALTER TABLE acupunture_visit ADD `acupunture_end_datetime` datetime NULL
ALTER TABLE acupunture_visit ADD `acupunture_start_datetime` datetime NULL
ALTER TABLE acupunture_visit ADD `doctor` VARCHAR(9) NULL
ALTER TABLE acupunture_visit ADD `vn` VARCHAR(13) NOT NULL
ALTER TABLE acupunture_point ADD `acupunture_part_id` INT NOT NULL
ALTER TABLE acupunture_point ADD `acupunture_point_name` VARCHAR(250) NOT NULL
ALTER TABLE acupunture_part ADD `acupunture_part_name` VARCHAR(250) NOT NULL
CREATE TABLE stock_warehouse_room ( `stock_warehouse_room_id` INT NOT NULL )
CREATE TABLE stock_supplier_type ( `stock_supplier_type_id` INT NOT NULL )
CREATE TABLE stock_supplier_agent_type ( `stock_supplier_agent_type_id` INT NOT NULL )
CREATE TABLE stock_request_committee ( `stock_request_committee_id` INT NOT NULL )
CREATE TABLE stock_po_committee ( `stock_po_committee_id` INT NOT NULL )
CREATE TABLE stock_item_picture ( `stock_item_picture_id` INT NOT NULL )
CREATE TABLE stock_committee_position ( `stock_committee_position_id` INT NOT NULL )
CREATE TABLE stock_committee ( `stock_committee_id` INT NOT NULL )
CREATE TABLE patient_evaluate_checklist ( `patient_evaluate_checklist_id` INT NOT NULL )
CREATE TABLE patient_evaluate ( `patient_evaluate_id` INT NOT NULL )
CREATE TABLE evaluate_form_list ( `evaluate_form_list_id` INT NOT NULL )
CREATE TABLE evaluate_form ( `evaluate_form_id` INT NOT NULL )
CREATE TABLE acupunture_visit_detail ( `acupunture_visit_detail_id` INT NOT NULL )
CREATE TABLE acupunture_visit ( `acupunture_visit_id` INT NOT NULL )
CREATE TABLE acupunture_point ( `acupunture_point_id` INT NOT NULL )
CREATE TABLE acupunture_part ( `acupunture_part_id` INT NOT NULL )
Checking STRUCTURE phase 1
UPDATE PRIMARY KEY ON TABLE clinicmember Done.
ALTER TABLE tmp_pk RENAME TO `clinicmember`
DROP TABLE `clinicmember`
Made permanent CHANGE ON TABLE clinicmember
CREATE temp PRIMARY KEY TABLE FROM clinicmember
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