| 12345678910111213141516 |
- -- hxcs 生产:audit 表补 complete_content,修复流程时间线查询报错
- USE sp_gzhx_apps;
- SET @col_exists := (
- SELECT COUNT(*) FROM information_schema.COLUMNS
- WHERE TABLE_SCHEMA = 'sp_gzhx_apps' AND TABLE_NAME = 'audit' AND COLUMN_NAME = 'complete_content'
- );
- SET @ddl := IF(@col_exists = 0,
- 'ALTER TABLE audit ADD COLUMN complete_content varchar(256) DEFAULT NULL COMMENT ''办理内容'' AFTER desc_cms',
- 'SELECT ''audit.complete_content already exists'' AS info'
- );
- PREPARE stmt FROM @ddl;
- EXECUTE stmt;
- DEALLOCATE PREPARE stmt;
|