From af35a8e2c2c9b76b5f45a2e4b58cc69b9cab396b Mon Sep 17 00:00:00 2001 From: Chen-I Lim <46905241+chenilim@users.noreply.github.com> Date: Tue, 12 Apr 2022 12:17:58 -0700 Subject: [PATCH] GH 2593: Fix Windows migration (#2767) * Upgrade npm in build-ubuntu * npm i -S moment * Don't upgrade npm * macos-latest on build-mac * Update dev-release.yml * Fix #2593: Fix Windows migration --- server/services/store/sqlstore/migrate.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/services/store/sqlstore/migrate.go b/server/services/store/sqlstore/migrate.go index c59a914ff..d60a2b918 100644 --- a/server/services/store/sqlstore/migrate.go +++ b/server/services/store/sqlstore/migrate.go @@ -10,7 +10,6 @@ import ( "github.com/mattermost/focalboard/server/utils" - "path/filepath" "strconv" "text/template" @@ -147,7 +146,7 @@ func (s *SQLStore) Migrate() error { migrationAssets := &embedded.AssetSource{ Names: assetNamesForDriver, AssetFunc: func(name string) ([]byte, error) { - asset, mErr := assets.ReadFile(filepath.Join("migrations", name)) + asset, mErr := assets.ReadFile("migrations/" + name) if mErr != nil { return nil, mErr }