Commit Graph
3301 Commits
Author SHA1 Message Date
sunguangming dbfdeebe28 * [misc] remove unused field. 2025-12-30 01:18:24 +00:00
sunguangming 32a5412509 * [misc] remove unused field. 2025-12-30 01:17:58 +00:00
sunguangming 6ddc7c39ea * [bug#68696,done,0.2h] fix bug. 2025-12-29 08:37:35 +00:00
朱金勇 d10e96a387 * [pgsql] Use "IF" insteal of IF. 2025-12-28 21:23:01 +08:00
liugang ae37fb6c6c * [refac] Remove the position field and the function field from the zt_dept table. 2025-12-25 10:57:20 +08:00
sunguangming 13fe282375 * [sql] modify user last type. 2025-12-24 03:19:03 +00:00
liugang e7bb1b36a3 - [misc] Don't update the zt_metric table to improve performance when upgrading. 2025-12-19 09:52:41 +08:00
wangyuting d344b47cec * Optimize code. 2025-12-10 15:38:01 +08:00
wangyuting fe4e08f673 * Optimize code. 2025-12-10 15:32:45 +08:00
wangyuting 9abcbd04f3 * Optimize date field. 2025-12-10 14:43:37 +08:00
liugang 1f9b945abc + [misc] Add sql statements to drop tables. 2025-12-10 09:40:45 +08:00
liugang c401a82d06 + [misc] Alter table fields when upgrading from version 21.7.7. 2025-12-10 09:01:35 +08:00
liugang 8e5ced2c20 + [misc] Add id field as primary key. 2025-12-10 09:01:35 +08:00
liugang 8b6c1f1444 * [misc] Update the budget field's value to float. 2025-12-09 17:04:36 +08:00
liugang 74c7ede29b * [bug#67872] Change the parent field data type from int unsigned to int. 2025-12-09 16:42:45 +08:00
liugang ab5a5ed020 * [misc] Remove display width of integer fields. 2025-12-09 16:40:03 +08:00
liugang 3f14578e4b + [misc] Add standard sql file of version 21.7.8. 2025-12-08 10:57:20 +08:00
liugang 4dd8d14348 * [misc] Change the budget field value from empty string to 0.00. 2025-12-08 10:45:27 +08:00
liugang 801bc79da1 * [misc] Change the parent field data type from int unsigned to int. 2025-12-08 10:30:05 +08:00
liugang 310c14a0fd * [refac] Remove explicit charset declarations. 2025-12-08 09:58:17 +08:00
liugang 4a8b91f224 * [misc] Change enum field data types to tinyint unsigned. 2025-12-08 09:58:17 +08:00
liugang 2549b06fb9 * [misc] Change the data type from mediumint(8) to int. 2025-12-08 09:58:17 +08:00
liugang 78f4d2caf1 * [misc] Create unique index in a single row. 2025-12-08 09:58:17 +08:00
liugang a71c6e9b33 * [misc] Change the data type from char to varchar. 2025-12-08 09:58:17 +08:00
liugang 8c04a45e51 * [misc] Change enum field data types to tinyint unsigned. 2025-12-08 09:58:17 +08:00
liugang d99a8d7efb * [misc] Change the data type from mediumint(8) to int. 2025-12-08 09:58:17 +08:00
liugang 4ba50b91ca - [misc] Remove useless sql. 2025-12-08 09:58:17 +08:00
hujunqing 89d9b38e7d Fixed SQL error. 2025-12-05 09:04:30 +00:00
liugang 5380cb1af0 * [misc] Change the type field data type to varchar(20). 2025-12-05 16:59:21 +08:00
sunguangming 99d0c3430c * [sql] modify sql error. 2025-12-05 02:05:20 +00:00
sunguangming f4a39a4098 * [error] modify sql error. 2025-12-05 01:53:44 +00:00
liugang 8d59d07845 * [refac] Optimize the fields data type from date to datetime. 2025-12-05 09:29:30 +08:00
liugang 182ba5eb05 * [misc] Optimize budget field data type from varchar(30) to decimal(12,2) unsigned and set default value of budgetUnit field. 2025-12-05 09:29:30 +08:00
liugang 39b05dda02 * [misc] Optimize version field data type from varchar(50) to varchar(10). 2025-12-05 09:29:30 +08:00
liugang ccbc0b9c9c * [misc] Remove useless dataset field of the zt_chart table. 2025-12-05 09:29:30 +08:00
liugang 783eeb581e * [misc] Optimize width field data type from varchar(50) to smallint unsigned. 2025-12-05 09:29:30 +08:00
liugang 1c0aabc85a * [misc] Optimize parent field data type from smallint to int. 2025-12-05 09:29:30 +08:00
liugang 13e70c839b * [misc] Optimize severity field data type from smallint to tinyint. 2025-12-05 09:29:30 +08:00
liugang aaaca41055 - [misc] Remove useless zt_dashboard table. 2025-12-05 09:29:30 +08:00
liugang f85766877c * [misc] Optimize severity field data type from varchar(30) to tinyint unsigned. 2025-12-05 09:29:30 +08:00
liugang 87b5fc81c5 - [misc] Remove useless tables because the privileges are managed by configuration files. 2025-12-05 09:29:30 +08:00
liugang bc8d8fe6ea * [misc] Optimize vision field default value from '' to '1'. 2025-12-05 09:29:29 +08:00
liugang 4dab9dfe7e * [misc] Optimize vision field data type from varchar(30/255) to varchar(10). 2025-12-05 09:29:29 +08:00
liugang 78f9bd3fe9 refactor: consolidate zt_group data insertion into single REPLACE statement
* Merge multiple separate INSERT and REPLACE INTO zt_group statements into one unified REPLACE INTO statement
* Improve code organization and readability in zentao.sql
* Reduce redundant SQL statements for better maintainability
* Align all zt_group records for rnd, lite, and or visions in consistent format
2025-12-05 09:29:29 +08:00
liugang 1efba79c02 refactor: consolidate and reorganize zt_config initialization
- Merge scattered INSERT INTO zt_config statements into single REPLACE INTO block
- Remove duplicate config insertions to prevent conflicts
2025-12-05 09:29:29 +08:00
liugang d58d51c4d9 refactor: consolidate and optimize cron job configurations in zentao.sql
- Merge scattered INSERT INTO zt_cron statements into single REPLACE INTO block
- Add lastTime column support for all cron jobs
- Remove duplicate cron job definitions to avoid conflicts
- Optimize task scheduling times for better resource distribution
2025-12-05 09:29:29 +08:00
liugang 310e6c2d6a * [misc] Optimize order field data type from smallint unsigned to int unsigned in database schema. 2025-12-05 09:29:29 +08:00
liugang 5bd44f5964 * [misc] Standardize SQL keyword capitalization in database schema. 2025-12-05 09:29:29 +08:00
liugang 8fbc4aee9a * [misc] Standardize vision field positioning in database schema. 2025-12-05 09:29:28 +08:00
liugang 720d412c71 * [misc] Optimize objectType field lengths in database schema. 2025-12-05 09:29:28 +08:00