summaryrefslogtreecommitdiffstats
path: root/store/sql_audit_store.go
diff options
context:
space:
mode:
Diffstat (limited to 'store/sql_audit_store.go')
-rw-r--r--store/sql_audit_store.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/store/sql_audit_store.go b/store/sql_audit_store.go
index 7609ebc25..772a549a3 100644
--- a/store/sql_audit_store.go
+++ b/store/sql_audit_store.go
@@ -28,17 +28,6 @@ func NewSqlAuditStore(sqlStore *SqlStore) AuditStore {
}
func (s SqlAuditStore) UpgradeSchemaIfNeeded() {
- // ADDED for 2.2 REMOVE for 2.6
- extraLength := s.GetMaxLengthOfColumnIfExists("Audits", "ExtraInfo")
- if len(extraLength) > 0 && extraLength != "1024" {
- s.AlterColumnTypeIfExists("Audits", "ExtraInfo", "VARCHAR(1024)", "VARCHAR(1024)")
- }
-
- // ADDED for 2.2 REMOVE for 2.6
- actionLength := s.GetMaxLengthOfColumnIfExists("Audits", "Action")
- if len(actionLength) > 0 && actionLength != "512" {
- s.AlterColumnTypeIfExists("Audits", "Action", "VARCHAR(512)", "VARCHAR(512)")
- }
}
func (s SqlAuditStore) CreateIndexesIfNotExists() {