mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Storage: increase size of the contents column (#69152)
* fix size of contents column * temporarily re-enable integration tests * lint * revert: temporarily re-enable integration tests
This commit is contained in:
@@ -64,4 +64,7 @@ func addDbFileStorageMigration(mg *migrator.Migrator) {
|
|||||||
// MySQL `utf8mb4_unicode_ci` collation is set in `mysql_dialect.go`
|
// MySQL `utf8mb4_unicode_ci` collation is set in `mysql_dialect.go`
|
||||||
// SQLite uses a `BINARY` collation by default
|
// SQLite uses a `BINARY` collation by default
|
||||||
Postgres("ALTER TABLE file ALTER COLUMN path TYPE VARCHAR(1024) COLLATE \"C\";")) // Collate C - sorting done based on character code byte values
|
Postgres("ALTER TABLE file ALTER COLUMN path TYPE VARCHAR(1024) COLLATE \"C\";")) // Collate C - sorting done based on character code byte values
|
||||||
|
|
||||||
|
mg.AddMigration("migrate contents column to mediumblob for MySQL", migrator.NewRawSQLMigration("").
|
||||||
|
Mysql("ALTER TABLE file MODIFY contents MEDIUMBLOB;"))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user