Skip to content

Commit 3827344

Browse files
committed
update dbinfospec for latest h2 version
1 parent 67f8711 commit 3827344

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

core/src/wheels/tests_testbox/specs/global/dbinfoSpec.cfc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,13 @@ component extends="wheels.Testbox" {
186186
variables.varcharType = "TEXT";
187187
} else {
188188
// Default (H2, etc.)
189-
variables.identityColumnType = "INT NOT NULL IDENTITY";
189+
local.dbVersion = listToArray(local.dbInfo["DATABASE_VERSION"], " ")[1];
190+
if(local.dbVersion eq '2.1.214'){
191+
variables.identityColumnType = "INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY";
192+
}
193+
else if(local.dbVersion eq '1.3.172'){
194+
variables.identityColumnType = "int NOT NULL IDENTITY";
195+
}
190196
variables.varcharType = "VARCHAR";
191197
}
192198
}

0 commit comments

Comments
 (0)