mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-23 04:41:54 +00:00
fix for bug #386303: Duplicate indexes in nsFaviconService and nsAnnotationService
patch=Marco Bonardo <mak77@supereva.it> r=sspitzer
This commit is contained in:
parent
1fba0f943e
commit
557f1a6fa3
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user