feat: switched rollack to drop schema

This commit is contained in:
=
2026-01-07 22:44:15 +05:30
parent eda43ad52e
commit 5e2a2fafe6

View File

@@ -144,14 +144,8 @@ export default {
// @ts-expect-error type // @ts-expect-error type
delete globalThis.testQueue; delete globalThis.testQueue;
// called after all tests with this env have been run // called after all tests with this env have been run
await db.migrate.rollback( await db.raw("DROP SCHEMA IF EXISTS public CASCADE");
{ await db.schema.createSchemaIfNotExists("public");
directory: path.join(__dirname, "../src/db/migrations"),
extension: "ts",
tableName: "infisical_migrations"
},
true
);
await redis.flushdb("ASYNC"); await redis.flushdb("ASYNC");
redis.disconnect(); redis.disconnect();