Skip to content

Commit

Permalink
fix table audit_history error (erda-project#1122)
Browse files Browse the repository at this point in the history
* add fdp_project_id for audit history

* fix audit archive failed
  • Loading branch information
QvodSoldier authored Jul 22, 2021
1 parent 15272db commit 881aad0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .erda/migrations/cmdb/20210721-fixAuditHistory.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ALTER TABLE dice_audit_history ADD COLUMN `fdp_project_id` varchar(128) DEFAULT "" NOT NULL COMMENT 'fdp project id';

UPDATE dice_audit SET `fdp_project_id` = "" WHERE `fdp_project_id` IS NULL;
ALTER TABLE dice_audit MODIFY COLUMN `fdp_project_id` varchar(128) DEFAULT "" NOT NULL COMMENT 'fdp project id';

0 comments on commit 881aad0

Please sign in to comment.