Can't compose db:drop db:create db:migrate in single call against Spanner Cloud #272
Labels
api: spanner
Issues related to the googleapis/ruby-spanner-activerecord API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
When trying to do a database reset in a multi-database Rails app with
bin/rails db:drop:spanner db:create:spanner db:schema:load:spanner
, drop and create succeed but schema:load fails withDatabase not found
from Spanner.The problem is consistent when connected to Cloud Spanner projects, but does not occur when connected to the Spanner local emulator.
Environment details
activerecord-spanner-adapter (1.4.4)
Steps to reproduce
Have a cloud spanner project + instance set up.
bin/rails db:drop:spanner db:create:spanner db:migrate:spanner
against the project + instance.Full trace
Expected outcome
Drop, create, load schema on Cloud Spanner without errors in one shot like in MySQL, Postgres, or Sqlite.
The text was updated successfully, but these errors were encountered: