Commit Graph
149 Commits
Author SHA1 Message Date
liugang 7eaf0e84a7 * [refactor] Refactor SQL processing for database installation and upgrade
- Extract SQL processing methods to install model for better reusability
- Add replaceContantsInSQL() and appendMySQLTableOptions() public methods
- Unify SQL constants replacement across installation and upgrade modules
- Remove duplicate SQL processing code in extension and upgrade models
- Fix __TABLE__ to __DATABASE__ in zentao.sql for consistency
- Improve code maintainability and reduce duplication
2025-11-24 16:17:02 +08:00
liugang 586391d449 * [fix] Fix CREATE TABLE SQL parsing and ensure ENGINE=InnoDB for MySQL tables
- Fix SQL parsing logic in extension/model.php to properly handle table definitions
- Fix SQL parsing logic in install/model.php to properly handle table definitions
- Ensure ENGINE=InnoDB is explicitly set for MySQL CREATE TABLE statements in upgrade/model.php
- This addresses potential issues with table creation and ensures consistent InnoDB engine usage
2025-11-24 16:17:02 +08:00
liugang 789def3fe7 * [perf] Move getDatabaseCharsetAndCollation() call outside the foreach loop to improve performance. 2025-11-24 16:17:02 +08:00
liugang ef056ceab0 * [misc] Add = in sql statement to set character set and collation. 2025-11-24 16:17:01 +08:00
liugang bed53213c4 * [refac] Enhance database SQL processing in extension module
- Add PostgreSQL schema prefix support for table operations
- Improve MySQL charset and collation handling in CREATE TABLE statements
- Unify database prefix replacement logic for zt_ and ztv_ tables
- Use getDatabaseCharsetAndCollation method for consistent charset configuration
2025-11-20 18:16:34 +08:00
liugang a672676ba8 * [refac] Refactor the spyc class. 2025-10-27 09:08:22 +08:00
wangyidong a9f1108a60 * [refac bug #62957] Fix error. 2025-05-28 14:05:45 +08:00
wangyidong b383e57ac9 * [refac bug #62250] Use zfile removeDir method to replace rmdir function. 2025-05-23 16:51:55 +08:00
sunguangming fb1c7f27fe * [bug#60038,done,0.1h] fix bug. 2025-02-27 10:55:15 +08:00
caoyanyi cba6092fe6 * [bug#58241] adjust extension data get. 2024-12-17 13:21:36 +08:00
wangyidong 1a5804a648 * [refac bug #55501] Adjust for check dir owner. 2024-09-24 13:40:17 +08:00
caoyanyi 61e8e2f768 - [misc] delete unused code. 2024-09-12 13:20:41 +08:00
caoyanyi f2dc9f4423 * [misc] adjust code. 2024-08-29 11:29:38 +08:00
caoyanyi 58c03bf569 * [task#127096,done,0.5h] adjust extension install error. 2024-08-29 11:29:38 +08:00
tianshujie 1db6b76f3c * [refac] change ZenTaoCMS to ZenTaoPMS. 2024-08-28 11:11:51 +08:00
liugang fab33da84f * [misc] check if the sql contains table name and update table cache time if contains. 2024-06-18 15:52:58 +08:00
liugang a0c4ed07da + [misc] update dao cache after import sql of extension. 2024-06-13 08:36:32 +00:00
daitingting 9bca86b1a2 * Fix bug #45153. 2024-01-29 08:50:29 +00:00
wangyuting fd2d3541c1 * Sort extension function. 2023-12-12 10:46:31 +08:00
wangyuting 8fe9b3eb66 * Refactor extension getexpiringplugins function and finish unit test script. 2023-12-11 11:12:26 +08:00
wangyuting e91b9964ab * Finish getDependsExtension function unit test script. 2023-12-11 08:40:04 +08:00
wangyuting aeb5007f26 * Move model function checkDepends and compare4Limit to extensionZen function getDependsByDB and compareForLimit. 2023-12-08 17:04:16 +08:00
wangyuting b902a34156 * Refactor extension function updateExtension and finish the unit test script. 2023-12-08 16:28:53 +08:00
wangyuting f66692417f * Adjust extension function type. 2023-12-08 16:09:10 +08:00
wangyuting 5ea2d7e425 * Refactor extension function saveExtension and finish the unit test script. 2023-12-08 15:56:57 +08:00
wangyuting 848cb20d2d * Move function backupDB to extensionZen. 2023-12-08 15:44:41 +08:00
wangyuting ff935912f9 * Refactor extension function executeDB and finish the unit test script. 2023-12-08 15:34:14 +08:00
wangyuting 17c32a6558 * Remove function needExecuteDB. 2023-12-08 15:08:30 +08:00
wangyuting 6fb2e3fc6c * Refactor extension function erasePackage and finish the unit test script. 2023-12-08 14:58:21 +08:00
wangyuting f28218664b * split function removepackage into functions removeExtensionFiles and removeExtensionDirs. 2023-12-08 14:39:10 +08:00
wangyuting 186e3d30d1 * Refactor extension removepackage function and finish unit test script. 2023-12-08 14:12:31 +08:00
wangyuting 6eafbf453e * Adjust copyPackageFiles model function to zen. 2023-12-07 17:08:37 +08:00
wangyuting 1f0184a8d8 * Adjust extractPackage model function to zen. 2023-12-07 17:03:26 +08:00
wangyuting 5ecb97151b * Adjust checkFile model function to checkFileConflict zen function. 2023-12-07 16:51:15 +08:00
wangyuting d8a7fafbda * Optimize api checkVersion function and finish unit test script. 2023-12-07 16:36:07 +08:00
wangyuting cfa062cd80 * Adjust checkDownloadPath and checkExtensionPaths function to extension zen. 2023-12-07 16:26:24 +08:00
wangyuting 6c8fe3b0c3 * Optimize api getDBFile function and finish unit test script. 2023-12-07 16:03:53 +08:00
wangyuting 76f75f6461 * Optimize api processLicense function and finish unit test script. 2023-12-07 15:42:54 +08:00
wangyuting 39a6503874 * Optimize api getCondition function and finish unit test script. 2023-12-07 15:20:17 +08:00
wangyuting 4788400271 Optimize api getFilesFromPackage function and finish unit test script. 2023-12-07 15:03:34 +08:00
wangyuting 6085212bce * Optimize api getPathsFromPackage function and finish unit test script. 2023-12-07 14:57:07 +08:00
wangyuting ad270fc9d6 * Optimize api getPackageFile and parseExtensionCFG function and finish unit test script. 2023-12-07 14:46:53 +08:00
wangyuting b32ae50e60 * Optimize api getInfoFromPackage function and finish unit test script. 2023-12-07 14:12:33 +08:00
wangyuting 8474cd2461 * Optimize api getInfoFromDb function and finish unit test script. 2023-12-07 13:12:27 +08:00
wangyuting a957464e2e * Optimize api getLocalExtensions function and finish unit test script. 2023-12-07 11:02:06 +08:00
wangyuting f13bd5b4e4 * Optimize api checkIncompatible function and finish unit test script. 2023-12-07 10:38:41 +08:00
wangyuting 3be4803520 * Optimize api getVersionsByAPI function and finish unit test script. 2023-12-07 10:04:59 +08:00
wangyuting 7374e8c7fb * Optimize api getModulesByAPI function and finish unit test script. 2023-12-07 09:15:47 +08:00
caoyanyi 8e17266f28 * Update commit link info. 2023-12-06 13:42:44 +08:00
wangyuting 552e172451 * Optimize extension upload function. 2023-12-06 10:13:14 +08:00