making sure pivot/entity types are uniquely named

gh-pages
Brian Jack 2014-12-09 17:07:52 -08:00
parent 2f7d9ce3ef
commit 6bcf6bf7c1
1 changed files with 2 additions and 0 deletions

View File

@ -92,10 +92,12 @@ namespace bvquery {
"CREATE TABLE IF NOT EXISTS PivotType ("
"pivotTypeId INTEGER PRIMARY KEY ASC NOT NULL"
",pivotType TEXT"
",UNIQUE(pivotType)"
")",
"CREATE TABLE IF NOT EXISTS EntityType ("
"entityTypeId INTEGER PRIMARY KEY ASC NOT NULL"
",entityType TEXT"
",UNIQUE(entityType)"
")",
"CREATE TABLE IF NOT EXISTS Entity ("
"entityId INTEGER PRIMARY KEY ASC NOT NULL"