diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2012-11-09 21:55:15 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2012-11-09 21:57:23 -0500 |
| commit | 1ae302ff76adcb188dad5383e73c5ade158ffd8a (patch) | |
| tree | e0b9c5f532c94efff272cfd3fafde81d494d0b91 /createdb.py | |
| parent | 735bcbe949faea7818fc6f90fcdf47f485715b5a (diff) | |
| download | famille-flask-1ae302ff76adcb188dad5383e73c5ade158ffd8a.tar.gz | |
Stop insanity with timestamps
still need to check the function which imports the old database
Diffstat (limited to 'createdb.py')
| -rw-r--r-- | createdb.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/createdb.py b/createdb.py index 7f50807..7ec9cd0 100644 --- a/createdb.py +++ b/createdb.py @@ -9,9 +9,7 @@ if __name__ == "__main__": required=True) args = arg_parser.parse_args() - conn = sqlite3.connect(args.database) - c = conn.cursor() + conn = sqlite3.connect(args.database, detect_types=sqlite3.PARSE_DECLTYPES) schema = open(args.schema) - c.executescript( schema.read() ) - conn.commit() - c.close() + conn.executescript( schema.read() ) + conn.close() |
