1. 下载TP6框架
下载tp6 , 项目命名为 ort
composer create-project topthink/think ort
注意:
- 默认安装 TP6是单应用模式,访问和以前稍有不同。
- 先再根目录下创建 .env 文件,然后添加 APP_DEBUG = TRUE, 方便调试。
数据库搭建:
导入OK,然后需要做下面的测试。
-- 将所有表的存储引擎改为 innodb
SELECT CONCAT( 'ALTER TABLE ', TABLE_NAME, ' ENGINE=InnoDB;' )
FROM information_schema.tables
WHERE table_schema = 'ort'
-- 执行
ALTER TABLE fa_tracker_bison_efi ENGINE=InnoDB;
ALTER TABLE fa_tracker_bison_efi_record ENGINE=InnoDB;
ALTER TABLE fa_tracker_bison_efi_record_temp ENGINE=InnoDB;
ALTER TABLE fa_tracker_bison_miniline ENGINE=InnoDB;
ALTER TABLE fa_tracker_bison_miniline_record ENGINE=InnoDB;
ALTER TABLE fa_tracker_bison_miniline_record_temp ENGINE=InnoDB;
ALTER TABLE fa_tracker_jedi_efi ENGINE=InnoDB;
ALTER TABLE fa_tracker_jedi_efi_record ENGINE=InnoDB;
ALTER TABLE fa_tracker_jedi_efi_record_temp ENGINE=InnoDB;
ALTER TABLE fa_tracker_jedi_miniline ENGINE=InnoDB;
ALTER TABLE fa_tracker_jedi_miniline_record ENGINE=InnoDB;
ALTER TABLE fa_tracker_jedi_miniline_record_temp ENGINE=InnoDB;
ALTER TABLE fa_tracker_kirin_efi ENGINE=InnoDB;
ALTER TABLE fa_tracker_kirin_efi_record ENGINE=InnoDB;
ALTER TABLE fa_tracker_kirin_efi_record_temp ENGINE=InnoDB;
ALTER TABLE fa_tracker_kirin_miniline ENGINE=InnoDB;
ALTER TABLE fa_tracker_kirin_miniline_record ENGINE=InnoDB;
ALTER TABLE fa_tracker_kirin_miniline_record_temp ENGINE=InnoDB;
ALTER TABLE fa_tracker_mongoose_efi ENGINE=InnoDB;
ALTER TABLE fa_tracker_mongoose_efi_record ENGINE=InnoDB;
ALTER TABLE fa_tracker_mongoose_efi_record_temp ENGINE=InnoDB;
ALTER TABLE fa_tracker_mongoose_miniline ENGINE=InnoDB;
ALTER TABLE fa_tracker_mongoose_miniline_record ENGINE=InnoDB;
ALTER TABLE fa_tracker_mongoose_miniline_record_temp ENGINE=InnoDB;
ALTER TABLE fa_tracker_radar_dct ENGINE=InnoDB;
ALTER TABLE fa_tracker_radar_dct_mapping ENGINE=InnoDB;
ALTER TABLE fa_tracker_radar_log ENGINE=InnoDB;
ALTER TABLE fa_tracker_radar_name_mapping ENGINE=InnoDB;
ALTER TABLE fa_tracker_radar_record ENGINE=InnoDB;
ALTER TABLE fa_tracker_result ENGINE=InnoDB;
ALTER TABLE fa_tracker_select_category_fa3 ENGINE=InnoDB;
ALTER TABLE fa_tracker_select_fa1 ENGINE=InnoDB;
ALTER TABLE fa_tracker_select_fa2 ENGINE=InnoDB;
ALTER TABLE fa_tracker_select_fa_judgement_result ENGINE=InnoDB;
ALTER TABLE fa_tracker_select_fa_status ENGINE=InnoDB;
ALTER TABLE fa_tracker_select_issue ENGINE=InnoDB;
ALTER TABLE fa_tracker_select_sub_fa2 ENGINE=InnoDB;
ALTER TABLE fa_tracker_star_efi ENGINE=InnoDB;
ALTER TABLE fa_tracker_star_efi_record ENGINE=InnoDB;
ALTER TABLE fa_tracker_star_efi_record_temp ENGINE=InnoDB;
ALTER TABLE fa_tracker_star_miniline ENGINE=InnoDB;
ALTER TABLE fa_tracker_star_miniline_record ENGINE=InnoDB;
ALTER TABLE fa_tracker_star_miniline_record_temp ENGINE=InnoDB;
ALTER TABLE logs ENGINE=InnoDB;
ALTER TABLE material_exponent_bison ENGINE=InnoDB;
ALTER TABLE material_exponent_jedi ENGINE=InnoDB;
ALTER TABLE material_exponent_kirin ENGINE=InnoDB;
ALTER TABLE material_exponent_mongoose ENGINE=InnoDB;
ALTER TABLE material_exponent_star ENGINE=InnoDB;
ALTER TABLE material_fa2_date ENGINE=InnoDB;
ALTER TABLE material_sarl_bison ENGINE=InnoDB;
ALTER TABLE material_sarl_jedi ENGINE=InnoDB;
ALTER TABLE material_sarl_kirin ENGINE=InnoDB;
ALTER TABLE material_sarl_mongoose ENGINE=InnoDB;
ALTER TABLE material_sarl_star ENGINE=InnoDB;
ALTER TABLE material_status ENGINE=InnoDB;
ALTER TABLE material_tracker_bison ENGINE=InnoDB;
ALTER TABLE material_tracker_jedi ENGINE=InnoDB;
ALTER TABLE material_tracker_kirin ENGINE=InnoDB;
ALTER TABLE material_tracker_mongoose ENGINE=InnoDB;
ALTER TABLE material_tracker_star ENGINE=InnoDB;
ALTER TABLE ts_check ENGINE=InnoDB;
ALTER TABLE ts_fa_status ENGINE=InnoDB;
ALTER TABLE ts_log ENGINE=InnoDB;
ALTER TABLE ts_phase1_bison ENGINE=InnoDB;
ALTER TABLE ts_phase1_jedi ENGINE=InnoDB;
ALTER TABLE ts_phase1_kirin ENGINE=InnoDB;
ALTER TABLE ts_phase1_mongoose ENGINE=InnoDB;
ALTER TABLE ts_phase1_star ENGINE=InnoDB;
ALTER TABLE ts_phase2_bison ENGINE=InnoDB;
ALTER TABLE ts_phase2_jedi ENGINE=InnoDB;
ALTER TABLE ts_phase2_kirin ENGINE=InnoDB;
ALTER TABLE ts_phase2_mongoose ENGINE=InnoDB;
ALTER TABLE ts_phase2_star ENGINE=InnoDB;
ALTER TABLE ts_phase3_bison ENGINE=InnoDB;
ALTER TABLE ts_phase3_jedi ENGINE=InnoDB;
ALTER TABLE ts_phase3_kirin ENGINE=InnoDB;
ALTER TABLE ts_phase3_mongoose ENGINE=InnoDB;
ALTER TABLE ts_phase3_star ENGINE=InnoDB;
ALTER TABLE ts_phase4_bison ENGINE=InnoDB;
ALTER TABLE ts_phase4_jedi ENGINE=InnoDB;
ALTER TABLE ts_phase4_kirin ENGINE=InnoDB;
ALTER TABLE ts_phase4_mongoose ENGINE=InnoDB;
ALTER TABLE ts_phase4_star ENGINE=InnoDB;
ALTER TABLE ts_plan_status_mapping ENGINE=InnoDB;
ALTER TABLE ts_plan_upload ENGINE=InnoDB;
ALTER TABLE ts_project ENGINE=InnoDB;
ALTER TABLE ts_sn_mapping ENGINE=InnoDB;
ALTER TABLE ts_status_fixture_id ENGINE=InnoDB;
ALTER TABLE ts_status_upload ENGINE=InnoDB;
ALTER TABLE ts_test_flow_mapping ENGINE=InnoDB;
ALTER TABLE user ENGINE=InnoDB;
ALTER TABLE user_maintain ENGINE=InnoDB;
ALTER TABLE wh_back_code ENGINE=InnoDB;
ALTER TABLE wh_borrow_code ENGINE=InnoDB;
ALTER TABLE wh_build ENGINE=InnoDB;
ALTER TABLE wh_fa100_status ENGINE=InnoDB;
ALTER TABLE wh_logs ENGINE=InnoDB;
ALTER TABLE wh_machine_details ENGINE=InnoDB;
ALTER TABLE wh_material ENGINE=InnoDB;
ALTER TABLE wh_miniline ENGINE=InnoDB;
ALTER TABLE wh_pr_unit ENGINE=InnoDB;
ALTER TABLE wh_product ENGINE=InnoDB;
ALTER TABLE wh_record ENGINE=InnoDB;
ALTER TABLE wh_replace_material ENGINE=InnoDB;
ALTER TABLE wh_storage_location_1 ENGINE=InnoDB;
ALTER TABLE wh_storage_location_2 ENGINE=InnoDB;
ALTER TABLE wh_storage_location_3 ENGINE=InnoDB;
-- 查看数据所有表的储存引擎
show table status from ort