mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Library elements: Add MySQL migration for increasing the column size (#63856)
* Library elements: Add MySQL migration for increasing column size
This commit is contained in:
parent
7948e3b20d
commit
e41311e8be
@ -58,4 +58,7 @@ func addLibraryElementsMigrations(mg *migrator.Migrator) {
|
||||
mg.AddMigration("increase max description length to 2048", migrator.NewTableCharsetMigration("library_element", []*migrator.Column{
|
||||
{Name: "description", Type: migrator.DB_NVarchar, Length: 2048, Nullable: false},
|
||||
}))
|
||||
|
||||
mg.AddMigration("alter library_element model to mediumtext", migrator.NewRawSQLMigration("").
|
||||
Mysql("ALTER TABLE library_element MODIFY model MEDIUMTEXT NOT NULL;"))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user