mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-09 15:38:03 -05:00
feat: switched rollack to drop schema
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user