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
pull/69212/head
Artur Wierzbicki 2 years ago committed by GitHub
parent 0ed5d3bdf2
commit 15f06a93b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      pkg/services/sqlstore/migrations/db_file_storage.go

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

Loading…
Cancel
Save