diff --git a/packages/nocodb/src/lib/services/test/TestResetService/resetMetaSakilaSqliteProject.ts b/packages/nocodb/src/lib/services/test/TestResetService/resetMetaSakilaSqliteProject.ts index 26845127b0..dcf85bbab6 100644 --- a/packages/nocodb/src/lib/services/test/TestResetService/resetMetaSakilaSqliteProject.ts +++ b/packages/nocodb/src/lib/services/test/TestResetService/resetMetaSakilaSqliteProject.ts @@ -96,7 +96,10 @@ const resetMetaSakilaSqlite = async ( ); const schemaFileStr = schemaFile.toString().replace(/prefix___/g, prefix); - const schemaSqlQueries = schemaFileStr.split(';'); + const schemaSqlQueries = schemaFileStr + .split(';') + .filter((str) => str.trim().length > 0) + .map((str) => str.trim()); for (const sqlQuery of schemaSqlQueries) { if (sqlQuery.trim().length > 0) { await metaKnex.raw(