From 23a2745a3adef7f2080b5f96cd15af41f895ec1c Mon Sep 17 00:00:00 2001 From: Watanabe Masaru Date: Sat, 24 Jun 2017 16:46:57 +0800 Subject: [PATCH] fix spanner ensure migration table --- database/spanner/spanner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/spanner/spanner.go b/database/spanner/spanner.go index be97f08..44ac74f 100644 --- a/database/spanner/spanner.go +++ b/database/spanner/spanner.go @@ -258,7 +258,7 @@ func (s *Spanner) Drop() error { func (s *Spanner) ensureVersionTable() error { ctx := context.Background() tbl := s.config.MigrationsTable - iter := s.db.data.Single().Read(ctx, tbl, spanner.AllKeys(), nil) + iter := s.db.data.Single().Read(ctx, tbl, spanner.AllKeys(), []string{"Version"}) if err := iter.Do(func(r *spanner.Row) error { return nil }); err == nil { return nil }