Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23a2745

Browse files
wtnb-msrmattes
authored andcommitted
fix spanner ensure migration table
1 parent 88c6a0a commit 23a2745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/spanner/spanner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func (s *Spanner) Drop() error {
258258
func (s *Spanner) ensureVersionTable() error {
259259
ctx := context.Background()
260260
tbl := s.config.MigrationsTable
261-
iter := s.db.data.Single().Read(ctx, tbl, spanner.AllKeys(), nil)
261+
iter := s.db.data.Single().Read(ctx, tbl, spanner.AllKeys(), []string{"Version"})
262262
if err := iter.Do(func(r *spanner.Row) error { return nil }); err == nil {
263263
return nil
264264
}

0 commit comments

Comments
 (0)