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:
Artur Wierzbicki 2023-05-30 21:11:04 +04:00 committed by GitHub
parent 0ed5d3bdf2
commit 15f06a93b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,4 +64,7 @@ func addDbFileStorageMigration(mg *migrator.Migrator) {
// MySQL `utf8mb4_unicode_ci` collation is set in `mysql_dialect.go`
// 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
mg.AddMigration("migrate contents column to mediumblob for MySQL", migrator.NewRawSQLMigration("").
Mysql("ALTER TABLE file MODIFY contents MEDIUMBLOB;"))
}