mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-01-20 20:01:22 +00:00
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:
commit
f3bf64ea4f
@ -23,6 +23,7 @@ export const cleanDatabase = async (options = {}) => {
|
|||||||
return transaction.run(
|
return transaction.run(
|
||||||
`
|
`
|
||||||
MATCH (everything)
|
MATCH (everything)
|
||||||
|
WHERE NOT 'Migration' IN labels(everything)
|
||||||
DETACH DELETE everything
|
DETACH DELETE everything
|
||||||
`,
|
`,
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user