You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
gradle plugin (but should be valid for any)
What database are you using (type & version)?
db2 11.1 with default table organization set to COLUMN
db2 get db cfg | grep DFT_TABLE_ORG Default table organization (DFT_TABLE_ORG) = COLUMN
What operating system are you using?
windows
What did you do?
run the migration using gradlew flywayMigrate to populate empty db
What did you expect to see?
create a metadata table when blu acceleration as default.
What did you see instead?
* What went wrong:Execution failed for task ':flywayMigrate'.
> Error occurred while executing flywayMigrateScript failed-------------SQL State : 42613Error Code : -1666Message : CHECKLine : 17Statement : CREATE TABLE "LTS"."SCHEMA_VERSION_2017" ( "installed_rank" INT NOT NULL, "version" VARCHAR(50), "description" VARCHAR(200) NOT NULL, "type" VARCHAR(20) NOT NULL, "script" VARCHAR(1000) NOT NULL, "checksum" INT, "installed_by" VARCHAR(100) NOT NULL, "installed_on" TIMESTAMP DEFAULT CURRENT TIMESTAMP NOT NULL, "execution_time" INT NOT NULL, "success" SMALLINT NOT NULL, CONSTRAINT "SCHEMA_VERSION_2017_s" CHECK ("success" in(0,1)))CHECK
Fix proposal
Update db2/createMetaDataTable.sql with ORGANIZE BY ROW option:
CREATE TABLE "${schema}"."${table}" (
"installed_rank"INTNOT NULL,
"version"VARCHAR(50),
"description"VARCHAR(200) NOT NULL,
"type"VARCHAR(20) NOT NULL,
"script"VARCHAR(1000) NOT NULL,
"checksum"INT,
"installed_by"VARCHAR(100) NOT NULL,
"installed_on"TIMESTAMP DEFAULT CURRENT TIMESTAMPNOT NULL,
"execution_time"INTNOT NULL,
"success"SMALLINTNOT NULL,
CONSTRAINT"${table}_s"CHECK ("success"in(0,1))
)
ORGANIZE BY ROW;
The text was updated successfully, but these errors were encountered:
axelfontaine
changed the title
Cannot create metadata table in DB2 when default table organization is se to column
Cannot create metadata table in DB2 when default table organization is set to column
Nov 17, 2017
What version of Flyway are you using?
4.2.0
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
gradle plugin (but should be valid for any)
What database are you using (type & version)?
db2 11.1 with default table organization set to COLUMN
What operating system are you using?
windows
What did you do?
run the migration using
gradlew flywayMigrate
to populate empty dbWhat did you expect to see?
create a metadata table when blu acceleration as default.
What did you see instead?
Fix proposal
Update
db2/createMetaDataTable.sql
withORGANIZE BY ROW
option:The text was updated successfully, but these errors were encountered: