Commit 989c31ca authored by Ryan Herbert's avatar Ryan Herbert Committed by Mikaël Salson
Browse files

add index creation on auth_permission

parent 56235507
......@@ -289,9 +289,12 @@ db.define_table('tag_ref',
Field('table_name', 'string'),
Field('record_id', 'integer'))
# try to create an index on these un-indexed columns, if it fails, we assume they already exist
db.executesql('CREATE INDEX table_name_index ON tag_ref (table_name);')
db.executesql('CREATE INDEX record_id_index ON tag_ref (record_id);')
db.executesql('CREATE INDEX name_index ON auth_permission (name);')
db.executesql('CREATE INDEX record_id_index ON auth_permission (record_id);')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment