Skip to content

Commit 2ad3878

Browse files
author
Zhen Li
committed
Fix cypher queries to drop contraints and indexes
1 parent 713a5c6 commit 2ad3878

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/rx/summary.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -665,12 +665,12 @@ describe('#integration-rx summary', () => {
665665
try {
666666
const constraints = await session.run('CALL db.constraints()')
667667
for (let i = 0; i < constraints.records.length; i++) {
668-
await session.run(`DROP ${getName(constraints.records[i])}`)
668+
await session.run(`DROP CONSTRAINT ${getName(constraints.records[i])}`)
669669
}
670670

671671
const indices = await session.run('CALL db.indexes()')
672672
for (let i = 0; i < indices.records.length; i++) {
673-
await session.run(`DROP ${getName(indices.records[i])}`)
673+
await session.run(`DROP INDEX ${getName(indices.records[i])}`)
674674
}
675675
} finally {
676676
await session.close()

0 commit comments

Comments
 (0)