Commit Graph
112971 Commits
Author SHA1 Message Date
sunguangming b7cb88cd32 * [bug] skip filter tpl. 2025-12-05 01:39:44 +00:00
刘刚 97d0b13590 Merge branch feature/sql of zentao/zentaopms (#12663) 2025-12-05 09:38:04 +08:00
liugang 8d59d07845 * [refac] Optimize the fields data type from date to datetime. 2025-12-05 09:29:30 +08:00
liugang 1da1f8f7e0 - [misc] Remove useless configuration items. 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 b4a3909096 + [misc] Add configuration of deleted files. 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
liugang 168b624b96 * [misc] Optimize acl field length from varchar(30) to varchar(10) in database schema. 2025-12-05 09:29:28 +08:00
liugang 4fb5d076a2 * [misc] Optimize varchar field lengths for user-related fields in database schema. 2025-12-05 09:29:28 +08:00
liugang b283c484d9 * [misc] Optimize week field data type from char(8) to char(2) in zt_measrecords table. 2025-12-05 09:29:28 +08:00
liugang 18dded17a4 * [misc] Add NOT NULL constraint to type field in zt_ai_miniprogramfield table. 2025-12-05 09:29:28 +08:00
liugang 5b7bfd1c89 * [misc] Change story field data type from char to int unsigned in zt_design table. 2025-12-05 09:29:28 +08:00
liugang dc7f015fce * [misc] Remove extra spaces. 2025-12-05 09:29:28 +08:00
liugang 8f448e4e5b * [misc] Standardize numeric default values and formatting in database schema. 2025-12-05 09:29:28 +08:00
liugang b495ddfe35 * [misc] Optimize char and varchar field data types in database schema. 2025-12-05 09:29:27 +08:00
liugang f9e09742ca * [misc] Change numeric string defaults to empty strings in database schema. 2025-12-05 09:29:27 +08:00
liugang 6312ecc3a7 * [misc] Fix database schema field definitions and default values.
- Fix varchar fields with incorrect numeric default values (0 → '')
- Standardize field spacing and remove extra whitespace
- Fix typo: NOT NULl → NOT NULL
- Convert NULL fields to NOT NULL with appropriate defaults
- Change smallint to tinyint for percent field in approvalnode table
- Standardize time field definitions (NULL → DEFAULT NULL)
- Fix icon field DEFAULT value syntax in ai_assistant table
2025-12-05 09:29:25 +08:00
liugang bff14b36e0 * [misc] Remove useless zt_session table from database schema. 2025-12-05 09:28:57 +08:00
liugang 531eb27ab5 * [misc] Replace NULL with DEFAULT NULL for explicit default values. 2025-12-05 09:28:26 +08:00
liugang 25b23def55 * [misc] Standardize SQL data type keywords to lowercase in database schema. 2025-12-05 09:28:26 +08:00
liugang c008909cc3 * [misc] Move deleted field to last position before PRIMARY KEY in database tables. 2025-12-05 09:28:26 +08:00
liugang f18fd68bc2 * [misc] Standardize color field data types to char(7) in database schema. 2025-12-05 09:28:26 +08:00
liugang 1086696cc8 * [misc] Standardize formatting and spacing in SQL table definitions. 2025-12-05 09:28:26 +08:00
liugang 6ae8df9c3d * [misc] Replace \t with spaces in database schema. 2025-12-05 09:28:24 +08:00
liugang 21c61c3e26 * [misc] Change float field data types to decimal for improved precision in database schema. 2025-12-05 09:26:30 +08:00
liugang 61a8e84ae9 * [misc] Add missing primary keys and auto-increment ID columns to database tables. 2025-12-05 09:26:30 +08:00
liugang 984888061c * [misc] Change char field data types to varchar in database schema. 2025-12-05 09:26:30 +08:00
liugang 0d07643a43 * [misc] Change version fields default value from 0 to 1 in database schema. 2025-12-05 09:26:30 +08:00
liugang cd0c95051e * [misc] Change time field data types from smallint unsigned zerofill to char(4). 2025-12-05 09:26:30 +08:00
liugang 627350e1f2 * [misc] Add DEFAULT 0 to NOT NULL integer fields without defaults in database schema
- Add DEFAULT 0 to int and smallint fields that are NOT NULL but missing default values
- Standardize foreign key fields and numeric columns to have explicit default values
- Fix inconsistent SQL syntax by adding missing DEFAULT clauses
- Ensure all NOT NULL integer columns have proper default values for better data integrity
2025-12-05 09:26:30 +08:00
liugang cf43d50105 * [misc] Standardize SQL keywords to uppercase in database schema
- Change 'auto_increment' to 'AUTO_INCREMENT' for consistency
- Change 'default' to 'DEFAULT' for field definitions
- Change 'not' to 'NOT' in field constraints
- Ensure consistent capitalization of SQL keywords throughout zentao.sql

This continues the database schema standardization effort to improve
code readability and maintain consistent SQL formatting standards.
2025-12-05 09:26:30 +08:00
liugang 25fc29d790 * [misc] Fix NULL value typo in INSERT statements. 2025-12-05 09:26:30 +08:00
liugang bbc80a24dc * [misc] Replace NULL with DEFAULT NULL for explicit default values. 2025-12-05 09:26:30 +08:00
liugang d052998854 * [misc] Remove quotes from integer default values. 2025-12-05 09:26:30 +08:00