Commit 4a73f6aa authored by Frank Becker's avatar Frank Becker Committed by Dave Lawrence

Bug 745533 - database add index audit_log_class_at_time_idx for audit_log

r=dkl, a=LpSolit
parent e0bd7772
...@@ -506,6 +506,9 @@ use constant ABSTRACT_SCHEMA => { ...@@ -506,6 +506,9 @@ use constant ABSTRACT_SCHEMA => {
added => {TYPE => 'MEDIUMTEXT'}, added => {TYPE => 'MEDIUMTEXT'},
at_time => {TYPE => 'DATETIME', NOTNULL => 1}, at_time => {TYPE => 'DATETIME', NOTNULL => 1},
], ],
INDEXES => [
audit_log_class_idx => ['class', 'at_time'],
],
}, },
# Keywords # Keywords
......
...@@ -670,6 +670,9 @@ sub update_table_definitions { ...@@ -670,6 +670,9 @@ sub update_table_definitions {
$dbh->bz_alter_column('products', 'defaultmilestone', $dbh->bz_alter_column('products', 'defaultmilestone',
{TYPE => 'varchar(64)', NOTNULL => 1, DEFAULT => "'---'"}); {TYPE => 'varchar(64)', NOTNULL => 1, DEFAULT => "'---'"});
# 2012-04-15 Frank@Frank-Becker.de - Bug 740536
$dbh->bz_add_index('audit_log', 'audit_log_class_idx', ['class', 'at_time']);
################################################################ ################################################################
# New --TABLE-- changes should go *** A B O V E *** this point # # New --TABLE-- changes should go *** A B O V E *** this point #
################################################################ ################################################################
......
Markdown is supported
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