Skip to content

Commit

Permalink
fixed SQLite type matching by converting all types to lower case
Browse files Browse the repository at this point in the history
SQLite 3.8.6 create table dump uses upper case types.
  • Loading branch information
sven committed Feb 20, 2015
1 parent 11c90ef commit d7d00d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/extract_sqlite_models.py
Expand Up @@ -94,7 +94,7 @@ def sqlite(database_name):
else:
field_type = 'reference %s.%s' % (fks[name][0], fks[name][1])
else:
field_type = data_type_map[d_type]
field_type = data_type_map[d_type.lower()]
web2py_table_code += "\n Field('%s','%s')," % (
name, field_type)
web2py_table_code = "legacy_db.define_table('%s',%s\n migrate=False)" % (table_name, web2py_table_code)
Expand Down

0 comments on commit d7d00d1

Please sign in to comment.