diff --git a/.github/workflows/docs-sync.yml b/.github/workflows/docs-sync.yml index e0138cead7..f74c7b2b72 100644 --- a/.github/workflows/docs-sync.yml +++ b/.github/workflows/docs-sync.yml @@ -17,6 +17,7 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + submodules: false - name: Sync to shared docs folder run: | diff --git a/core/src/wheels/Global.cfc b/core/src/wheels/Global.cfc index 6ce107c288..8d957a848c 100644 --- a/core/src/wheels/Global.cfc +++ b/core/src/wheels/Global.cfc @@ -215,7 +215,7 @@ component output="false" { ) { local.adapter = $get("adapterName"); - if (local.adapter == "SQLServer") { + if (local.adapter == "MicrosoftSQLServerModel") { local.sql = " SELECT DB_NAME() AS TABLE_CAT, @@ -248,7 +248,7 @@ component output="false" { return local.rv; } - if (local.adapter == "Oracle") { + if (local.adapter == "OracleModel") { local.sql = " SELECT NULL AS TABLE_CAT, @@ -278,7 +278,7 @@ component output="false" { if ( structKeyExists(arguments, "type") && arguments.type eq "index" && - $get("adapterName") eq "SQLite" + $get("adapterName") eq "SQLiteModel" ) { local.sql = " SELECT @@ -833,7 +833,7 @@ component output="false" { } // Handle SQLite (TEXT storage) - if (get("adapterName") == "SQLite") { + if (get("adapterName") == "SQLiteModel") { // Store as quoted ISO 8601 string (standard for SQLite) if (IsDate(local.rv)) { local.rv = "'#DateFormat(local.rv, 'yyyy-mm-dd')# #TimeFormat(local.rv, 'HH:mm:ss')#'"; diff --git a/core/src/wheels/Model.cfc b/core/src/wheels/Model.cfc index fb7b50b1ad..c4f09fe897 100644 --- a/core/src/wheels/Model.cfc +++ b/core/src/wheels/Model.cfc @@ -187,7 +187,7 @@ component output="false" displayName="Model" extends="wheels.Global"{ variables.wheels.class.properties[local.property].datatype eq "TEXT" && variables.wheels.class.properties[local.property].type eq "cf_sql_varchar" && ReFindNoCase("\b(date|time|dob|birthday|birthTime|created|updated)\b", variables.wheels.class.properties[local.property].column) - && get("adapterName") eq "SQLite" + && get("adapterName") eq "SQLiteModel" ) { // Override only validation type variables.wheels.class.properties[local.property].validationtype = "datetime"; @@ -385,17 +385,23 @@ component output="false" displayName="Model" extends="wheels.Global"{ ); } if (FindNoCase("SQLServer", local.info.driver_name) || FindNoCase("SQL Server", local.info.driver_name)) { - local.adapterName = "SQLServer"; + local.adapterNamespace = "MicrosoftSQLServer"; + local.adapterName = "MicrosoftSQLServerModel"; } else if (FindNoCase("MySQL", local.info.driver_name) || FindNoCase("MariaDB", local.info.driver_name)) { - local.adapterName = "MySQL"; + local.adapterNamespace = "MySQL"; + local.adapterName = "MySQLModel"; } else if (FindNoCase("PostgreSQL", local.info.driver_name)) { - local.adapterName = "PostgreSQL"; + local.adapterNamespace = "PostgreSQL"; + local.adapterName = "PostgreSQLModel"; } else if (FindNoCase("H2", local.info.driver_name)) { - local.adapterName = "H2"; + local.adapterNamespace = "H2"; + local.adapterName = "H2Model"; } else if (FindNoCase("Oracle", local.info.driver_name)) { - local.adapterName = "Oracle"; + local.adapterNamespace = "Oracle"; + local.adapterName = "OracleModel"; } else if (FindNoCase("SQLite", local.info.driver_name)) { - local.adapterName = "SQLite"; + local.adapterNamespace = "SQLite"; + local.adapterName = "SQLiteModel"; } else { Throw( type = "Wheels.DatabaseNotSupported", @@ -404,7 +410,7 @@ component output="false" displayName="Model" extends="wheels.Global"{ ); } $set(adapterName = local.adapterName); - return CreateObject("component", "wheels.model.adapters.#local.adapterName#").$init( + return CreateObject("component", "wheels.databaseAdapters.#local.adapterNamespace#.#local.adapterName#").$init( dataSource = variables.wheels.class.dataSource, username = variables.wheels.class.username, password = variables.wheels.class.password diff --git a/core/src/wheels/migrator/adapters/Abstract.cfc b/core/src/wheels/databaseAdapters/Abstract.cfc old mode 100644 new mode 100755 similarity index 100% rename from core/src/wheels/migrator/adapters/Abstract.cfc rename to core/src/wheels/databaseAdapters/Abstract.cfc diff --git a/core/src/wheels/model/adapters/Base.cfc b/core/src/wheels/databaseAdapters/Base.cfc old mode 100644 new mode 100755 similarity index 100% rename from core/src/wheels/model/adapters/Base.cfc rename to core/src/wheels/databaseAdapters/Base.cfc diff --git a/core/src/wheels/migrator/adapters/H2.cfc b/core/src/wheels/databaseAdapters/H2/H2Migrator.cfc old mode 100644 new mode 100755 similarity index 98% rename from core/src/wheels/migrator/adapters/H2.cfc rename to core/src/wheels/databaseAdapters/H2/H2Migrator.cfc index 30d0762120..3537db09da --- a/core/src/wheels/migrator/adapters/H2.cfc +++ b/core/src/wheels/databaseAdapters/H2/H2Migrator.cfc @@ -1,4 +1,4 @@ -component extends="Abstract" { +component extends="wheels.databaseAdapters.Abstract" { variables.sqlTypes = {}; variables.sqlTypes['biginteger'] = {name = 'BIGINT'}; diff --git a/core/src/wheels/model/adapters/H2.cfc b/core/src/wheels/databaseAdapters/H2/H2Model.cfc old mode 100644 new mode 100755 similarity index 98% rename from core/src/wheels/model/adapters/H2.cfc rename to core/src/wheels/databaseAdapters/H2/H2Model.cfc index fca857f921..ea4b169e13 --- a/core/src/wheels/model/adapters/H2.cfc +++ b/core/src/wheels/databaseAdapters/H2/H2Model.cfc @@ -1,4 +1,4 @@ -component extends="Base" output=false { +component extends="wheels.databaseAdapters.Base" output=false { /** * Map database types to the ones used in CFML. diff --git a/core/src/wheels/migrator/adapters/MicrosoftSQLServer.cfc b/core/src/wheels/databaseAdapters/MicrosoftSQLServer/MicrosoftSQLServerMigrator.cfc old mode 100644 new mode 100755 similarity index 99% rename from core/src/wheels/migrator/adapters/MicrosoftSQLServer.cfc rename to core/src/wheels/databaseAdapters/MicrosoftSQLServer/MicrosoftSQLServerMigrator.cfc index a9fab3a325..dadd302e5d --- a/core/src/wheels/migrator/adapters/MicrosoftSQLServer.cfc +++ b/core/src/wheels/databaseAdapters/MicrosoftSQLServer/MicrosoftSQLServerMigrator.cfc @@ -1,4 +1,4 @@ -component extends="Abstract" { +component extends="wheels.databaseAdapters.Abstract" { variables.sqlTypes = {}; variables.sqlTypes['primaryKey'] = "int NOT NULL IDENTITY (1, 1)"; diff --git a/core/src/wheels/model/adapters/SQLServer.cfc b/core/src/wheels/databaseAdapters/MicrosoftSQLServer/MicrosoftSQLServerModel.cfc old mode 100644 new mode 100755 similarity index 99% rename from core/src/wheels/model/adapters/SQLServer.cfc rename to core/src/wheels/databaseAdapters/MicrosoftSQLServer/MicrosoftSQLServerModel.cfc index 1bb369e511..90f658b996 --- a/core/src/wheels/model/adapters/SQLServer.cfc +++ b/core/src/wheels/databaseAdapters/MicrosoftSQLServer/MicrosoftSQLServerModel.cfc @@ -1,4 +1,4 @@ -component extends="Base" output=false { +component extends="wheels.databaseAdapters.Base" output=false { /** * Map database types to the ones used in CFML. diff --git a/core/src/wheels/migrator/adapters/MySQL.cfc b/core/src/wheels/databaseAdapters/MySQL/MySQLMigrator.cfc old mode 100644 new mode 100755 similarity index 98% rename from core/src/wheels/migrator/adapters/MySQL.cfc rename to core/src/wheels/databaseAdapters/MySQL/MySQLMigrator.cfc index e07ba02c05..bcf70c5414 --- a/core/src/wheels/migrator/adapters/MySQL.cfc +++ b/core/src/wheels/databaseAdapters/MySQL/MySQLMigrator.cfc @@ -1,4 +1,4 @@ -component extends="Abstract" { +component extends="wheels.databaseAdapters.Abstract" { variables.sqlTypes = {}; variables.sqlTypes['biginteger'] = {name = 'BIGINT UNSIGNED'}; diff --git a/core/src/wheels/model/adapters/MySQL.cfc b/core/src/wheels/databaseAdapters/MySQL/MySQLModel.cfc old mode 100644 new mode 100755 similarity index 97% rename from core/src/wheels/model/adapters/MySQL.cfc rename to core/src/wheels/databaseAdapters/MySQL/MySQLModel.cfc index 1829bff56a..19f4180737 --- a/core/src/wheels/model/adapters/MySQL.cfc +++ b/core/src/wheels/databaseAdapters/MySQL/MySQLModel.cfc @@ -1,4 +1,4 @@ -component extends="Base" output=false { +component extends="wheels.databaseAdapters.Base" output=false { /** * Map database types to the ones used in CFML. diff --git a/core/src/wheels/migrator/adapters/Oracle.cfc b/core/src/wheels/databaseAdapters/Oracle/OracleMigrator.cfc old mode 100644 new mode 100755 similarity index 99% rename from core/src/wheels/migrator/adapters/Oracle.cfc rename to core/src/wheels/databaseAdapters/Oracle/OracleMigrator.cfc index f7654f4218..1f666af055 --- a/core/src/wheels/migrator/adapters/Oracle.cfc +++ b/core/src/wheels/databaseAdapters/Oracle/OracleMigrator.cfc @@ -1,4 +1,4 @@ -component extends="Abstract" { +component extends="wheels.databaseAdapters.Abstract" { /** * SQL type mappings specific to Oracle Database 12c+ diff --git a/core/src/wheels/model/adapters/Oracle.cfc b/core/src/wheels/databaseAdapters/Oracle/OracleModel.cfc old mode 100644 new mode 100755 similarity index 98% rename from core/src/wheels/model/adapters/Oracle.cfc rename to core/src/wheels/databaseAdapters/Oracle/OracleModel.cfc index cd3614dc12..2659e7b104 --- a/core/src/wheels/model/adapters/Oracle.cfc +++ b/core/src/wheels/databaseAdapters/Oracle/OracleModel.cfc @@ -1,4 +1,4 @@ -component extends="Base" output=false { +component extends="wheels.databaseAdapters.Base" output=false { /** * Map database types to the ones used in CFML. diff --git a/core/src/wheels/migrator/adapters/PostgreSQL.cfc b/core/src/wheels/databaseAdapters/PostgreSQL/PostgreSQLMigrator.cfc old mode 100644 new mode 100755 similarity index 98% rename from core/src/wheels/migrator/adapters/PostgreSQL.cfc rename to core/src/wheels/databaseAdapters/PostgreSQL/PostgreSQLMigrator.cfc index 2f769991fc..f7203567a7 --- a/core/src/wheels/migrator/adapters/PostgreSQL.cfc +++ b/core/src/wheels/databaseAdapters/PostgreSQL/PostgreSQLMigrator.cfc @@ -1,4 +1,4 @@ -component extends="Abstract" { +component extends="wheels.databaseAdapters.Abstract" { variables.sqlTypes = {}; variables.sqlTypes['binary'] = {name = 'BYTEA'}; diff --git a/core/src/wheels/model/adapters/PostgreSQL.cfc b/core/src/wheels/databaseAdapters/PostgreSQL/PostgreSQLModel.cfc old mode 100644 new mode 100755 similarity index 98% rename from core/src/wheels/model/adapters/PostgreSQL.cfc rename to core/src/wheels/databaseAdapters/PostgreSQL/PostgreSQLModel.cfc index a95997230b..7175a5f5dc --- a/core/src/wheels/model/adapters/PostgreSQL.cfc +++ b/core/src/wheels/databaseAdapters/PostgreSQL/PostgreSQLModel.cfc @@ -1,4 +1,4 @@ -component extends="Base" output=false { +component extends="wheels.databaseAdapters.Base" output=false { /** * Map database types to the ones used in CFML. diff --git a/core/src/wheels/migrator/adapters/SQLite.cfc b/core/src/wheels/databaseAdapters/SQLite/SQLiteMigrator.cfc old mode 100644 new mode 100755 similarity index 98% rename from core/src/wheels/migrator/adapters/SQLite.cfc rename to core/src/wheels/databaseAdapters/SQLite/SQLiteMigrator.cfc index 88c9651521..15c71f36bb --- a/core/src/wheels/migrator/adapters/SQLite.cfc +++ b/core/src/wheels/databaseAdapters/SQLite/SQLiteMigrator.cfc @@ -1,4 +1,4 @@ -component extends="Abstract" { +component extends="wheels.databaseAdapters.Abstract" { // SQLite type mapping (simpler type system) variables.sqlTypes = {}; diff --git a/core/src/wheels/model/adapters/SQLite.cfc b/core/src/wheels/databaseAdapters/SQLite/SQLiteModel.cfc old mode 100644 new mode 100755 similarity index 98% rename from core/src/wheels/model/adapters/SQLite.cfc rename to core/src/wheels/databaseAdapters/SQLite/SQLiteModel.cfc index c696e69731..eae27d1516 --- a/core/src/wheels/model/adapters/SQLite.cfc +++ b/core/src/wheels/databaseAdapters/SQLite/SQLiteModel.cfc @@ -1,4 +1,4 @@ -component extends="Base" output=false { +component extends="wheels.databaseAdapters.Base" output=false { /** * Map SQLite types to CFML types. diff --git a/core/src/wheels/migrator/Migration.cfc b/core/src/wheels/migrator/Migration.cfc index 4a1e593d11..5735e2f322 100755 --- a/core/src/wheels/migrator/Migration.cfc +++ b/core/src/wheels/migrator/Migration.cfc @@ -9,7 +9,7 @@ component extends="Base" { extendedInfo = "Use SQL Server, MySQL, MariaDB, PostgreSQL, Oracle, SQLite or H2." ); } else { - this.adapter = CreateObject("component", "adapters.#dbType#"); + this.adapter = CreateObject("component", "wheels.databaseAdapters.#dbType#.#dbType#Migrator"); } return this; } @@ -424,7 +424,7 @@ component extends="Base" { } else if (IsBoolean(arguments[local.key])) { local.columnValues = ListAppend(local.columnValues, IIf(arguments[local.key], 1, 0)); } else if (IsDate(arguments[local.key])) { - if(get("adapterName") == "SQLite" && $isTimestampLiteral(arguments[local.key])){ + if(get("adapterName") == "SQLiteModel" && $isTimestampLiteral(arguments[local.key])){ local.columnValues = '"#$convertToString(arguments[local.key])#"'; } else { local.columnValues = ListAppend(local.columnValues, "#arguments[local.key]#"); @@ -486,7 +486,7 @@ component extends="Base" { } else if (IsBoolean(arguments[local.key])) { local.update = local.update & "#IIf(arguments[local.key], 1, 0)#"; } else if (IsDate(arguments[local.key])) { - if(get("adapterName") == "SQLite" && $isTimestampLiteral(arguments[local.key])){ + if(get("adapterName") == "SQLiteModel" && $isTimestampLiteral(arguments[local.key])){ local.update = local.update & '"#$convertToString(arguments[local.key])#"'; } else { local.update = local.update & "#arguments[local.key]#"; diff --git a/core/src/wheels/model/sql.cfc b/core/src/wheels/model/sql.cfc index b045eee176..2624688e67 100644 --- a/core/src/wheels/model/sql.cfc +++ b/core/src/wheels/model/sql.cfc @@ -19,7 +19,7 @@ component { ArrayAppend(arguments.sql, "UPDATE #tableName()# SET #variables.wheels.class.softDeleteColumn# = "); } // Use cf_sql_varchar in SQLite for TEXT timestamps - if(get("adapterName") eq "SQLite") { + if(get("adapterName") eq "SQLiteModel") { local.type = "cf_sql_varchar"; } else { local.type = "cf_sql_timestamp"; @@ -40,9 +40,9 @@ component { local.rv = ""; if (StructKeyExists(arguments.useIndex, arguments.modelName)) { local.indexName = arguments.useIndex[arguments.modelName]; - if (arguments.adapterName == "MySQL") { + if (arguments.adapterName == "MySQLModel") { local.rv = "USE INDEX(#local.indexName#)"; - } else if (arguments.adapterName == "SQLServer") { + } else if (arguments.adapterName == "MicrosoftSQLServerModel") { local.rv = "WITH (INDEX(#local.indexName#))"; } } diff --git a/core/src/wheels/tests_testbox/specs/global/dbinfoSpec.cfc b/core/src/wheels/tests_testbox/specs/global/dbinfoSpec.cfc index 0af1f67980..4720df9554 100644 --- a/core/src/wheels/tests_testbox/specs/global/dbinfoSpec.cfc +++ b/core/src/wheels/tests_testbox/specs/global/dbinfoSpec.cfc @@ -58,10 +58,9 @@ component extends="wheels.Testbox" { type = "index", table = variables.prefix & "roles" ); - switch( variables.dbAdapter ) { - case "Oracle": - case "SQLServer": + case "OracleModel": + case "MicrosoftSQLServerModel": // If running in BoxLang, expect 1 instead of 2 if ( structKeyExists(server, "boxlang") ) { expect( local.result.recordCount ).toBe( 1 ); @@ -209,7 +208,7 @@ component extends="wheels.Testbox" { "); } - if(get('adapterName') eq 'SQLite') { + if(get('adapterName') eq 'SQLiteModel') { cfquery(datasource=variables.datasource) { writeOutput(" CREATE TABLE #variables.prefix#users ( diff --git a/core/src/wheels/tests_testbox/specs/global/internalSpec.cfc b/core/src/wheels/tests_testbox/specs/global/internalSpec.cfc index 2de4ae50cd..aff083db80 100644 --- a/core/src/wheels/tests_testbox/specs/global/internalSpec.cfc +++ b/core/src/wheels/tests_testbox/specs/global/internalSpec.cfc @@ -261,7 +261,7 @@ component extends="wheels.Testbox" { it("tests same output", () => { binaryData = FileReadBinary(ExpandPath('/wheels/tests_testbox/_assets/files/cfwheels-logo.png')); - if( application.wheels.adapterName eq 'SQLite' ){ + if( application.wheels.adapterName eq 'SQLiteModel' ){ binaryData = toBase64(binaryData) } transaction action="begin" { diff --git a/core/src/wheels/tests_testbox/specs/migrator/migrationSpec.cfc b/core/src/wheels/tests_testbox/specs/migrator/migrationSpec.cfc index 86aaf1e13e..78d8538f33 100644 --- a/core/src/wheels/tests_testbox/specs/migrator/migrationSpec.cfc +++ b/core/src/wheels/tests_testbox/specs/migrator/migrationSpec.cfc @@ -800,7 +800,7 @@ component extends="wheels.Testbox" { describe("Tests changeColumn", () => { it("is changing column", () => { - if(get("adapterName") eq 'SQLite') { + if(get("adapterName") eq 'SQLiteModel') { skip("SQLite does not allow altering Columns.") } tableName = "dbm_changecolumn_tests" @@ -915,7 +915,7 @@ component extends="wheels.Testbox" { describe("Tests dropForeignKey", () => { it("drops a foreign key constraint", () => { - if(get("adapterName") eq 'SQLite') { + if(get("adapterName") eq 'SQLiteModel') { skip("SQLite does not allow altering CONSTRAINTS.") } tableName = "dbm_dfk_foos" diff --git a/core/src/wheels/tests_testbox/specs/model/crudSpec.cfc b/core/src/wheels/tests_testbox/specs/model/crudSpec.cfc index 5a63a13a5e..001bbc1126 100644 --- a/core/src/wheels/tests_testbox/specs/model/crudSpec.cfc +++ b/core/src/wheels/tests_testbox/specs/model/crudSpec.cfc @@ -8,7 +8,7 @@ component extends="wheels.Testbox" { beforeEach(() => { binaryData = FileReadBinary(ExpandPath('/wheels/tests_testbox/_assets/files/cfwheels-logo.png')) - if( application.wheels.adapterName eq 'SQLite' ){ + if( application.wheels.adapterName eq 'SQLiteModel' ){ binaryData = toBase64(binaryData) } }) @@ -287,7 +287,7 @@ component extends="wheels.Testbox" { expect(photo.hasChanged('fileData')).toBeFalse() binaryData = FileReadBinary(ExpandPath('/wheels/tests_testbox/_assets/files/cfwheels-logo.png')) - if( application.wheels.adapterName eq 'SQLite' ){ + if( application.wheels.adapterName eq 'SQLiteModel' ){ binaryData = toBase64(binaryData) } photo.fileData = binaryData @@ -304,7 +304,7 @@ component extends="wheels.Testbox" { expect(photo.hasChanged('fileData')).toBeFalse() binaryData = FileReadBinary(ExpandPath('/wheels/tests_testbox/_assets/files/cfwheels-logo.txt')) - if( application.wheels.adapterName eq 'SQLite' ){ + if( application.wheels.adapterName eq 'SQLiteModel' ){ binaryData = toBase64(binaryData) } photo.fileData = binaryData @@ -1206,20 +1206,20 @@ component extends="wheels.Testbox" { actual = g.model("author").$indexHint( useIndex = {author = "idx_authors_123"}, modelName = "author", - adapterName = "MySQL" + adapterName = "MySQLModel" ) expect(actual).toBe("USE INDEX(idx_authors_123)") }) it("is working with index hint mysql", () => { - actual = g.model("author").$fromClause(include = "", useIndex = {author = "idx_authors_123"}, adapterName = "MySQL") + actual = g.model("author").$fromClause(include = "", useIndex = {author = "idx_authors_123"}, adapterName = "MySQLModel") expect(actual).toBe("FROM c_o_r_e_authors USE INDEX(idx_authors_123)") }) it("is working with index hint sqlserver", () => { - actual = g.model("author").$fromClause(include = "", useIndex = {author = "idx_authors_123"}, adapterName = "SQLServer") + actual = g.model("author").$fromClause(include = "", useIndex = {author = "idx_authors_123"}, adapterName = "MicrosoftSQLServerModel") expect(actual).toBe("FROM c_o_r_e_authors WITH (INDEX(idx_authors_123))") }) @@ -1238,7 +1238,7 @@ component extends="wheels.Testbox" { actual = g.model("author").$fromClause( include = "posts", useIndex = {author = "idx_authors_123", post = "idx_posts_123"}, - adapterName = "MySQL" + adapterName = "MySQLModel" ) expect(actual).toBe("FROM c_o_r_e_authors USE INDEX(idx_authors_123) LEFT OUTER JOIN c_o_r_e_posts USE INDEX(idx_posts_123) ON c_o_r_e_authors.id = c_o_r_e_posts.authorid AND c_o_r_e_posts.deletedat IS NULL") diff --git a/core/src/wheels/tests_testbox/specs/model/propertiesSpec.cfc b/core/src/wheels/tests_testbox/specs/model/propertiesSpec.cfc index 924c775249..c6b960c158 100644 --- a/core/src/wheels/tests_testbox/specs/model/propertiesSpec.cfc +++ b/core/src/wheels/tests_testbox/specs/model/propertiesSpec.cfc @@ -499,7 +499,7 @@ component extends="wheels.Testbox" { author = g.model("Author").findOne() post = author.createPost(title = "test post", body = "here is some text") - if (get("adapterName") == "SQLite") { + if (get("adapterName") == "SQLiteModel") { // Store as quoted ISO 8601 string (standard for SQLite) if (IsDate(utctime)) { utctime = "#DateFormat(utctime, 'yyyy-mm-dd')# #TimeFormat(utctime, 'HH:mm:ss')#"; @@ -521,7 +521,7 @@ component extends="wheels.Testbox" { author = g.model("Author").findOne() post = author.createPost(title = "test post", body = "here is some text") - if (get("adapterName") == "SQLite") { + if (get("adapterName") == "SQLiteModel") { // Store as quoted ISO 8601 string (standard for SQLite) if (IsDate(localtime)) { localtime = "#DateFormat(localtime, 'yyyy-mm-dd')# #TimeFormat(localtime, 'HH:mm:ss')#"; @@ -637,7 +637,7 @@ component extends="wheels.Testbox" { createdAt = CreateDate(1969, 4, 1), updatedAt = CreateDate(1970, 4, 1) ) - if (get("adapterName") == "SQLite") { + if (get("adapterName") == "SQLiteModel") { // Store as quoted ISO 8601 string (standard for SQLite) if (IsDate(utctime)) { utctime = "#DateFormat(utctime, 'yyyy-mm-dd')# #TimeFormat(utctime, 'HH:mm:ss')#";