fix(backend): do not delete migrations on db:reset / cleanDatabase

This commit is contained in:
Moriz Wahl 2022-11-24 19:55:52 +01:00
parent 41813eeab8
commit b7b41874f9

View File

@ -23,6 +23,7 @@ export const cleanDatabase = async (options = {}) => {
return transaction.run(
`
MATCH (everything)
WHERE NOT 'Migration' IN labels(everything)
DETACH DELETE everything
`,
)