fix spanner ensure migration table

This commit is contained in:
Watanabe Masaru
2017-07-09 10:57:10 -07:00
committed by Matthias Kadenbach
parent 2614b3c95e
commit bc933ff0db
+1 -1
View File
@@ -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
}