Skip to content

Commit

Permalink
creates one more table to more intelligently interact with geocoding …
Browse files Browse the repository at this point in the history
…APIs
  • Loading branch information
msenateatplos committed Jul 5, 2012
1 parent 1a574d0 commit cf1260a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion dbstart.py
Expand Up @@ -50,4 +50,14 @@
print "\n Error: You probably already have a locations table in \"" + database + "\" database...\n"
print sys.exc_info()[1]


try:
c.execute('''
CREATE TABLE responses
(r_id INTEGER PRIMARY KEY ASC
,loc_id INTEGER
,response TEXT
,service TEXT
,FOREIGN KEY(loc_id) REFERENCES locations(loc_id))''')
except sqlite3.OperationalError:
print "\n Error: You probably already have a responses \"" + database + "\" database...\n"
print sys.exc.info()[1]

0 comments on commit cf1260a

Please sign in to comment.