firebase-tools icon indicating copy to clipboard operation
firebase-tools copied to clipboard

Cannot migrate dataconnect: Only users granted firebaseowner SQL role can run migrations (But I am owner)

Open mariusmcl opened this issue 1 year ago • 2 comments

[REQUIRED] Environment info

firebase-tools: 14.10.1

Platform: macOS

[REQUIRED] Test case

Create a sample schema in the dataconnect GQL cloud. Check it out locally, and then re-name a table (I.e. I renamed the User table to AllenaUser). When I run

firebase dataconnect:sql:migrate

I get the error

Command aborted. Only users granted firebaseowner SQL role can run migrations

But when I run

firebase login

It is my owner email that appears, and i check IAM and I am Owner of the entire project (It is only me working on it).

[REQUIRED] Steps to reproduce

Create a sample schema in the dataconnect GQL cloud. Check it out locally, and then re-name a table (I.e. I renamed the User table to AllenaUser). When I run

firebase dataconnect:sql:migrate

I get the error

[REQUIRED] Expected behavior

I can run the migration. I am the admin and owner

[REQUIRED] Actual behavior

Image

mariusmcl avatar Jul 10 '25 20:07 mariusmcl

This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.

google-oss-bot avatar Jul 10 '25 20:07 google-oss-bot

skill issue related to having set up dataconnect on an existing cloud sql resource (https://firebase.google.com/docs/data-connect/cli-reference) Fixed with:

firebase dataconnect:sql:grant
--role owner
--email your@email

mariusmcl avatar Jul 11 '25 02:07 mariusmcl