Skip to content

Commit

Permalink
Fix cypher.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulanger committed Mar 6, 2024
1 parent feaa014 commit de51953
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/format/cypher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ class Cypher < ::Format::Format

def self.header
[
'CREATE CONSTRAINT work_id IF NOT EXISTS ON (w:Work) ASSERT w.id IS UNIQUE;',
'CREATE CONSTRAINT institution_name IF NOT EXISTS ON (i:Institution) ASSERT i.name IS UNIQUE',
'CREATE CONSTRAINT venue_id IF NOT EXISTS ON (v:Venue) ASSERT v.id IS UNIQUE',
'CREATE CONSTRAINT work_id IF NOT EXISTS FOR (w:Work) REQUIRE w.id IS UNIQUE;',
'CREATE CONSTRAINT institution_name IF NOT EXISTS FOR (i:Institution) REQUIRE i.name IS UNIQUE;',
'CREATE CONSTRAINT venue_id IF NOT EXISTS FOR (v:Venue) REQUIRE v.id IS UNIQUE',
'CREATE INDEX work_title IF NOT EXISTS FOR (w:Work) ON (w.title)',
'CREATE INDEX venue_name IF NOT EXISTS FOR (v:Venue) ON (v.name)',
'CREATE INDEX author_display_name IF NOT EXISTS FOR (a:Author) ON (a.display_name)'
Expand Down

0 comments on commit de51953

Please sign in to comment.