We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67f8711 commit 3827344Copy full SHA for 3827344
core/src/wheels/tests_testbox/specs/global/dbinfoSpec.cfc
@@ -186,7 +186,13 @@ component extends="wheels.Testbox" {
186
variables.varcharType = "TEXT";
187
} else {
188
// Default (H2, etc.)
189
- variables.identityColumnType = "INT NOT NULL IDENTITY";
+ 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
196
variables.varcharType = "VARCHAR";
197
}
198
0 commit comments