Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

schema_version doesn't have select permission?

Tags:

oracle

flyway

I executed flyway:init with test/test as user/password and got the following output:

[INFO] Creating schema "MY_SCHEMA" ...
[INFO] Creating Metadata table: "MY_SCHEMA"."schema_version"
[INFO] Schema initialized with version: 1

Then I connected to oracle using MY_SCHEMA/flyway as user/password but I can't select on schema_version, I get "ORA-00942: table or view does not exist". User test cannot select on schema_version also.

How do I see what is in the schema_version table?

Thanks

like image 654
lehphyro Avatar asked Jan 21 '13 12:01

lehphyro


1 Answers

See http://flywaydb.org/documentation/faq.html#case-sensitive

The table name must be quoted to select from it.

like image 91
Axel Fontaine Avatar answered Sep 29 '22 06:09

Axel Fontaine