From b7b41874f9c950200093bc1b66c544165a118729 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Thu, 24 Nov 2022 19:55:52 +0100 Subject: [PATCH] fix(backend): do not delete migrations on db:reset / cleanDatabase --- backend/src/db/factories.js | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/db/factories.js b/backend/src/db/factories.js index 3e164d51b..12a58c103 100644 --- a/backend/src/db/factories.js +++ b/backend/src/db/factories.js @@ -23,6 +23,7 @@ export const cleanDatabase = async (options = {}) => { return transaction.run( ` MATCH (everything) + WHERE NOT 'Migration' IN labels(everything) DETACH DELETE everything `, )