Fix: Change secure_json_data column data type to medium text only MYSQL (#102557)

fix: change secure_json_data type to medium text only MYSQL
pull/102945/head
Syerikjan Kh 4 months ago committed by GitHub
parent 7aa71aa734
commit 15e7c3c439
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      pkg/services/sqlstore/migrations/datasource_mig.go

@ -142,4 +142,8 @@ func addDataSourceMigration(mg *Migrator) {
mg.AddMigration("Add api_version column", NewAddColumnMigration(tableV2, &Column{
Name: "api_version", Type: DB_Varchar, Nullable: true, Length: 20,
}))
mg.AddMigration("Update secure_json_data column to MediumText", NewRawSQLMigration("").
Mysql("ALTER TABLE data_source MODIFY COLUMN secure_json_data MEDIUMTEXT;"),
)
}

Loading…
Cancel
Save