pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedFound non-empty schema without metadata table error while migrating
2+ messages / 2 participants
[nested] [flat]
* Found non-empty schema without metadata table error while migrating
@ 2018-02-06 06:52 Abhra Kar <abhra.kar@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Abhra Kar @ 2018-02-06 06:52 UTC (permalink / raw)
To: pgsql-general
Hi,
Getting below error—
exec] Flyway (Command-line Tool) v.1.1
[exec]
[exec] Metadata table created: schema_version
[exec] Schema initialized with version: 0
[exec] Flyway (Command-line Tool) v.1.1
[exec]
[exec] ValidationException: Found non-empty schema without metadata
table! Use init() first to initialise the metadata table.
It stuck when going to execute below configuration in ant build.xml for
migrate db(populate tables into schema abc)—
<exec executable="./${flyway_sh}" dir="flyway-commandline-1.1">
<arg value="-driver=${flyway_driver}" />
<arg value="-url=${jdbc_db_url}" />
<arg value="-user=${xxxx.username}" />
<arg value="-password=${xxxx.password}" />
<!-- <arg value="-Dflyway.baselineOnMigrate='true'" />-->
<arg value="init" />
<arg value="-Dflyway.initialVersion=xxxxxx” />
<arg value="-Dflyway.initialDescription='Base version'" />
</exec>
<exec executable="./${flyway_sh}" dir="flyway-commandline-1.1"
failonerror="true">
<arg value="-driver=${flyway_driver}" />
<arg value="-url=${jdbc_db_url}" />
<arg value="-user=${xxxx.username}" />
<arg value="-password=${xxxx.password}" />
<arg value="-Dflyway.schemas=‘abc'" />
<arg value="migrate" />
</exec>
abc schema is created properly registered with abc user.
<arg value="-Dflyway.baselineOnMigrate='true'" /> didn’t solve the problem
What need to be change here.
Thanks
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Found non-empty schema without metadata table error while migrating
@ 2018-02-06 16:38 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Abhra Kar <abhra.kar@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Klaver @ 2018-02-06 16:38 UTC (permalink / raw)
To: Abhra Kar <abhra.kar@gmail.com>; pgsql-general
On 02/05/2018 10:52 PM, Abhra Kar wrote:
> Hi,
>
> Getting below error—
>
>
> exec] Flyway (Command-line Tool) v.1.1
>
> [exec]
>
> [exec] Metadata table created: schema_version
>
> [exec] Schema initialized with version: 0
>
> [exec] Flyway (Command-line Tool) v.1.1
>
> [exec]
>
> [exec] ValidationException: Found non-empty schema without metadata
> table! Use init() first to initialise the metadata table.
Did you do the above?
The below seems to be a question for the Flyway folks. They don't seem
to have a mailing list, they do point at a SO page:
https://stackoverflow.com/questions/tagged/flyway
>
>
> It stuck when going to execute below configuration in ant build.xml for
> migrate db(populate tables into schema abc)—
>
>
> <exec executable="./${flyway_sh}" dir="flyway-commandline-1.1">
>
> <arg value="-driver=${flyway_driver}" />
>
> <arg value="-url=${jdbc_db_url}" />
>
> <arg value="-user=${xxxx.username}" />
>
> <arg value="-password=${xxxx.password}" />
>
> <!-- <arg value="-Dflyway.baselineOnMigrate='true'" />-->
>
> <arg value="init" />
>
> <arg value="-Dflyway.initialVersion=xxxxxx” />
>
> <arg value="-Dflyway.initialDescription='Base version'" />
>
> </exec>
>
> <exec executable="./${flyway_sh}" dir="flyway-commandline-1.1"
> failonerror="true">
>
> <arg value="-driver=${flyway_driver}" />
>
> <arg value="-url=${jdbc_db_url}" />
>
> <arg value="-user=${xxxx.username}" />
>
> <arg value="-password=${xxxx.password}" />
>
> <arg value="-Dflyway.schemas=‘abc'" />
>
> <arg value="migrate" />
>
> </exec>
>
>
> abc schema is created properly registered with abc user.
>
>
> <arg value="-Dflyway.baselineOnMigrate='true'" /> didn’t solve the problem
>
>
> What need to be change here.
>
>
> Thanks
>
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-02-06 16:38 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-02-06 06:52 Found non-empty schema without metadata table error while migrating Abhra Kar <abhra.kar@gmail.com>
2018-02-06 16:38 ` Adrian Klaver <adrian.klaver@aklaver.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox