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:
Sofia Papagiannaki 2023-03-06 13:13:30 +02:00 committed by GitHub
parent 7948e3b20d
commit e41311e8be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;"))
}