fix for bug #386303: Duplicate indexes in nsFaviconService and nsAnnotationService

patch=Marco Bonardo <mak77@supereva.it>

r=sspitzer
This commit is contained in:
sspitzer@mozilla.org 2007-07-06 18:15:29 -07:00
parent 1fba0f943e
commit 557f1a6fa3
2 changed files with 0 additions and 5 deletions

View File

@ -263,9 +263,6 @@ nsAnnotationService::InitTables(mozIStorageConnection* aDBConn)
"id INTEGER PRIMARY KEY,"
"name VARCHAR(32) UNIQUE NOT NULL)"));
NS_ENSURE_SUCCESS(rv, rv);
rv = aDBConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING(
"CREATE INDEX moz_anno_attributes_nameindex ON moz_anno_attributes (name)"));
NS_ENSURE_SUCCESS(rv, rv);
}
rv = aDBConn->TableExists(NS_LITERAL_CSTRING("moz_items_annos"), &exists);

View File

@ -184,8 +184,6 @@ nsFaviconService::InitTables(mozIStorageConnection* aDBConn)
if (! exists) {
rv = aDBConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING("CREATE TABLE moz_favicons (id INTEGER PRIMARY KEY, url LONGVARCHAR UNIQUE, data BLOB, mime_type VARCHAR(32), expiration LONG)"));
NS_ENSURE_SUCCESS(rv, rv);
rv = aDBConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING("CREATE INDEX moz_favicons_url ON moz_favicons (url)"));
NS_ENSURE_SUCCESS(rv, rv);
}
return NS_OK;
}