Browse Source

feat(testing): Improved sqlite support

pull/3848/head
Muhammed Mustafa 2 years ago
parent
commit
ea8fbd85ec
  1. 5
      packages/nocodb/src/lib/services/test/TestResetService/resetMetaSakilaSqliteProject.ts

5
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(

Loading…
Cancel
Save