@@ -436,7 +436,7 @@ describe('#integration-rx summary', () => {
436
436
return
437
437
}
438
438
439
- await verifyUpdates ( runnable , 'CREATE INDEX on :Label(prop)' , null , {
439
+ await verifyUpdates ( runnable , 'CREATE INDEX FOR :Label(prop)' , null , {
440
440
nodesCreated : 0 ,
441
441
nodesDeleted : 0 ,
442
442
relationshipsCreated : 0 ,
@@ -467,12 +467,12 @@ describe('#integration-rx summary', () => {
467
467
// first create the to-be-dropped index
468
468
const session = driver . session ( )
469
469
try {
470
- await session . run ( 'CREATE INDEX on :Label(prop)' )
470
+ await session . run ( 'CREATE INDEX FOR :Label(prop)' )
471
471
} finally {
472
472
await session . close ( )
473
473
}
474
474
475
- await verifyUpdates ( runnable , 'DROP INDEX on :Label(prop)' , null , {
475
+ await verifyUpdates ( runnable , 'DROP INDEX FOR :Label(prop)' , null , {
476
476
nodesCreated : 0 ,
477
477
nodesDeleted : 0 ,
478
478
relationshipsCreated : 0 ,
@@ -501,7 +501,7 @@ describe('#integration-rx summary', () => {
501
501
502
502
await verifyUpdates (
503
503
runnable ,
504
- 'CREATE CONSTRAINT ON (book:Book) ASSERT book.isbn IS UNIQUE' ,
504
+ 'CREATE CONSTRAINT FOR (book:Book) REQUIRE book.isbn IS UNIQUE' ,
505
505
null ,
506
506
{
507
507
nodesCreated : 0 ,
@@ -536,15 +536,15 @@ describe('#integration-rx summary', () => {
536
536
const session = driver . session ( )
537
537
try {
538
538
await session . run (
539
- 'CREATE CONSTRAINT ON (book:Book) ASSERT book.isbn IS UNIQUE'
539
+ 'CREATE CONSTRAINT FOR (book:Book) REQUIRE book.isbn IS UNIQUE'
540
540
)
541
541
} finally {
542
542
await session . close ( )
543
543
}
544
544
545
545
await verifyUpdates (
546
546
runnable ,
547
- 'DROP CONSTRAINT ON (book:Book) ASSERT book.isbn IS UNIQUE' ,
547
+ 'DROP CONSTRAINT FOR (book:Book) REQUIRE book.isbn IS UNIQUE' ,
548
548
null ,
549
549
{
550
550
nodesCreated : 0 ,
0 commit comments