Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: switched rollack to drop schema

=5e2a2fafe6ec
diff --git a/backend/e2e-test/vitest-environment-knex.ts b/backend/e2e-test/vitest-environment-knex.ts
index 0f84dbee23..45121400b9 100644
--- a/backend/e2e-test/vitest-environment-knex.ts
+++ b/backend/e2e-test/vitest-environment-knex.ts
@@ -144,14 +144,8 @@ export default {
// @ts-expect-error type
delete globalThis.testQueue;
// called after all tests with this env have been run
- await db.migrate.rollback(
- {
- directory: path.join(__dirname, "../src/db/migrations"),
- extension: "ts",
- tableName: "infisical_migrations"
- },
- true
- );
+ await db.raw("DROP SCHEMA IF EXISTS public CASCADE");
+ await db.schema.createSchemaIfNotExists("public");
await redis.flushdb("ASYNC");
redis.disconnect();