Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schemas are not created if the first schema is 'public' [redshift] #1612

Closed
samay-kapadia-zocdoc opened this issue Apr 24, 2017 · 1 comment

Comments

@samay-kapadia-zocdoc
Copy link

What version of Flyway are you using?

4.1.2

Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)

SBT

What database are you using (type & version)?

AWS Redshift

What operating system are you using?

OS X

What did you do?

In my build.sbt, this is the buggy code:
flywaySchemas := Seq("public", "otherSchema")
Which results in this:

[info] Successfully validated 0 migrations (execution time 00:00.125s)
[info] Creating Metadata table: "public"."schema_version"
[info] Current version of schema "public": << Empty Schema >>
[info] Schema "public" is up to date. No migration necessary.
[success] Total time: 2 s, completed Apr 24, 2017 5:37:38 PM

Notice how otherSchema was not created.

However, with this code:
flywaySchemas := Seq("schema1", "schema2", "schema3")
We get this:

[info] Creating schema "schema1" ...
[info] Creating schema "schema2" ...
[info] Creating schema "schema3" ...
[info] Creating Metadata table: "schema1"."schema_version"
What did you expect to see?
[info] Creating schema "otherSchema" ...
What did you see instead?

@samay-kapadia-zocdoc samay-kapadia-zocdoc changed the title Schemas are not created if the first schema is public [redshift] Schemas are not created if the first schema is 'public' [redshift] Apr 24, 2017
@axelfontaine
Copy link
Contributor

Duplicate of #1328

@axelfontaine axelfontaine marked this as a duplicate of #1328 Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants