Merge pull request #6136 from Ocelot-Social-Community/deployment-fix-dbreset

fix(backend): do not delete migrations on db reset
This commit is contained in:
Ulf Gebhardt 2023-03-15 12:46:23 +01:00 committed by GitHub
commit f3bf64ea4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
`,
)