From d668bf66268baef2dda3721d5b97a6aec12f4bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Sat, 17 Apr 2021 10:05:07 +0200 Subject: [PATCH] Fix a backward compatibility problem --- server/services/store/sqlstore/migrate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/services/store/sqlstore/migrate.go b/server/services/store/sqlstore/migrate.go index cad570a71..1a508df82 100644 --- a/server/services/store/sqlstore/migrate.go +++ b/server/services/store/sqlstore/migrate.go @@ -48,7 +48,7 @@ func (pm *PrefixedMigration) ReadUp(version uint) (io.ReadCloser, string, error) if err != nil { return nil, "", err } - return io.NopCloser(bytes.NewReader(buffer.Bytes())), identifier, nil + return ioutil.NopCloser(bytes.NewReader(buffer.Bytes())), identifier, nil } func (pm *PrefixedMigration) ReadDown(version uint) (io.ReadCloser, string, error) { @@ -69,7 +69,7 @@ func (pm *PrefixedMigration) ReadDown(version uint) (io.ReadCloser, string, erro if err != nil { return nil, "", err } - return io.NopCloser(bytes.NewReader(buffer.Bytes())), identifier, nil + return ioutil.NopCloser(bytes.NewReader(buffer.Bytes())), identifier, nil } func (s *SQLStore) Migrate() error {